Technical details
Subagents are spawned by a new builtin tool,LaunchSubAgent. This tool takes a prompt parameter populated by the model. The last message generated by the subagent will be returned as the output of this tool back to the main agent.
The LaunchSubAgent tool creates a new chat and sends the prompt parameter as a first user message and automatically attaches a Subagent context notification that informs the subagent model that it’s running in a subagent context.
Subagents are meant to execute focused tasks, so the following built-in tools are disabled for them:
LaunchSubAgentProposePlanToUserAskUserQuestionTodoWrite