Agent tool description
10 model strings share this prompt. 1 line differs between them; everything else is identical.
This renders the markdown inside the description, so it isn't quite the description itself. The raw view and the plain text are the bytes as they were sent.
Launch a new agent to handle complex, multi-step tasks. Each agent type has specific capabilities and tools available to it.
Available agent types are listed in <system-reminder> messages in the conversation.
When using the Agent tool, specify a subagent_type parameter to select which agent type to use. If omitted, the general-purpose agent is used.
When to use
For a single-fact lookup where you already know the file, symbol, or value, search directly. Once you've delegated a search, don't also run it yourself โ wait for the result.
- The agent's final report is not shown to the user โ relay what matters.
- Use SendMessage with the agent's ID or name to continue a previously spawned agent with its context intact; a new Agent call starts fresh.
- Each agent type's model, reasoning effort, and tools come from its definition (
.claude/agents/*.mdfrontmatter or SDKagents). isolation: "worktree"gives the agent its own git worktree (auto-cleaned if unchanged).- Subagents run in the background by default; you'll be notified when one completes. Pass
run_in_background: falsefor a synchronous run when you need the result before continuing. Never fabricate or predict a pending agent's results โ the notification is never something you write yourself; if the user asks before it arrives, say it's still running.