What you will be able to do
- Decide whether a task justifies more than one agent, naming the concrete reason and the token cost it adds
- Explain how a coordinator delegates to subagents with isolated context and receives only condensed results
- Draw agent boundaries by context rather than by role
- Write a self-contained subagent brief with an objective, an output format, a tool list and boundaries
Key concept
Isolated subagent context — A subagent works in its own conversation. Everything it reads and every tool call it makes stays there, and the coordinator gets back only the subagent's final message. This isolation is the main reason to split work across agents, and it is why each subagent needs a complete brief: it never sees what the coordinator knows.
1.Start with one agent and split for a concrete reason
A multi-agent system runs several Claude instances, each with its own conversation context, and coordinates them to finish one piece of work. The design question is not how to build one. It is whether you should. Anthropic sees teams use multi-agent systems in situations where a single agent would do better. Some spend months on elaborate architectures, only to find that better prompting of one agent got the same results.
Splitting has a price. Each extra agent is another place to fail, another prompt to maintain and another source of unexpected behaviour. In Anthropic's testing, multi-agent implementations typically used 3-10x more tokens than a single agent on the same task. The extra tokens come from three places: context duplicated across agents, coordination messages between agents, and summaries written for each handoff. Claude Managed Agents, a platform whose multiagent orchestration lets one agent coordinate others within a single session, makes the same point in configuration terms. There, an agent can write a dynamic workflow: a program that runs many agents in the background and combines their results. Every agent in such a run consumes tokens, so you set a session budget, a cap on the session's total spend that includes its workflow runs.
Three situations reliably pay back that cost. Outside them, coordination usually costs more than it saves. The Managed Agents documentation describes the same territory: work spread across many surfaces, or several well-scoped tasks that feed one goal.
| Reason to split | Signal in a single agent | What it costs |
|---|---|---|
| Context pollution | A subtask fills the context with a lot of material (more than 1000 tokens) that the main task mostly doesn't need, such as full order history while diagnosing a technical issue | A handoff that can lose detail if the extraction criteria are unclear |
| Parallel breadth | The work splits into independent facets, such as research across many sources or tests for many components | Many more tokens, and often a longer total run |
| Specialisation | Too many tools (often 20+), tools from unrelated domains, or behavioural modes that conflict | Routing complexity: a misrouted request gets a poor result |
Once you decide to split, draw the boundaries around context, not around the type of work. Splitting by role creates a "telephone game": a planner hands to an implementer, who hands to a tester, who hands to a reviewer, and every handoff loses detail. The tester doesn't know why the code was written the way it was. In one experiment with role-specialised agents, the agents spent more tokens coordinating than doing the work. Good boundaries include independent research paths (Asia versus Europe market trends), components with a clean API contract, and black-box verification that only runs tests. Bad boundaries include sequential phases of the same feature, tightly coupled components, and work that depends on shared state.
The coordinator's job of breaking work into pieces at runtime is the Orchestrator-workers (dynamic decomposition) pattern. In a multi-agent system, that orchestrator becomes a coordinator agent that hands each piece to a real subagent with its own context window.
Checkpoint 1 of 8· Match them up
Match each signal in a single-agent system to what you should do about it
Tap a term, then the definition that fits it.
Only three situations reliably pay back the extra failure points and the 3-10x token cost of multiple agents: context pollution, parallelisable work and specialisation. Without one of these signals, coordination usually costs more than it saves, so improve the single agent instead.
“when context pollution degrades performance, when tasks can run in parallel, and when specialization improves tool selection or task focus”Source: claude.com
Checkpoint 2 of 8· Check yourself
A team designs a multi-agent system to build one checkout feature. It has a planner agent, an implementer agent, a tester agent and a reviewer agent, and each hands off to the next. What is the better design?
Splitting by role creates a telephone game: every handoff loses context, and the tester doesn't know why the code was written the way it was. Draw boundaries around context instead, so the agent that has the feature's context also writes its tests.
“an agent handling a feature should also handle its tests, because it already possesses the necessary context.”Source: claude.com
2.The coordinator pattern and isolated subagent context
In the coordinator pattern, one lead agent plans the work, sends each piece to a subagent, and puts the results together. What makes this useful is isolation. Each subagent starts with a fresh conversation, its intermediate tool calls and results stay inside it, and only its final message goes back to the parent. A research subagent can read dozens of files without any of that content building up in the main conversation. The parent receives a short summary, not every file the subagent read.
A support agent shows why this matters. If every order lookup puts thousands of tokens of order history into context, the agent reasons worse about the customer's technical problem. Move the lookup into its own agent, and the main agent gets back 50-100 tokens of order status and date while its context stays focused. Isolation works best when the subtask produces a lot of material that the main task mostly doesn't need, and when there are clear criteria for what to extract.
Isolation applies to the conversation, not to the environment. In Managed Agents, all agents in a session share the same sandbox, filesystem and vault credentials. Each one runs in its own session thread, an event stream with its own conversation history. A Managed Agents subagent's thread also stays available, so the coordinator can send it follow-up questions and the subagent remembers its earlier turns.
A subagent is the right tool for one side task whose working material you want kept out of the main conversation. An agent-team teammate is a different arrangement: it is one of several coordinated sessions that share a task list and send each other messages, so it suits keeping many workers in sync, not hiding one investigation. A scripted workflow suits a job too large for a handful of subagents. None of these is a mechanism for trimming the transcript after the fact. The summary-only return is a property of the subagent itself.
Checkpoint 3 of 8· Check yourself
In a Managed Agents session, a coordinator hands a log investigation to a subagent. The subagent reads 40 log files, writes findings.md to disk and then reports a short summary. Which statement about the coordinator is accurate?
Isolation covers the conversation, not the environment. The subagent's tool calls stay in its own thread and only its final message goes back. The sandbox, filesystem and vault credentials are shared, and the subagent's thread stays available for follow-up questions.
“All agents share the same sandbox, filesystem, and vault credentials, but each agent runs in its own session thread, a context-isolated event stream”Source: platform.claude.com
Checkpoint 4 of 8· Exam question
A code-review agent needs to investigate dozens of files to find the root cause of a bug, but you want to keep that investigation's file contents and intermediate reasoning out of the main conversation's context window, receiving only a concise final finding. Which capability best fits this need?
Correct answer: A — A subagent, since it runs in its own context window and returns only its final message to the parent conversation
- A. Correct. A subagent's intermediate tool calls and file reads stay inside its own fresh context window; only its final message returns to the parent, exactly matching the goal of a concise result without polluting the main conversation.
- B. Agent teams also isolate context, but they exist for peer-to-peer collaboration between long-running teammates, not for a single delegated investigation whose only requirement is a clean final result.
- C. PostToolUse hooks can observe or block tool calls, but they do not relocate tool results into a separate context window, so the investigation's content would still accumulate in the main transcript.
- D. Workflows orchestrate the agents themselves, but the script has no direct filesystem access; it is the wrong tool for a single delegated investigation and does not describe how context isolation works.
3.Fanning out independent subagents in parallel
Subagents that don't depend on each other can run at the same time, so the batch finishes when the slowest one does, not after the sum of all their run times. In a code review, style-checker, security-scanner and test-coverage subagents can all examine the same pull request at once. To get that, the coordinator invokes all three in the same turn. If it calls them one after another, waiting for each result, you lose the parallelism. If you merge them into one subagent with a combined prompt, you lose both the parallelism and the focused instructions.
Anthropic's multi-agent research system works the same way. A lead agent splits a query into facets, starts a subagent for each facet, and combines what they return. Exploring a larger search space this way improved accuracy substantially over a single agent. The overall cost picture still holds: parallel runs beat doing the same work in sequence, but they often take longer overall than one agent would, because there is much more total computation.
Checkpoint 5 of 8· Check yourself
Your code-review coordinator has style-checker, security-scanner and test-coverage subagents for one pull request. Right now it calls the style checker and waits for its report. Then it calls the scanner, and then the coverage subagent. Which change makes the review finish in the time of the slowest subagent?
The three checks don't depend on each other. If the coordinator invokes them in the same turn, the batch finishes when the slowest one does, not after the sum of all their run times. Merging them into one subagent loses the parallelism and the focused instructions. Chaining them keeps them sequential.
“multiple subagents can run concurrently, so independent subtasks finish in the time of the slowest one rather than the sum of all of them.”Source: code.claude.com
Checkpoint 6 of 8· Exam question
During a PR review you want a style-checker, a security-scanner, and a test-coverage subagent to each analyze the same pull request, with all three finishing in roughly the time of the slowest one rather than the sum of all three. What should you do?
Correct answer: A — Invoke all three subagents in the same turn so they run concurrently instead of one after another
- A. Correct. Subagents can run concurrently when invoked together, so independent subtasks like style, security, and coverage checks finish in the time of the slowest one instead of being summed sequentially.
- B. Running the subagents one after another is sequential execution, which takes the sum of all three durations rather than the time of the slowest single agent.
- C. Combining the three specializations into one subagent removes the parallelism entirely and mixes distinct expertise and tool restrictions that were meant to stay separate.
- D. Switching models across three passes in one session is still sequential execution and does not achieve concurrent analysis of the same pull request.
Sources3
4.Briefing a subagent that cannot see your context
Isolation cuts both ways. A subagent doesn't see the coordinator's turns: not the user's request, the files already read, or decisions already made. It knows only its own system prompt, project-level context such as CLAUDE.md, and the task message it is given. If the coordinator writes "now check the other module", the subagent has no idea which module, what to look for, or what form the answer should take. Every brief has to stand on its own.
A self-contained brief has four parts:
- Objective: the specific question or task, stated with any facts from the coordinator's context that the subagent needs.
- Output format: exactly what to return. Isolation works best when the subtask has clear criteria for what to extract, because the subagent's final message is all the coordinator will see.
- Tools: the minimum set the job needs, set on the subagent's definition.
- Boundaries: what the subagent must not touch and when it should stop.
A specialised subagent is only as good as its instructions. The prompt-engineering practices that improve a single agent apply to every subagent's system prompt. Write the definition's description with the same care. The coordinator reads it to decide when to call that subagent, and if it can't tell two subagents apart, requests get misrouted.
Scoping tools is part of the brief, and how you restrict tools in general is covered in Scoping tools per agent and matching the remedy to the pressure. In a multi-agent design, set the tools list on each specialist's definition. A doc-reviewer that should analyse documentation but never change it gets Read and Grep and nothing else, with no Edit, Write or Bash. That makes accidental modification impossible rather than merely discouraged. Leaving tools out is not a cautious default. If you omit it, the subagent inherits every tool available to subagents.
It will start from nothing. It has no record of those ten turns, so it doesn't know the bug is in the retry logic, which files have been ruled out, or what form the finding should take. It may re-investigate the whole codebase and return something the coordinator can't use. A better brief names the retry module, the symptom, the files already cleared, read-only tools, and asks for a single root-cause statement that cites a file and line.
Checkpoint 7 of 8· Check yourself
Halfway through a session, a coordinator delegates with the brief "Review the docs we discussed and flag anything outdated." The doc-reviewer's definition has a description and a prompt but no tools field. Which assessment is correct?
A subagent knows only its own system prompt, project-level context and the task message, so the brief has to name the docs and the output it wants. Omitting tools isn't a safe default: the subagent inherits every tool available to subagents. Listing only Read and Grep makes changes impossible, while a prompt instruction only discourages them.
“Array of allowed tool names. If omitted, inherits every tool available to subagents”Source: code.claude.com
Checkpoint 8 of 8· Exam question
You are configuring a doc-reviewer subagent that should be able to analyze documentation for accuracy and clarity but must never modify files or execute commands, even accidentally. How should you define its tool access?
Correct answer: A — Set tools to only Read and Grep so it can examine content without any write or execution capability
- A. Correct. Restricting the tools field to Read and Grep gives the subagent everything it needs to analyze documentation while structurally removing any ability to write files or execute commands.
- B. Omitting the tools field makes the subagent inherit all tools from the parent, which would include Edit, Write, and Bash, directly contradicting the requirement that it never modify files or run commands.
- C. Granting Edit and relying on a hook to deny every attempt still leaves an unnecessary attack surface and depends on the hook firing correctly every time, instead of removing the capability at the source.
- D. Bash access would let the subagent execute arbitrary commands, which violates the requirement that it must never execute commands even for seemingly safe purposes like linting.
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Every agent in a run uses tokens, so set a session budget to cap the session's spend, runs included.”
↩︎ Start with one agent and split for a concrete reason“a program that runs many agents in the background and combines their results”
↩︎ Start with one agent and split for a concrete reason“Coordinate multiple agents within a single session.”
↩︎ Start with one agent and split for a concrete reason“best suited for complex tasks that either require work across a variety of surfaces, or where multiple well-scoped tasks contribute to an overall goal”
↩︎ Start with one agent and split for a concrete reason“All agents share the same sandbox, filesystem, and vault credentials, but each agent runs in its own session thread”
↩︎ The coordinator pattern and isolated subagent context“All agents share the same sandbox, filesystem, and vault credentials, but each agent runs in its own session thread, a context-isolated event stream”
↩︎ Checkpoint - 2.
“In our testing, multi-agent implementations typically use 3-10x more tokens than single-agent approaches for equivalent tasks.”
↩︎ Start with one agent and split for a concrete reason“when context pollution degrades performance, when tasks can run in parallel, and when specialization improves tool selection or task focus”
↩︎ Start with one agent and split for a concrete reason“Work should only be split when context can be truly isolated.”
↩︎ Start with one agent and split for a concrete reason“when the subtask is well-defined with clear criteria for what information to extract”
↩︎ The coordinator pattern and isolated subagent context“Each specialized agent is only as good as its instructions”
↩︎ Briefing a subagent that cannot see your context“multi-agent systems often take longer overall than single-agent systems because of the sheer increase in total computation”
↩︎ Exam trap 1“The key insight is to adopt a context-centric view rather than a problem-centric view when decomposing work.”
↩︎ Exam trap 2“The primary benefit of parallelization is thoroughness, not speed.”
↩︎ Prediction“an agent handling a feature should also handle its tests, because it already possesses the necessary context.”
↩︎ Checkpoint - 3.https://code.claude.com/docs/en/agent-sdk/subagentsOfficial docs
“The parent receives a concise summary, not every file the subagent read.”
↩︎ The coordinator pattern and isolated subagent context“independent subtasks finish in the time of the slowest one rather than the sum of all of them”
↩︎ Fanning out independent subagents in parallel“multiple subagents can run concurrently”
↩︎ Fanning out independent subagents in parallel“A doc-reviewer subagent might only have access to Read and Grep tools, ensuring it can analyze but never accidentally modify your documentation files.”
↩︎ Briefing a subagent that cannot see your context“intermediate tool calls and results stay inside the subagent; only its final message returns to the parent.”
↩︎ Key concept“If omitted, inherits every tool available to subagents”
↩︎ Exam trap 3“multiple subagents can run concurrently, so independent subtasks finish in the time of the slowest one rather than the sum of all of them.”
↩︎ Checkpoint“Array of allowed tool names. If omitted, inherits every tool available to subagents”
↩︎ Checkpoint - 4.https://code.claude.com/docs/en/agentsOfficial docs
“Multiple coordinated sessions with a shared task list and inter-agent messaging, managed by a lead. Experimental and disabled by default”
↩︎ The coordinator pattern and isolated subagent context - 5.https://code.claude.com/docs/en/agent-sdk/agent-loopOfficial docs
“It does not see the parent’s turns, and only its final response returns to the parent.”
↩︎ Briefing a subagent that cannot see your context“Use the tools field on AgentDefinition to scope subagents to the minimum set they need.”
↩︎ Briefing a subagent that cannot see your context