AI 101

Multi-agent systems

When one agent is not enough: the three common patterns, the honest case for staying single, and the cost multiplier nobody mentions.

By the end of this page β€” you can name the three multi-agent patterns, explain when a *single* agent is the better choice, and estimate why multi-agent costs more than it looks.

One agent is a chef working alone in a kitchen. Multi-agent is a restaurant brigade: a chef, a pΓ’tissier, a runner, a critic. More output β€” but more coordination, more dishes to taste, and more ways to argue about the menu.

The three common patterns

PatternHow it worksBest at
🎼 OrchestratorOne “lead” agent splits the task, delegates sub-tasks to workers, merges their resultsBig, decomposable jobs (“research 12 sources, write a report”)
🏭 PipelineFixed sequence: agent A’s output feeds agent B’s, then C’sRepeatable workflows (draft β†’ review β†’ format)
πŸ₯Š Debate / swarmSeveral agents solve the same task and critique each other (or vote)Quality-critical outputs where one brain isn’t enough
The orchestrator pattern is the workhorse β€” Most real systems (including the one reading this sentence's author's tooling) are orchestrator-style: a coordinator that holds the goal and a pool of workers that each hold one sub-goal. It's easier to debug because there's always a single thread of authority.

When ONE agent is the right answer

Be honest with yourself here β€” this matters more than the patterns above:

  • The task is sequential and small β†’ one agent, done.
  • You can’t explain the sub-tasks clearly β†’ you can’t delegate them either; a single agent improvising beats a fleet misdirected.
  • Budget matters β†’ see below.

Multi-agent is not “smarter”. It’s parallelism + separation of concerns, and it’s only worth it when one of those two is actually the bottleneck.

The cost multiplier nobody mentions

A multi-agent system doesn’t cost N times more β€” it costs roughly N Γ— N:

  • each agent carries its own context and system prompt,
  • every agent re-reads results,
  • and their messages to each other are also tokens.
Hallucinations and injection multiply too β€” An agent talking to an agent compounds [hallucinations](/fundamentals/hallucinations/) (agent B trusts agent A's confident wrongness) and widens the [prompt injection](/agents/agent-security/) surface (every message between agents is untrusted text the model can't tell data from instructions). More mouths = more attack area.

A rule of thumb

If one agent can do it in under ~20 tool calls, keep it one. Go multi when the job is genuinely parallel, or when a sub-task is long enough that a fresh context for it beats one bloated conversation.