Multi-Agent Systems: From a Single Agent to an AI Team
Engineering

Multi-Agent Systems: From a Single Agent to an AI Team

Several agents add value when the work genuinely splits into parallel parts; otherwise they multiply cost and failure paths. Here is when you need them, how to set them up and how to compare them with a single agent.

Short answer

A multi-agent system is an architecture in which a coordinator splits a task, hands the parts to several AI agents and combines their results. It helps when the task genuinely splits into independent parts that need different tools or context. For work whose steps are sequential and known in advance, a single agent or a fixed workflow is cheaper and more predictable; compare both versions on the same test set for quality and cost before switching.

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.

PatternHow it worksWhen it fitsRisk
Orchestrator-workersA coordinator splits the work, hands it to workers and combines the resultsIndependent research or evidence gatheringToken cost, lost sources
Sequential pipelineEach step's output is the next step's input; the order is fixed in codeWork whose steps are known in advanceUsually a workflow, not an agent
HandoffA routing agent passes the conversation to a specialist agentCustomer requests that need different expertiseMisrouting, lost context
Agents as toolsA manager agent keeps the conversation and calls a specialist for a bounded subtaskWhen the specialist should not talk to the userDuplicated work if the subtask boundary is vague
Critic and debateOne agent drafts and another critiques, or two agents argueImproving drafts, surfacing alternativesTwo 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:

  1. Objective: The single question the worker must answer.
  2. Scope boundary: What it should not look at; an area that does not overlap with other workers.
  3. Tools and permissions: Which tools it may use; read-only or write as well.
  4. Output format: A source link for every claim, a confidence level and open questions.
  5. Budget and stopping rule: A maximum number of tool calls, tokens or minutes; stop once the evidence is sufficient.
  6. 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.

Key takeaways

  • Use multiple agents when a task has genuinely independent work that benefits from separate tools or context.
  • Start with a single-agent baseline; compare quality, sources, time, and cost before adding workers.
  • Give every worker a written brief with an objective, scope boundary, tool permissions, output format and budget.
  • A coordinator must preserve evidence and expose failures across workers.
  • Agent-to-agent critique is useful feedback, but important claims still need source or deterministic verification.

Frequently asked questions

What is the difference between a multi-agent system and a single agent?

A single agent runs the whole task in one context with its own tools. In a multi-agent system, a coordinator splits the work and gives each part to worker agents with their own context and tools. The difference matters for independent work that can run in parallel.

Are multi-agent systems more expensive?

Usually, yes. Anthropic reports that in its research system, multi-agent setups used about 15 times more tokens than chat interactions. Test on your own tasks whether that cost is covered by a measured gain in quality or time.

Which tasks are a poor fit for multiple agents?

Tasks where all agents need to share the same context, or whose steps depend tightly on each other. Anthropic notes that most coding tasks involve fewer parallelisable parts than research. For sequential steps known in advance, a fixed workflow fits better.

Is it enough for agents to check each other?

No. A critic agent gives useful feedback, but both agents may rely on the same wrong source or model bias. Verify important claims against original documents or deterministic checks, and show outputs that affect decisions to a person.

How do you test a multi-agent system?

Start with a set of 20–50 tasks drawn from real failures and compare the single-agent and multi-agent versions on the same tasks. Grade the outcome rather than the path, run each task several times, and record tokens, time, tool calls and human intervention together.

What is the orchestrator-workers pattern?

A setup in which a central model dynamically breaks a task into subtasks, delegates them to worker models and combines the results. It is used where the subtasks cannot be predicted in advance, such as research across many sources.

All articles