Multi-agent AI is a system design in which two or more AI agents, each a language model with its own instructions, tools and context, split up a task and pass work between them instead of one agent doing everything. The most common form is an orchestrator agent that plans the work, hands subtasks to worker agents, and combines their results. It can finish broad, parallelizable tasks faster and more thoroughly than a single agent, but it costs many more tokens and introduces new ways to fail, so it is worth using only for specific kinds of work.
This article explains the main coordination patterns, what the published evidence says about when multi-agent designs help and when they hurt, and then walks through a worked design with copy-ready delegation prompts.
Single agent vs multi-agent: what actually changes
An AI agent is a model that runs in a loop: it decides on a step, calls a tool, reads the result and decides the next step until the goal is met. If you are new to that idea, start with how autonomous AI agents work. A multi-agent system runs several of those loops, and the key difference is not the number of models but the number of separate context windows.
Each agent sees only what is in its own context. That is both the benefit and the risk. A worker agent researching one subtopic can read dozens of pages without filling the orchestrator’s context, and several workers can run at the same time. But a worker also does not know what the other workers decided, what the user said three turns ago, or why the orchestrator framed the task the way it did, unless someone explicitly passes that information along.
It also helps to separate multi-agent systems from workflows. Anthropic’s engineering guide Building effective agents draws the line this way: in a workflow, models and tools follow code paths you defined in advance; in an agent, the model chooses its own steps. A fixed pipeline of “extract, then classify, then format” is a workflow, even if each step uses a different prompt. It becomes multi-agent when agents decide for themselves what to do next and what to delegate.
Coordination patterns
How agents are connected determines how errors spread and how hard the system is to debug. These are the patterns you will see in frameworks and production write-ups.
| Pattern | How it works | Strength | Main risk |
|---|---|---|---|
| Orchestrator-worker (supervisor) | A lead agent plans, spawns workers for subtasks, and merges results | Clear control point; easy to parallelize independent subtasks | The lead is a single point of failure; vague delegation causes duplicate or missing work |
| Hierarchical | Supervisors manage sub-supervisors, which manage workers, in a tree | Scales to large tasks with many domains | Assumptions made at a middle layer cascade down without anyone noticing |
| Peer-to-peer (network) | Agents message each other directly, with no central controller | No single bottleneck | Hard to trace who decided what; loops and conflicting edits |
| Sequential handoff | Agent A finishes and hands everything to agent B, and so on | Simple to reason about; each agent has a narrow job | Errors flow downstream and are trusted by later agents |
| Generator-critic | One agent produces, another reviews against criteria, and they loop | Catches errors before output | Can loop indefinitely without a stop rule; critic may share the generator’s blind spots |
Several of these appear in Anthropic’s guide as workflow patterns too: orchestrator-workers, parallelization and evaluator-optimizer. The difference in a multi-agent system is that the agents choose their own tool calls inside each step.
What the evidence says
Multi-agent designs have strong published results on some tasks and well-documented failure patterns on others, so it is worth looking at both sides.
Where it helped: breadth-first research
Anthropic described the orchestrator-worker design behind Claude’s Research feature in How we built our multi-agent research system. A lead agent plans the research and spawns subagents that search in parallel, and a separate step attributes claims to sources. On Anthropic’s internal research evaluation, a system with Claude Opus 4 as the lead and Claude Sonnet 4 subagents outperformed single-agent Claude Opus 4 by 90.2%, with the biggest gains on queries that required exploring many independent directions at once.
The same post is direct about cost. Anthropic reports that agents use roughly 4 times as many tokens as chat interactions, and multi-agent systems roughly 15 times as many. In its analysis of the BrowseComp benchmark, token usage alone explained 80% of the variance in performance. Put plainly, much of the benefit comes from being able to spend more tokens in parallel, which only makes sense when the task is valuable enough to pay for it.
Where it hurt: tightly coupled work
The same Anthropic post lists poor fits: tasks where every agent needs the same context, tasks with many dependencies between agents, and most coding tasks, which have fewer truly parallel subtasks than research. Cognition, the company behind the Devin coding agent, made a similar argument in Don’t Build Multi-Agents. Its example: split “build a Flappy Bird clone” between two subagents, and one may build a background in a different visual style while the other builds a bird that does not match it. Each subagent’s actions carry implicit decisions the other cannot see. Cognition’s recommendation for that kind of work is a single-threaded agent with continuous context, plus a compression step when history grows too long.
How they fail
A 2025 study, Why Do Multi-Agent LLM Systems Fail?, annotated more than 1,600 execution traces from seven popular multi-agent frameworks and grouped 14 failure modes into three categories: system design issues, inter-agent misalignment, and task verification. That framing is useful when debugging. A failure is usually a bad role or stop condition, agents talking past each other, or nobody checking whether the output is correct.
A decision test before you add a second agent
Multi-agent is justified when most of the answers below are “yes.” If they are mostly “no,” a single agent with good tools, or a fixed workflow such as prompt chaining, will usually be cheaper and more reliable.
- Can the work be split into parts that do not need to see each other’s intermediate decisions? Researching five competitors: yes. Writing five functions that call each other: no.
- Does a single agent run out of context or time? If one agent can hold everything it needs, splitting it only adds handoff loss.
- Is the task valuable enough to justify many times the token cost? Estimate with your own prices before building.
- Do the parts need different tools or permissions? Isolating a code-execution agent from an agent that can send email is a legitimate security reason to split.
- Can you verify the combined result? If nobody, human or agent, checks the output against the original goal, errors from any worker go straight to the user.
Worked example: a competitor research system
The following design is illustrative. A product team wants a weekly brief on five competitors: pricing changes, new features and notable announcements. This passes the decision test well, because each competitor can be researched independently, each search reads many pages, and the output can be checked against sources.
The structure
- Orchestrator: reads the request, decides how many workers to spawn, writes a delegation brief for each, and merges results.
- Workers (one per competitor): web search and page fetch tools only. No write access to anything.
- Verifier: receives the merged draft plus the sources each worker cited and flags any claim that the cited source does not support.
Anthropic’s post notes that agents tended to over-invest effort in simple queries unless the prompt set explicit scaling rules, and that vague delegation produced duplicated work and gaps. Both lessons shape the prompts below.
Orchestrator prompt
You coordinate a competitor research task. You do not search the web
yourself; you delegate to research workers and merge their results.
Goal from the user:
<goal>{{user_request}}</goal>
Planning rules:
- Spawn one worker per competitor. Never more than 6 workers.
- If the request names a single fact (e.g. "what does X charge for
the Pro plan?"), spawn 1 worker and tell it to stop after it finds
an official source.
- Do not split one competitor across several workers.
For each worker, write a brief with exactly these fields:
OBJECTIVE: one sentence, what to find and why it matters to the user.
SCOPE: the competitor, the date window, and what is out of scope.
SOURCES: prefer the company's own pricing page, changelog, docs and
press releases; use third-party coverage only to find leads.
OUTPUT: the JSON schema below, nothing else.
STOP WHEN: all fields are filled or 15 tool calls are used.
Worker output schema:
{"competitor": "", "pricing_changes": [{"claim": "", "source_url": ""}],
"new_features": [{"claim": "", "source_url": ""}],
"announcements": [{"claim": "", "source_url": ""}],
"not_found": ["fields with no evidence"]}
After all workers return, merge their outputs into one brief.
Keep every source_url attached to its claim. Do not add claims that
no worker reported.
Why each part is there:
- “You do not search the web yourself” keeps the orchestrator’s context clean for planning and merging; if it also searches, its context fills with page text.
- A worker cap and a single-fact rule scale effort to the request so a simple question does not spawn six workers.
- The five-field brief (objective, scope, sources, output, stop condition) addresses the delegation gaps that cause duplicated or missing work. The scope line is what stops two workers from researching the same thing.
- A fixed JSON schema with a source per claim turns merging into a mechanical step and gives the verifier something to check. The
not_foundfield gives workers an honest alternative to guessing. - “Do not add claims that no worker reported” stops the orchestrator from filling gaps from its own training data.
Verifier prompt
You check a research brief for unsupported claims.
For each claim, you are given the claim text and the page text
fetched from its source_url.
For each claim return:
{"claim": "", "verdict": "supported|partially_supported|unsupported",
"note": "max 20 words; quote nothing longer than 10 words"}
Rules:
- "supported" only if the page states it, not if it merely implies it.
- Dates matter: a price from an older page is "partially_supported".
- Do not rewrite the brief. Do not judge writing quality.
The verifier exists to cover the “task verification” category of failures. It works best with a narrow job and the actual source text in front of it, rather than being asked whether the brief “looks right.” For a broader approach to grading agent output, see this reusable LLM eval rubric.
What can go wrong in this design, and the fix
| Symptom | Likely cause | Fix |
|---|---|---|
| Two workers report the same news item | Overlapping scope, e.g. a merger between two competitors | Tell the orchestrator to deduplicate by source_url and to note shared items once |
| A worker returns prices from a two-year-old blog post | No date window, or third-party sources preferred | Put the date window in SCOPE and require the official pricing page for pricing claims |
| The run takes far longer than expected | One slow worker blocks the merge step, since the orchestrator waits for all workers | Set a per-worker timeout and merge whatever has returned, listing missing competitors |
| Brief contains a confident claim with no source | Orchestrator filled a gap from its own knowledge | Reject any merged claim without source_url in code, not only in the prompt |
| Costs spike on some weeks | Workers loop on searches that return nothing | Enforce the tool-call cap in your agent loop and log calls per worker |
The “one slow worker” row reflects a limitation Anthropic described for its own system: the lead agent waits for each batch of subagents to finish, so a single slow subagent can hold up everything.
How agents share context and tools
Agents exchange information through whatever you pass between them: the delegation brief going down and the structured result coming back. Everything else is invisible to the receiving agent. Three practices keep handoffs reliable:
- Pass decisions, not only tasks. If the orchestrator decided “focus on enterprise pricing only,” that decision must be in every brief. Cognition’s argument is essentially that implicit decisions are what get lost between agents.
- Return structured results. Free-text summaries are lossy and hard to merge. A schema forces each worker to say what it found and what it did not.
- Persist shared state outside the agents. For long jobs, write intermediate results to a file or database the orchestrator can read, so a failure does not erase completed work. Anthropic describes building its system to resume from the point of failure rather than restart.
For tool access, standards such as the Model Context Protocol (MCP) let each agent connect to the same tools and data sources through one interface, which makes it easier to give different agents different subsets of tools. Context design across agents is a large topic in its own right; our article on context engineering vs prompt engineering goes deeper.
Practical questions
Do all the agents need to use the same model?
No. A common setup uses a stronger model as the orchestrator and cheaper or faster models as workers, as in Anthropic’s Opus-lead, Sonnet-worker configuration. What matters is that inputs and outputs between agents are clearly defined, because different models interpret loose instructions differently.
Is “agentic workflow” the same thing?
Not exactly. “Agentic workflow” is used loosely for any system where a model takes actions, including a single agent. Multi-agent specifically means the work is split across two or more agents with separate contexts.
How do I debug a multi-agent run?
Log every delegation brief, every tool call and every returned result with a run ID and agent ID, so you can replay what each agent saw. Most failures become obvious once you read the brief a worker actually received next to the result it returned.



