What is a multi-agent system?
A multi-agent system lets more than one model-driven worker use tools or reason through separate parts of a task. A coordinator may assign work, track results, and combine the outputs. The useful distinction is independent work: if every step depends on the previous step, a simple sequence of calls may be easier to operate. Anthropic describes an orchestrator-worker design in its account of building a research system, where parallel workers explore different information sources.
Anthropic's guide to building effective agents calls this pattern the orchestrator-workers workflow: a central model dynamically breaks a task down, delegates the pieces to worker models and synthesises their results. The guide says it fits complex tasks where you cannot predict the subtasks in advance. The same guide recommends finding the simplest solution possible and only increasing complexity when needed; multi-agent designs sit near the top of that ladder.
What multi-agent patterns are there?
Five patterns come up often, and each solves a different problem. OpenAI's Agents SDK documentation separates two basic approaches: letting the model decide the flow, or determining the flow in code. According to the documentation, orchestrating in code makes tasks more deterministic and predictable in terms of speed, cost and performance.
| Pattern | How it works | When it fits | Risk |
|---|---|---|---|
| Orchestrator-workers | A coordinator splits the work, hands it to workers and combines the results | Independent research or evidence gathering | Token cost, lost sources |
| Sequential pipeline | Each step's output is the next step's input; the order is fixed in code | Work whose steps are known in advance | Usually a workflow, not an agent |
| Handoff | A routing agent passes the conversation to a specialist agent | Customer requests that need different expertise | Misrouting, lost context |
| Agents as tools | A manager agent keeps the conversation and calls a specialist for a bounded subtask | When the specialist should not talk to the user | Duplicated work if the subtask boundary is vague |
| Critic and debate | One agent drafts and another critiques, or two agents argue | Improving drafts, surfacing alternatives | Two agents relying on the same wrong source confirm each other |
Choose the pattern by the structure of the task, not by what a framework happens to offer. Splitting work whose steps are the same every time across autonomous agents reduces predictability and raises cost.
When is one agent enough?
Start with one model call or one agent and a clear tool set. If the task is narrow, the evidence fits in context, and the answer can be checked with deterministic code, extra agents may increase latency and failure paths. Multi-agent work is more promising when independent searches can proceed at the same time, when each worker needs a separate context or tool permission, or when the combined task exceeds one agent's practical context budget.
Anthropic draws the line explicitly: domains that require all agents to share the same context, or that involve many dependencies between agents, are not a good fit for multi-agent systems today. As an example, it notes that most coding tasks involve fewer truly parallelisable tasks than research.
Before moving to multiple agents, answer four questions. Does the task split into at least two independent parts? Do those parts need different tools or permissions? Does a single agent actually run into its context limit? Will the expected quality gain cover the extra tokens and latency? If most answers are “no”, stay with one agent and improve its tools.
How much more does a multi-agent system cost?
Noticeably more, and the quality gain has to pay for it. According to Anthropic's research-system post, agents typically use about 4× more tokens than chat interactions, and multi-agent systems about 15× more. In the same post, a multi-agent system with Claude Opus 4 as the lead agent and Claude Sonnet 4 subagents outperformed single-agent Claude Opus 4 by 90.2% on Anthropic's internal research evaluation. The post also reports that token usage by itself explains 80% of the performance variance on the BrowseComp evaluation. Anthropic's published results concern its own research workloads; they do not prove the same gain for another company's tasks.
A hypothetical calculation: suppose the single-agent version spends an average of 40,000 tokens per task. If, in the multi-agent version, the coordinator spends 20,000 and each of three workers spends 30,000, the total is 110,000 tokens, roughly 2.75 times the cost. That difference is justified only if correct answers, source support or completion time improve by a matching amount. Run the calculation with real token counts from your own evaluation set.
Hypothetical example: a supplier comparison
Imagine a procurement team comparing three document management products. One worker reads each vendor's current technical documentation, another checks pricing and contract terms supplied by the vendors, and a third searches for integration constraints in the buyer's existing systems. The coordinator receives a short report from each worker with source links and unresolved questions. It then produces a comparison table and asks a human to verify any contract interpretation. This is a hypothetical workflow.
The workers can run in parallel because their evidence gathering is mostly independent. Asking three agents to rewrite the same paragraph would add cost without creating new evidence. A sequential pipeline such as retrieve → summarize → format is often a workflow, not necessarily a reason to create multiple autonomous agents.
How should the coordinator brief its workers?
Give every worker a written task description with clear boundaries. Anthropic reports that workers given vague instructions misinterpreted the task or ran the exact same searches as other agents, and that early versions spawned 50 subagents for simple queries. Each task description should include:
- Objective: The single question the worker must answer.
- Scope boundary: What it should not look at; an area that does not overlap with other workers.
- Tools and permissions: Which tools it may use; read-only or write as well.
- Output format: A source link for every claim, a confidence level and open questions.
- Budget and stopping rule: A maximum number of tool calls, tokens or minutes; stop once the evidence is sufficient.
- Reporting uncertainty: Say when no evidence was found instead of guessing.
Also write a rule that caps the number of workers by task complexity. A simple question needs one worker; a comparison may need a few. Test that the coordinator keeps the source links when it merges worker outputs; any claim in the final report without a source is a warning sign.
Why do multi-agent systems fail?
Mostly because of design problems, misalignment between agents or missing verification. The study “Why Do Multi-Agent LLM Systems Fail?” by Cemri and colleagues analyses more than 1,600 annotated traces from seven popular multi-agent frameworks and proposes a taxonomy called MAST. It groups 14 failure modes into three categories: system design issues, inter-agent misalignment and task verification. Agreement between the expert annotators was kappa = 0.88.
Those categories make a good checklist for reading your own traces. Count separately the cases where the coordinator loses a source, workers duplicate work, or one worker's error becomes the final answer. Do not treat an agent criticizing another agent as independent verification. Both may share the same mistaken source or model bias. For high-stakes outputs, verify against original documents or deterministic checks, and give the human reviewer the evidence.
What should you watch when running multiple agents in production?
Be ready to operate a long-running, stateful system that calls many tools. Anthropic describes synchronous execution, where workers wait on the coordinator, as a bottleneck in the information flow between agents, and says it uses rainbow deployments so that new versions do not disrupt agents that are already running. The same post recommends evaluating the end state rather than every turn for agents that change their environment. Add three operating rules: narrow each worker's permissions to its task, record which step an interrupted job should resume from, and stop any run that exceeds its token and time budget per task. Put steps that make lasting changes or send anything outside behind human approval.
How do you compare cost and quality?
By measuring a single-agent baseline and the multi-agent version side by side on the same evaluation set. Build an evaluation set from representative, permissioned tasks. Include easy cases, conflicting sources, missing information, and tasks with no useful parallel split. Compare a single-agent baseline and a multi-agent version on answer correctness, source support, completion time, total tokens, tool calls, and human review effort. Keep trace IDs so a reviewer can follow each claim back through the workers.
Anthropic's agent evaluation guide says 20–50 simple tasks drawn from real failures are a good start, and recommends grading what the agent produced rather than the path it took. Because model outputs vary between runs, run each task several times: the chance that at least one of k trials succeeds (pass@k) and the chance that all k succeed (pass^k) diverge as the number of trials grows. For work where users expect the right result every time, the second is the more meaningful number.
If a multi-agent design still looks justified after this test, our AI agent development page explains our agent development process, from discovery and tool permissions to the evaluation set and the pilot.
Common mistakes
- Splitting a sequential workflow across autonomous agents.
- Moving to multiple agents without measuring a single-agent baseline.
- Giving workers vague task descriptions that produce overlapping work.
- Setting no upper limit on the number of workers or the token budget.
- Using agent-to-agent critique in place of source verification.
- Not keeping traces, so no one can tell which worker an error came from.