AI Agents

Multi-Agent Systems: When One Agent Is Not Enough

Recognise the four common patterns, weigh what they cost, and test whether your job needs more than one agent.

one job Orchestrator one answer Worker Worker Worker

The short answer

A multi-agent system splits one job across several AI agents, each with its own instructions, tools and context window. It helps when a single agent runs out of context or holds too many tools. It costs more tokens, takes longer to debug, and lets one agent pass its mistakes to the next. Start with one agent.

What is a multi-agent system?

A multi-agent system is a set of AI agents that share one job, each with its own instructions, its own tools and its own context window. The context window is the amount of text a model can read in one request. An AI agent is a language model that works towards a goal by calling tools in a loop.

The separate context window is the main reason to split. A research agent can read a long report and hand back a ten-line summary, and the agent that receives the summary keeps its own window clear for the next decision. Each agent also carries a short tool list and a narrow brief, so it has fewer ways to go wrong.

The agents can run on the same model. An agent here is a role with its own prompt and tools, and several roles can share one model from one vendor.

What are the common multi-agent patterns?

You will meet four patterns: orchestrator and workers, sequential hand-off, parallel specialists, and evaluator and optimiser. Anthropic's guide to building effective agents describes a version of each.

Orchestrator and workers Sequential hand-off Parallel specialists Evaluator and optimiser work feedback
The solid circle in each structure is the agent that splits, merges or judges the work of the others.
PatternHow it worksSuitsWatch for
Orchestrator and workersA lead agent breaks the job into parts, assigns each part to a worker agent, and combines the resultsJobs whose parts you cannot list in advance, such as open researchVague briefs from the lead, so two workers do the same task
Sequential hand-offEach agent finishes one stage and passes its output to the nextWork with fixed stages, such as draft, translate, formatA mistake in stage one carried through the later stages
Parallel specialistsSeveral agents work on separate parts at once, and a final step merges their outputIndependent checks, such as legal and factual review of one documentConflicting answers with no rule for settling them
Evaluator and optimiserOne agent produces work, a second scores it against criteria, and the first revisesOutput you can judge against stated criteria, such as a translationA loop with no limit on the number of rounds

You can combine them. An orchestrator can send three workers out in parallel and pass their merged result to an evaluator. Build one pattern first, and add a second after the first holds up in testing.

What does a multi-agent system cost you?

You pay in three ways: more tokens, harder debugging, and errors that compound between agents.

More tokens. A token is the unit of text a model provider bills for. Each agent reads its own instructions, its own tool descriptions and the context passed to it, so the system reads the same facts several times. Take an example with made-up numbers. One agent handles a job in 10,000 tokens. An orchestrator with three workers uses 8,000 tokens per worker plus 12,000 for the orchestrator, which comes to 36,000. What AI agents cost to run shows how to turn token counts into a budget.

One agent 10,000 tokens Orchestrator and three workers 36,000 tokens 12,000 8,000 8,000 8,000 orchestrator worker worker worker Illustrative numbers from the example above, drawn to scale.
The same job takes a bar more than three times as long once four agents each read their own instructions and context.

Harder debugging. A wrong answer from one agent leaves you one transcript to read. A wrong answer from four agents sends you through four transcripts and the hand-offs between them to find the step that failed. You need tracing, a log of each agent's inputs, tool calls and outputs, before you can fix anything.

Compounding errors. A downstream agent treats the upstream agent's output as fact. If the first agent misreads a date, the second builds a schedule on it and the third emails that schedule to a customer. Each hand-off also loses detail, since a summary is shorter than its source.

Do you need more than one agent?

Start with a single agent, and split only when context or tool count becomes the limit. Those are the two limits a second agent removes.

  • Context. The job requires more reading than fits in one window, or the agent loses track of early instructions late in a long task. AI agent memory explains how the window fills up.
  • Tool count. The agent picks the wrong tool because it holds too many, or several tools have overlapping descriptions.

Try the cheaper fixes before you split. Tighten the prompt and rewrite the tool descriptions. Move the steps that need no judgement out of the agent and into ordinary workflow steps. Check whether the job needs an agent at all: a fixed sequence of steps is a workflow, and a workflow costs less to run and fails in more predictable ways.

You will hear two weaker reasons for splitting. "Separate agents mirror our departments" describes an organisation chart, and the model gains nothing from it. "More agents will be more accurate" holds only where a second agent checks work against criteria you can state.

The intake agent I built in n8n is a single agent with three tools and five business rules written in plain language. One agent with three tools sits inside both limits, so it stays a single agent.

How should a hand-off pass context?

A hand-off should give the receiving agent a written brief that stands alone, because the receiver cannot see the sender's conversation. Write it the way you would brief a contractor on their first day.

Sending agent its whole conversation The brief goal facts with sources constraints output format definition of done Receiving agent sees only the brief
The sender's full window stays behind, so the receiver starts with a clear one and whatever the brief carries.

A complete brief has five parts:

  • The goal, including the reason behind it, so the receiver can make sensible choices on details you did not specify.
  • The facts gathered so far, with the source attached to each one.
  • The constraints: actions the receiver must avoid, and the tools it may use.
  • The output format, down to field names if another agent or program will read the result.
  • The definition of done, so the receiver knows when to stop.

Pass structured data where you can. A set of named fields survives a hand-off better than a paragraph, and the next agent can check that each field is present. Keep sources attached to findings all the way through. In my research workflows each finding carries its source, so a person can trace a claim back to the page it came from.

Decide where a person reviews the work. The hand-off before an irreversible action, such as sending a message or changing a record, makes a good checkpoint. The code that routes those hand-offs belongs to your agent architecture, and it deserves the same testing as the prompts.

Common questions

Does each agent need a different AI model?

No. Several agents can share one model, each with its own prompt and tools. Some teams give a cheaper model to simple worker tasks and a stronger model to the orchestrator, which is a cost decision you can make later.

Is a multi-agent system more accurate than a single agent?

It can be, where an evaluator checks work against clear criteria or where the job exceeds one context window. On a job a single agent already handles, extra agents add cost and new places for errors to enter.

Can I build a multi-agent system without code?

Yes. Workflow platforms such as n8n let one agent call another as a tool or pass work along a chain of agent steps. Code frameworks give you finer control over state and hand-offs.

Sources and references

  1. Anthropic, Building effective agents
  2. Anthropic, How we built our multi-agent research system
  3. OpenAI Agents SDK, Handoffs

Concepts covered: multi-agent system, orchestrator and workers, evaluator and optimiser, context window, hand-off, tracing, tokens.

Weekly newsletter

The AI Brief by Clarence Cheang

A weekly exploration of the developments, technologies and ideas shaping artificial intelligence.

One email a week. Unsubscribe in one click. What is in each issue