Multi-agent patterns: orchestrator-workers, handoffs, debate, when several agents help or hurt

Who decides the next step, who sees what, and what several loops cost against one, measured on tasks built for each pattern: Claude Code and claude -p sessions on Claude Haiku 4.5 and OpenAI Agents SDK runs on a local model. A child of Topic: agentic-frameworks. Data as of 6 October 2026. Reading: 32 min, plus 14 in closed details.

The idea in one screen

Several agents beat one when the work is independent reading that does not fit one context, and the split, the brief and the check are fixed before they start; for anything else one agent is cheaper and as good.

You need the single agent loop (Topic: agentic-harnesses) and what fills a context window and what caching does to the bill (Context engineering, sections 1 and 2). How a harness isolates a subagent's context is that page's section 6 and Claude Code, taken apart section 7; this page is about the patterns built on top. Section 1 defines the terms.

Fig. 1, step by step: two questions place every pattern, who decides the next step and what each loop sees

  1. The floor is the map. Columns: who decides the next step (your code, a model, or nobody, with agents claiming work from a store). Rows: what each loop sees (only its own slice, or a shared history or store). Blue blocks are model loops, gold slabs are code you wrote, the green plate is a shared store, and the glass beside a loop is the context it sees.
  2. One agent. One model decides every step and sees everything it has read, in one growing context; each call resends it all, so tokens grow with the square of the steps (section 9). Sections 2 and 3.
  3. Orchestrator-workers. A lead model decides how to split, whom to start and when to stop; each worker sees only its brief and its own reading, the lead only briefs and reports. A start-up context per worker, but every context stays small. Claude Code subagents (the Agent tool), Anthropic's Research system, a LangGraph supervisor written as tool calls. Section 3.
  4. Agents as tools. A manager model keeps the conversation and calls each specialist like a function; a specialist sees only the input the manager wrote for it, and the manager writes the reply. OpenAI Agents SDK Agent.as_tool; Claude Code subagents seen from the lead. Section 6.
  5. Handoff. The current agent calls a transfer tool and the receiver owns the conversation, seeing the whole history under its own instructions and tools. One active agent at a time, no merge, nothing in parallel, so a second transfer in the same reply is ignored. OpenAI Agents SDK handoffs (transfer_to_<agent>), langgraph-swarm. Section 6.
  6. Fan-out workflow. Your code fixes the split and the merge; each call sees its slice, pasted in. One call per slice, no lead, no exploration: the cheapest parallel design when the split is known. asyncio.gather, LangGraph Send, the parent page's "parallelisation" workflow. Section 4.
  7. Parallel writers. The same split applied to writing: each writer sees the spec, not the other's code, so the halves can disagree on names where they meet. Section 7.
  8. Voting and debate. Voting (self-consistency, Wang et al. 2022): k independent samples, and code takes the most common answer; no prompt grows. Debate (Du et al. 2023, three agents, two rounds): in round 2 each solver also sees every other solver's answer and reasoning, so solvers times rounds calls with growing prompts. Section 8.
  9. Blackboard. Nobody decides: each agent claims the next unclaimed piece from a shared store and sees its own work plus what it reads there. Work balances itself, and nothing filters what gets posted. Hearsay-II (1971 to 1976), Claude Code agent teams' task list, Agora's Git graph, Anthropic's FLT proof graph. Section 5.
  10. What each did on the task built for it. Green won there, red lost, amber won with a cost worth knowing. One agent: . Orchestrator-workers: . Fan-out: . Blackboard: . Handoff: ; agents as tools: (local model). Parallel writers: . Vote of 5: ; debate: . All Claude runs are Claude Haiku 4.5 in Claude Code; the handoff runs use a local 4B model.
The same map as a table: who decides, who sees what, what was measured
PatternWho decidesWho sees whatMeasured hereSection
The rule the measurements support
Split reading across agents when the material does not fit comfortably in one context window, and let code do the splitting if you know the split in advance. Keep writing of one artefact with one agent, or fix the interface before the writers start. Say exactly what counts before you split: parallel workers drew the boundary of the task differently from run to run (from no extra reports to 170), a second opinion from the same model confirmed them all, and a sharper brief removed them for less than the check cost.

1. Terms, and the two families

Every pattern starts from one agent loop: each model call sends the whole conversation so far (its context) and gets back tool requests or an answer; the most one call accepts is the context window (200,000 tokens for Claude Haiku 4.5, the model of every Claude run here).

Multi-agent system
several model loops (agents) on one job.
Lead
a loop that starts others (also orchestrator, supervisor).
Worker
a loop started by a lead (also subagent), given a brief (the text that starts its conversation), returning a report (its final answer).
Context isolation
a worker's reading and dead ends stay in its own context; the lead receives only the report. The price: a start-up context per worker, duplicated reading, and lost detail at the report boundary.
Workflow
your code decides the steps and calls a model at fixed points.
Agentic pattern
a model decides the steps (how to split, whom to call next).
Handoff
passing the conversation itself to another agent, which carries on in its place.
Blackboard
a shared store every agent reads and writes; nobody assigns work.
Voting, debate, judge
sample one question several times and take the majority; let solvers read each other and revise; have one call pick among answers.

Two families hide in Fig. 1. Fan-out, voting and a fixed pipeline are workflows that happen to call a model several times; in the lead and the triage agent a model decides. Anthropic drew this line in December 2024 (workflows are "orchestrated through predefined code paths", agents "dynamically direct their own processes and tool usage", in Building effective agents); the parent page's section 1 compares its five workflow patterns.

Labels: MEASURED a run recorded for this page (or by the parent page, named as such); LOCAL MODEL Qwen3-4B-Instruct-2507 (4-bit, MLX) on an Apple M1 Pro, never compared with Claude as the same model; DOCUMENTED read in official docs or source at a pinned version; UNCONFIRMED no primary source found. Costs are the API-price equivalent claude -p reports (total_cost_usd); the runs were paid by a subscription.

2. Where several agents lost

The parent page ran the textstats bug fix (two planted bugs, three visible tests, six hidden checks) twice with Claude Haiku 4.5 in Claude Code MEASURED: once as one agent, once as a lead told to start one subagent per failing test and apply their fixes.

One agentLead + 2 subagentsRatio
Cost equivalent
Wall time
Tokens processed (input + cache writes + cache reads)
Hidden checks passedsame

Why it lost is the whole subject in miniature. The task fitted easily in one context window, so isolation saved nothing. There was little to do in parallel: two short investigations, then edits to the same file. And every subagent paid for its own start-up context (Claude Code's system prompt and tool definitions, about 13,000 tokens before any work: Context engineering, section 1) and re-read files the lead could have read once. Anthropic's own write-up says the same about this kind of job: "most coding tasks involve fewer truly parallelizable tasks than research" (Anthropic, 13 June 2025).

So the fair test needs the opposite: much more to read than one context holds, in independent pieces, with an answer that can be scored.

3. A task too big for one window

The audit. A generated package, fleetops, has modules ( of Python) with public functions. Each function's docstring makes one checkable promise: a default ("The default timeout is 30 seconds."), a unit ("Returns the elapsed time in milliseconds."), an order, a bound, what happens for a missing key, a number of attempts, a scale, or case handling. In functions spread over 14 modules the code breaks its own promise (timeout=60 under "defaults to 30 seconds"; lo <= x < hi under "both bounds are inclusive"). The job: find all of them, reading only (tools Read, Grep, Glob), and answer with a JSON list. The answer key never sits in the agent's folder (generator: src/code/gen_audit.py, fixed seed).

Why it does not fit. The module text alone is about tokens for Claude Haiku 4.5 (measured: the six fan-out prompts of section 4 carry exactly the module text, minus a measured -token frame each). Claude Code's Read tool adds a line number to every line, and the session starts with about 13,000 tokens of its own. Reading everything in full would put a Haiku agent at or past its 200,000-token window. A Sonnet 5.5 session that did read everything in full peaked at tokens per call (a different tokenizer, which counts the same text as more tokens: Context engineering, section 1).

Four designs, same model, same task MEASURED, three runs each (two for the blackboard, which section 5 varies further): one agent; a lead with six auditor subagents (Claude Code's Agent tool, defined with --agents; the lead is told to split the modules into six groups of eight and start all six at once); a fan-out workflow (section 4); and a blackboard without a lead (section 5). Fig. 2 draws run 1 of each with every context on one scale:

Fig. 2, step by step: height is tokens, 1 grid line every 50,000

  1. Too big for one window. The 48 modules as a pile (module text plus Claude Code's start-up) beside the 200,000-token window, the red rim. Slabs are drawn equal, the total divided by 48.
  2. One agent, Haiku 4.5. Its context climbs to tokens and stays under the window only because half the modules were read in part (pale). It found of 16.
  3. A bigger window. Sonnet 5.5 reads everything and passes Haiku's line (red), inside its own 1,000,000: all 16.
  4. Lead + 6 auditors. Six groups of eight modules, one per auditor; each auditor's largest context (on its column) is about a quarter of the window, and the lead never holds a module. Briefs go out, reports come back; all 16 found.
  5. Fan-out workflow. Code pastes each group into one tools-off call and merges the answers: one turn each, about 27K, no lead (section 4). All 16 found.
  6. Blackboard. No lead: each agent claims the next module from a board, reads it and posts findings, so contexts grow with every claim; faster agents claimed more (counts under the columns). All 16 found, plus other reports (section 5).

What happened to the single agent. It did not run out of window and it did not crash. It cut corners to stay inside the window: in the first run it opened all 48 modules but read of them only in part (only the first 50 or 100 lines of a module of to lines), in the second it read modules and grepped for the rest, and it batched up to six reads into one model call ( calls for the whole audit). Its findings were all correct; it never looked at half the bugs, and its answer claimed a "comprehensive audit of all 48 modules". That is the failure isolation fixes: no single loop has to choose what to skip.

What the workers did. Each auditor read its eight modules in full (about 26,000 tokens of module text), and the lead's context never held a module: its largest call was tokens. Every orchestrator run found all 16. The cost was about the single agent's, and it took longer, because the lead waits for its slowest worker and then merges.

The other fix: a bigger window. The same single-agent prompt on Sonnet 5.5, whose window is 1,000,000 tokens, read every module in full in model calls and found all 16 with no other reports, for in (one run). When the material fits a larger model's window, that can be simpler than coordinating six agents; isolation is what you reach for when it does not, or when the cheap model is the one you can afford to run many times.

The same runs on one clock

Replay one run of each design: a row per model loop, a bar per model call at the time its reply arrived, its height the context sent (the dashed line is Haiku 4.5's 200,000-token window). Time runs to the same scale in every design, so the replay is directly comparable. It opens on the finished run; drag the slider or press play to watch it build.

DesignRunsPlanted found (of 16)Other reportsLargest contextTokens processedCostWall time

Per run, comma-separated in run order; tokens, cost and wall time are means. Every run, its lanes, briefs, claims and findings: Audit lab.

Predict, then open: the orchestrator found all 16 in every run. Did it ever report anything else?
Yes. In one of three orchestrator runs (and one of three fan-out runs) a worker also reported functions that promise "a fraction between 0 and 1" and return hits / total without checking that hits does not exceed total. That is not one of the eight contract kinds in the brief, but it is a defensible reading of the docstring, and the lead passed it through. Recall was perfect; the share of reports that were planted bugs was not. Section 5 tries to fix that with a check, and finds a better fix.
A worker that runs out of turns returns nothing

The Audit lab replays every run lane by lane, lists the six briefs each lead wrote, shows which planted bug each run found or missed, and the claim order on the blackboard. A worker that runs out of turns returns nothing to merge: on the Claude Agent SDK page (section 6, run s5) a subagent with maxTurns 4 stopped without a report, and Claude Code told the parent to use SendMessage, which was "disabled for this session". Give workers enough turns for the job, and have the lead check that every brief came back with a report.

4. Workflow or agents?

The lead in section 3 spent its first calls deciding something that was known before the run started: 48 files, six groups. A fan-out workflow moves that decision into code. A script splits the modules into six groups, pastes each group's text into one claude -p call with every tool switched off (--tools "") and the auditor's instructions as the system prompt, runs the six calls at once, and concatenates their JSON lists. No lead, no tool calls, no exploration: each call is one model turn.

It found all 16 in all three runs (Fig. 2, step 5), at about of the orchestrator's mean cost and of its wall time MEASURED (run 1 alone, with nothing cached, cost , of the orchestrator's mean). Two things make it cheaper. Each call reads its 26,000-odd tokens once instead of resending them on every tool round, and there is no Claude Code start-up context per worker. What it gives up is everything a model decides at run time: it cannot follow an import into a module it was not given, cannot notice a group is too big, and cannot re-split. When the split is known, write it in code; when finding the split is part of the job (research, where the next query depends on the last answer), you need a lead.

Why the three fan-out runs differ in cost: the prompt cache

Runs 2 and 3 sent exactly the same six prompts as run 1 within the hour, so most of their input was read from cache at a tenth of the price. That is why the page quotes run 1 alone for the uncached cost.

The parent page's version of this lesson
On the bug fix, the parallel workflow that sent one call per failing test was also the cheapest correct design (Topic: agentic-frameworks, tab Orchestration lab, part "Results"). Anthropic's patterns essay puts "sectioning" under workflows for the same reason.

5. Blackboard: no lead, a shared store, and the limits of checking

A blackboard is a shared store that every agent reads and writes; nobody assigns work, each agent takes what it can do next.

Blackboards before and beside this one

The idea is older than language models: Hearsay-II, a speech-understanding system built at Carnegie Mellon from 1971 to 1976, had independent "knowledge sources" posting hypotheses to a shared blackboard (Erman, Hayes-Roth, Lesser and Reddy, Computing Surveys, June 1980). Today's versions: Claude Code agent teams share a task list in which "Task claiming uses file locking to prevent race conditions" (agent teams docs); Anthropic's Fermat's Last Theorem run coordinated through a graph of theorem statements; Agora keeps every result as a Git commit that others re-run.

Our board MEASURED. Six Haiku agents, no lead, a 29-line Python script as the store (in src/code/run_audit.py): python3 board.py claim w3 hands out the next unclaimed module using an exclusive file create (the operating system guarantees only one agent can create a given file, so two agents can never claim the same module), and post appends a finding. The agents may run only that script (--allowedTools "Bash(python3 board.py:*)"). Work balanced itself: faster agents claimed more modules (Audit lab lists who claimed what). Every board run found all 16 planted bugs.

But the board also collected other reports in its two plain runs. Read them and they fall into two kinds (classified by their stated reason): "returns hits / total with no check, so it can exceed 1 although the docstring promises a fraction" and "the docstring says it raises ValueError on malformed input, but nothing raises". Neither is one of the eight contract kinds the brief listed, and the first is only wrong for impossible inputs, but both are defensible readings of the docstrings; the second is a flaw in our generator, which adds that sentence without code to match. So they are not hallucinations: they are workers drawing the boundary of the task in different places. The single agent and most orchestrator and fan-out runs never reported them; one orchestrator run and one fan-out run did, and so did of the board runs with the original brief.

Does a check round fix it? We took the 186 findings one board run had posted and gave them to six fresh Haiku checkers, each claiming findings it had not posted, twice: once shown the auditor's reason, once blind (only the file and function, asked to decide for itself). Then, separately, we ran the board again with a sharper brief that names what does not count ("Do not report missing input validation, exceptions the code does not raise, thread safety, or results that are wrong only for impossible inputs").

Both check rounds kept every one of the findings, for each. Showing the claim was not the problem: the blind checkers, reading the same docstring, reached the same broad reading on their own. A second opinion from the same model shares the first one's interpretation, so it confirms rather than checks. The sharp brief removed the extra reports at the source: planted bugs found and other reports, at per run.

What actually checks
A verifier that does not share the workers' judgement: an answer key or test suite (our hidden checks), a proof checker (Lean, in the FLT run: "computer-checked"), re-execution by someone else (Agora's verifications by "an account other than the target's author"), or a person. A model checker helps against random slips, not against a shared reading of an ambiguous brief. Anthropic's advice for briefs is the cheaper fix: "an objective, an output format, guidance on the tools and sources to use, and clear task boundaries" (Anthropic, 13 June 2025).
Why did the board drift more than the orchestrator?

Why did the board drift more than the orchestrator? Its agents posted each finding the moment they saw it, one shell command per line, with nobody assembling a final list; the orchestrator's workers each wrote one considered JSON answer. Our runs cannot separate that from chance (two or three runs per design), so treat it as a hypothesis.

Every check kept every finding; the sharper brief removed the extras at the source

planted bug keptother report keptother report rejected

6. Handoffs against agents-as-tools

A support desk is the textbook case for a handoff: a triage agent reads the customer's message and transfers the conversation to the right specialist, who then owns it. The OpenAI Agents SDK makes this its native primitive DOCUMENTED: "Handoffs are represented as tools to the LLM", named transfer_to_<agent>, and the receiving agent "gets to see the entire previous conversation history" (handoffs docs). The alternative is agents as tools: a manager calls each specialist like a function and keeps the conversation; the specialist sees only the input the manager wrote for it.

The two differences, in the SDK's own words

The docstring for Agent.as_tool: "In handoffs, the new agent receives the conversation history. In this tool, the new agent receives generated input," and "In handoffs, the new agent takes over the conversation. In this tool, the new agent is called as a tool, and the conversation is continued by the original agent" (openai-agents 0.23.1, agents/agent.py).

The run LOCAL MODEL. One customer message with two problems: "I was charged twice for invoice 1042 and I want the duplicate refunded. Also your app has crashed every time I log in since this evening." Billing has lookup_invoice and refund_charge; tech has check_status; all three tools return fixed fake data. Three designs on openai-agents 0.23.1 with Qwen3-4B-Instruct-2507 served locally: a triage agent with handoffs to both; the same with the specialists also allowed to hand off to each other ("mesh"); and a manager with both specialists as tools. Five runs per design (four at temperature 0.7, one at 0). Every request went through a logging proxy, so the stacks below are exactly what each agent was sent. Fig. 3 replays run 1 of each design request by request:

Fig. 3, step by step: one slab per message the agent was sent (grey system, orange user, blue assistant, green tool result)

  1. Triage reads the message. It is sent messages, the system prompt and the customer's two problems ( prompt tokens), and offered two tools, transfer_to_billing and transfer_to_tech. It calls both.
  2. Billing takes over, with the whole history. The SDK takes the first transfer and answers the second with "Multiple handoffs detected, ignoring this one." Billing is sent every message so far (, tokens), including the ignored transfer, and has no tool that reaches tech. It calls lookup_invoice.
  3. Billing replies and stops. With the invoice result added ( messages, tokens) it writes the final reply, which promises a refund that refund_charge never made; nobody looks at the crash.

The request on screen, as the proxy logged it (new messages outlined):

What the recordings show. The triage model asked for both transfers in one reply, which is the right reading of a two-problem message. A conversation can only have one owner, so the SDK took the first and answered the second with a tool result, "Multiple handoffs detected, ignoring this one." (in run_internal/turn_resolution.py, actual_handoff = run_handoffs[0]). The crash was never looked at, in every handoff run. Allowing the specialists to hand off to each other did not help: billing had the transfer tool and an instruction to use it, and did not. The manager design consulted both specialists in every run, at about the prompt tokens.

All designs share one failure that has nothing to do with the pattern: no run ever called refund_charge, yet of replies told the customer the refund was under way. A 4B model is weak at acting before it speaks; the lesson for any pattern is to check the actions in the trace, not the words in the reply.

When to use which
Use a handoff when routing is the job and the specialist should own the rest of the conversation (one topic per conversation, as in a phone menu). Use agents as tools when one request can need several specialists, or when the user must keep talking to one voice. The SDK docs say the same: agents as tools "when a specialist should help with a bounded subtask but should not take over the user-facing conversation" (orchestrating multiple agents). Handoff history can be trimmed with an input_filter, and nest_handoff_history (an opt-in beta, off by default in 0.23.1) compacts earlier turns into summaries.

Framework mechanics live on their own pages: the OpenAI Agents SDK's handoff code, guardrails and sessions on Typed agent libraries; LangGraph's Command.PARENT handoff on LangChain and LangGraph (section 8); agents in other processes or organisations, over A2A, on Agent-to-agent and beyond.

What those pages measured about handoffs

Typed agent libraries reads the OpenAI Agents SDK's handoff machinery, guardrails and sessions from source. Its Mechanisms, recorded tab steps through an Agents SDK handoff request by request (run "Agents SDK: handoff, greedy"): to the model, the transfer tool is one more function next to the agent's own tools. The same tab measures the default parallel input guardrail against a blocking one on an off-topic request: parallel tripped after 2 model requests, blocking after 1, the difference being the agent's own first call, made and paid for although its answer was thrown away (Reading section 4 there). In LangGraph a handoff is a node returning Command(goto="billing", graph=Command.PARENT) from inside a subgraph, so the parent graph runs the specialist next: LangChain and LangGraph, section 8.

DesignRunsRequests per runPrompt tokens per runInvoice looked upLogin status checkedRefund actually issuedReply promises a refund

7. When it hurts: two writers, one feature

Cognition's warning is about writing: "Actions carry implicit decisions, and conflicting decisions carry bad results." An implicit decision is a choice the spec did not make, such as what to call a field. Two agents writing halves of one feature in parallel each make those choices alone, and nobody notices until the halves meet.

The test MEASURED. Starting from textstats with its bugs fixed, two modules must fit together: one computes something from a text, the other formats it. Three designs, three runs each, all Claude Haiku 4.5 in Claude Code (tools Read, Write, Edit, Bash limited to python3, Glob, Grep): one agent writes both; two parallel writers, each in its own copy of the repository, told the other half exists but that they cannot see it; and contract first, where one tools-off call writes the shared data shape before the same two parallel writers start. A hidden check imports both halves from the merged tree and calls one on the other's output. We ran two specs:

  • Pinned: "build_report(text) returns the word count, the number of distinct words, and the top 3 words with their counts; render(report) makes a Markdown table." The wording nearly names the fields.
  • Open: "profile(text) describes a text's vocabulary: how long it is, how varied it is, and which words dominate it; card(p) formats it as a plain-text card, one line per item." Every name is left to the writer.
SpecDesignHalves fit (of 3)Mean costMean wall time

What happened. With the pinned spec the two writers chose the same field names every time: the same model reading the same sentence makes the same guess, so the "conflict" never arose. With the open spec the parallel halves fitted in of 3 runs. In the others nothing crashed: the formatter had been written defensively (if "length" in p:), so the card silently printed only the line whose name both writers happened to share, and the word count and variety vanished. A defensive guess turned a loud KeyError into quiet data loss. Run 3 was the mirror image of run 1: the names the formatter expected in run 1 were the ones the profile used in run 3, and the reverse. The same model, asked twice, decides differently, which is why "it worked when I tried it" means little here.

Writing the contract first fixed it in every run, for one extra short call and about of extra wall time on average (the writers also spent longer following it). The single agent never had the problem, because one context holds both decisions. This is the general rule: parallel writers need their implicit decisions made explicit before they start (an interface, a schema, a test that pins the shape), or a single writer.

Predict, then open: which would have caught the silent loss: the writers' own tests, or the hidden check?
Only a check across the seam. Each writer could test its half only against its own idea of the other half, so any test it wrote would pass. The hidden check called card(profile(...)) and looked for the word count in the output. Nous Research's 1,393-agent refactor met the same wall at scale: the repository's tests passed while reviewers found exception handling changed at about 65 sites (section 10).

The two halves of each run, side by side: where the names meet

8. Debate and voting

When the job is one hard answer rather than a lot of reading, the multi-agent move is to ask several times and combine. Voting (self-consistency) samples the same question independently several times and takes the most common answer. Debate lets solvers read each other's answers and reasoning and revise; Du et al. used "three agents with two rounds of debates" and reported arithmetic accuracy rising from 67.0% for one agent to 81.8% (Du et al., May 2023). A judge reads several answers and picks one. The catch the later papers found: compare against voting at equal cost, and most of debate's gain belongs to voting ("Majority Voting alone accounts for most of the performance gains typically attributed to MAD", Debate or Vote, Aug 2025; earlier Smit et al., Nov 2023 and Wang et al., Feb 2024).

Our test MEASURED. knights-and-knaves puzzles with nine islanders each (knights always tell the truth, knaves always lie; every puzzle has exactly one solution, checked by brute force), for example "Cleo says: 'If Ivo is a knight, then Fay is a knave.'" and "Fay says: 'Exactly 8 of us 9 are knights.'" Claude Haiku 4.5 with tools off. For every puzzle we recorded five independent samples, one debate round in which solvers 1 to 3 read the other two solutions and revise, and one judge call over solutions 1 to 3, so every method below is computed on the same calls. Fig. 4 lays out every answer:

Fig. 4, step by step: one column per puzzle; a tall green tile is a fully right answer, a flat red one has someone wrong

  1. Five independent samples. Each sees only the puzzle. One sample solved puzzles; the five rows differ because the same model, asked again, decides differently.
  2. Voting, in code. The most common answer wins. Voting over three samples solved , over five : no prompt grows, and nobody reads anybody.
  3. One debate round. Solvers 1 to 3 each read the other two round-1 solutions and revise; the flows mark the puzzles where a solver changed its answer. wrong solver answers were corrected (green) and right ones were talked out of it (red).
  4. The debate's majority. Debate solved . After the round all three solvers agreed on of the 30 puzzles (before it, on ), of them unanimously wrong (lit red).
  5. One judge call. It reads solutions 1 to 3 and picks one: , for about of the tokens of a five-sample vote.

How to read it. Voting explains most of the improvement over one sample (from to ), as the Debate or Vote paper found. Reading other solvers' work added the last couple of puzzles here, and there is a reason it can on this task: a proposed assignment of knights and knaves can be checked statement by statement, so a solver shown a correct solution can verify it, which is easier than finding it. Where checking is no easier than solving (open questions, judgement calls), expect less. And 30 puzzles is a small sample: a two-puzzle gap is within noise. The judge result says something practical: when you already have several samples, one call that checks them can be cheaper than more samples.

The other side of agreement
Debate converges: after one round the solvers were unanimous on every puzzle. That is efficient when the majority is right and dangerous when it is not, because unanimity looks like confidence. Keep a verifier outside the debate when you can (here, the brute-force solver).

Judges as evaluators (biases, calibration) are LLM-as-judge's subject.

An answer is right only if all nine people are right. Tokens are input plus output for every call a method uses (debate includes its round-1 calls; the judge includes the three solutions it reads). Hover a point for its count.

Thirty puzzles, every call: methods, the vote-of-k curve, what debate changed, each puzzle

The experiment in full MEASURED: knights-and-knaves puzzles with nine people each (generated with a fixed seed and checked by brute force to have exactly one solution; src/code/gen_puzzles.py), Claude Haiku 4.5 through claude -p --tools "" --system-prompt <solver>, default sampling and thinking, Claude Code 2.1.291, 6 October 2026. Per puzzle: five independent samples (s1 to s5); a second debate round in which solvers 1 to 3 each read the other two round-1 solutions and revise (d1 to d3, the protocol of Du et al.: three agents, two rounds); and one judge call that reads solutions 1 to 3 and picks (j). Every method below is computed from these same calls, so the comparison is paired.

MethodCorrectCalls per puzzleTokens per puzzleOutput tokens per puzzleCost per puzzle

Voting, one sample at a time

Expected accuracy of a majority vote over k of the five samples, averaged exactly over every subset of size k (ties go to the earliest of the most common answers). k = 1 is the average single sample. A vote of two can only break a disagreement by taking the first answer, so it is no better than one sample; odd numbers are what voting needs.

What debate did to each solver

Every puzzle

Green: the whole assignment is right; red: at least one person wrong. Click a row to open the puzzle.

9. Token and quality accounting

Every comparison on this page reduces to a few sums. Start with the audit's bill, per design, split by what each token was:

Reading the bill. The single agent's tokens are mostly cache reads, and they are cheap. The orchestrator and the fan-out workflow write each worker's modules to the cache once (six fresh contexts instead of one growing one), and every worker thinks before answering: output is the largest single item in both. The blackboard designs cost most: every agent makes several model calls per module (claim, read, post each findings line), each re-sending its growing history, and the check round starts six more loops.

Why the shapes differ. Each call resends its loop's whole context, so

tokens processed = ∑calls (context sent by that call)
context
start-up prompt + tool definitions + every message so far in that loop

A loop of T calls that starts at S tokens and adds g per call processes about T·S + g·T2/2: the sum grows with the square of the steps. Split the same reading across k isolated workers and the square term shrinks to about g·T2/(2k), while every worker pays its own start-up and the lead adds its calls. That is the argument for isolation in one line, and why it lost on the small bug fix: when T is small the square term is small, and only the extra start-ups remain.

Prompt caching changes which term costs money: a token re-sent from cache costs a tenth of a fresh one on Haiku 4.5, so the growing re-reads are cheap and the bill is set by what is new (content written to the cache for the first time, and output, including hidden thinking).

cost = pin·fresh + pwrite·written + pread·cached + pout·output
The prices behind the cost view

Haiku 4.5: $1 fresh, $2 written (1-hour cache; $1.25 for 5-minute), $0.10 cached, $5 output, per million tokens (list prices read 5 Oct 2026). Claude Code writes its cache with the one-hour lifetime at twice the input price (Context engineering, section 2). For the fan-out workflow output dominates partly because its repeated prompts were cache hits (section 4).

Quality is counted the same way: recall (planted bugs found out of 16) and precision against the key (planted bugs out of everything reported). A design that reports 186 items to find 16 has perfect recall and a precision under 10%; someone has to read the other 170 and decide which of them matter.

The audit bill by design: what each token was, and what it cost

10. The published evidence, read carefully

Our runs are small and on one model. Four results from larger studies carry the argument:

  • Breadth pays, in tokens. Anthropic's research system (Opus 4 lead, Sonnet 4 subagents) beat a single Opus 4 agent by 90.2% on an internal eval, at about 15× the tokens of a chat; on BrowseComp, token usage alone explained 80% of the variance (vendor-run, 13 Jun 2025).
  • Decomposability sets the sign. Kim et al. ran 260 configurations: from +80.8% on decomposable financial reasoning to -70.0% on sequential planning (Dec 2025, independent).
  • Debate's gain is mostly voting at equal budget (Debate or Vote, Aug 2025; section 8).
  • Failures cluster where agents meet and where nobody checks (MAST, below).

Most subagents can be folded back into one loop. Anthropic's agent-building guidance (22 Oct 2026) DOCUMENTED says "using fewer subagents in favor of progressively disclosed context and tools can improve quality": one loop that loads skills when needed and finds tools through deferred tool search, rather than a subagent per specialty. The reason is the tool list: "once you exceed 30-50 tool definitions in the system prompt, tool choice tends to degrade", and progressive disclosure keeps the list short without splitting the context. Keep subagents for parallel work that needs fresh windows, or when "a single agent loop hits measurable performance degradation from context bloat". Its evidence is vendor-side: one customer saw "a roughly 2x faster runtime" with a single loop, and Anthropic cut Claude Code's system prompt for its newer models "by over 80%". This agrees with this page's rule from the other side: split reading that overflows a window; do not split to organise tools. Skills as a mechanism, and their window cost, are on Context engineering section 5.

Over two fifths of observed failures are design and specification problems (step repetition, ignoring the task spec, not knowing when to stop) and almost a quarter are verification: the board's reports outside the brief and the checkers that kept them all (section 5) are this page's instance of both. The single largest inter-agent mode is reasoning-action mismatch (13.2%): what an agent says it will do and what it does part ways, as in section 6's reply promising a refund that was never issued; over days the same mode let Emergence World's agents name a message hostile and still run it or store it.

Every source, with who measured what
SourceWhat was measuredWhat it supportsRead it as
Anthropic, multi-agent research system (13 Jun 2025)Opus 4 lead with Sonnet 4 subagents "outperformed single-agent Claude Opus 4 by 90.2%" on an internal research eval; "agents typically use about 4× more tokens than chat interactions, and multi-agent systems use about 15× more tokens than chats"; on BrowseComp "token usage by itself explains 80% of the variance", with tool calls and model choice the other two of three factors explaining 95%Breadth-first research, where more tokens buy more coverageVendor-run, internal eval, no released data DOCUMENTED
Cognition, Don't Build Multi-Agents (Walden Yan, 12 Jun 2025)No numbers: two principles, "Share context, and share full agent traces, not just individual messages" and "Actions carry implicit decisions, and conflicting decisions carry bad results"; read-only narrow subagents are acceptableWriting one artefact; long tasks with dependent stepsAn argument from experience building Devin DOCUMENTED
LangChain, How and when to build multi-agent systems (Harrison Chase, 16 Jun 2025); Philipp Schmid (20 Jun 2025)Reconciles the two: "Read actions are inherently more parallelizable than write actions"; context engineering is the hard partThe read/write split this page testsSynthesis, no new measurements
Kim et al., Towards a Science of Scaling Agent Systems (Dec 2025, rev. Apr 2026)260 configurations: effects from "+80.8% on decomposable financial reasoning to -70.0% on sequential planning"; "Tool-heavy tasks appear to incur multi-agent overhead"; coordination yields diminishing returns once single-agent baselines are strongDecomposability decides the signIndependent, controlled, the broadest study
MAST, Cemri et al. (Mar 2025, rev. Oct 2025)Failure taxonomy from 150 traces, "14 unique modes, clustered into 3 categories": system design issues, inter-agent misalignment, task verification; 1,600+ annotated traces across 7 frameworksWhere multi-agent systems breakIndependent; our false findings are a "task verification" failure in its terms
Anthropic, Fermat's Last Theorem (4 Sep 2026)"In 11 days, working largely autonomously, Claude produced the first end-to-end, computer-checked proof"; "about six billion output tokens"; agents coordinated over "a directed acyclic graph (DAG) of theorem statements" on a platform called Prove2MeBlackboard plus a perfect verifier (Lean) at very large scaleA demonstration, not a comparison
Nous Research, 1,393 agents (Sep 2026)1,393 subagents, "reaching 218 running at once", about nineteen active hours; non-test Python lines 1,063,826 to 698,363 (34.4%); "about $19,300 for the main run"; reviewers found "changed exception handling at roughly 65 sites. These were real regressions the existing tests had missed."Parallel writing works with worktrees and frozen baselines, but tests are a weak verifierVendor report on its own repository (Hermes Agent)
Agora (arXiv 2609.18094) (Sep 2026; paper page Agora)13 workers, nearly 12 days, 1,703 contributions on a shared Git graph; an evaluator moved "from 3.39 to 1.899 bits per byte"; "165 verifications of 95 targets, each by an account other than the target's author"A blackboard with cross-checking replaces the plannerIndependent research system, one task family
Claude Code agent teams (docs read 6 Oct 2026)Experimental, off by default (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1); teammates "message each other directly", share a task list where "Task claiming uses file locking to prevent race conditions"; not spawned in -p or SDK sessions; "Agent teams use significantly more tokens than a single session"Peer messaging plus a blackboard are back in a mainstream harnessDocs DOCUMENTED; not run here (needs an interactive session)
Dropped from the old page
A swarm of "10,000 concurrent agents" on a Navier-Stokes proof (4.9 million messages, about 300 billion output tokens, "$2m to $22.5m") UNCONFIRMED: no primary source was found by the parent page's check (6 Oct 2026) or this page's, so it is not repeated here, and neither is the old page's derived "2% of that token spend" for the FLT run.

Where multi-agent systems fail: MAST's 14 modes, drawn to scale

Bar length is each mode's prevalence "as observed in our analysis of 1642 MAS execution traces" across seven frameworks (Cemri et al., arXiv 2503.13657 v3, Oct 2025; shares as printed in the paper's Figure 1, redrawn; category totals are their sums, derived). Outlined: the nearest case among this page's runs, in our reading, with its section.

11. Choosing

Ask these in order; the first "no" is your answer.

  1. Does the material overflow one context, or is the work wide? If one agent can hold it and the steps depend on each other, stay single (section 2); if the reason for a subagent is a long tool list, use progressive disclosure in one loop instead (section 10). If a bigger window fits it, try that before agents (section 3, Sonnet).
  2. Are the pieces independent, with nothing written in common? Parallel reading splits well; parallel writing of one artefact needs a contract first (section 7) or one writer.
  3. Do you know the split in advance? Then it is a workflow: split in code, fan out, merge in code (section 4). Use a lead only when finding the split is part of the job.
  4. Is the brief exact, and who checks the merged result? Name what does not count, and budget a verifier that does not share the workers' judgement (an answer key, tests, Lean, a person) before you add workers (section 5). Every parallel design here reported things outside the brief in some run, and same-model checks kept them all.
  5. Is the answer worth several times the tokens? On our audit the orchestrator cost about one agent; Anthropic reports about 15 times chat for its research system.
  6. Can you see every agent? Without per-agent traces you cannot tell which worker invented a finding. LLM observability covers how.

For routing a conversation (support desks, intake), choose between a handoff and agents-as-tools by one question: should the specialist own the rest of the conversation, or answer one bounded question? Section 6 shows what each passes along.

Where each pattern is built in (framework mapping)
PatternWhere it is built in
Orchestrator-workersClaude Code and the Claude Agent SDK: the Agent tool with subagent definitions (--agents, agents=); OpenAI Agents SDK: Agent.as_tool; LangGraph: a supervisor written as tool calls (the langgraph-supervisor README now says "We now recommend using the supervisor pattern directly via tools rather than this library for most use cases")
Fan-out workflowPlain asyncio.gather; LangGraph's Send with a reducer on the state (LangChain and LangGraph)
HandoffsOpenAI Agents SDK handoffs=[...]; langgraph-swarm; Google ADK's agent transfer (Typed agent libraries reads these from source)
BlackboardClaude Code agent teams' task list; any database or Git repository with atomic claims
Debate and votingNo framework needed: a loop over calls and a counter
Agents in other processes or organisationsThe A2A protocol: Agent-to-agent and beyond (Topic: protocols)

Depth: mistakes, rehearsal and provenance

Optional. Each block is closed; the core above does not depend on them.

Three mistakes the sections above do not show
Trusting a merge that only concatenates
A lead that pastes worker reports together passes through whatever each worker decided to include. One orchestrator run here reported 43 items for 16 planted bugs, because one worker also flagged unchecked ratios.
Reading the agent's own summary as coverage
The single agent reported a "comprehensive audit of all 48 modules" after reading half of them partially. Check coverage from the trace (which files were read, how much of each), not from the report.
Summing result.usage for cost
In Claude Code, result.usage leaves out subagent calls; result.modelUsage and total_cost_usd include them (Claude Code, taken apart, section 7).
Interview rehearsal: four design questions
When does a multi-agent system beat a single agent?
When the material exceeds what one context holds well and splits into independent pieces (wide reading: research, audits, review). The win is coverage and wall time, bought with several times the tokens. It loses when the task fits one context or the pieces must agree on decisions.
How would you verify a multi-agent system's output?
Measure recall and precision against a labelled set; check across seams (call one part on another's output); re-derive findings blind or with a non-model verifier; inspect per-agent traces for coverage. Do not use an agent's own confidence or summary.
How do agents coordinate without a lead?
Through a shared store with atomic operations: claim a task with a lock or an exclusive create, post results, read others'. Claude Code agent teams use file-locked task claims; Agora uses a Git graph with cross-verification.
Design a research assistant that reads 500 documents.
A fan-out workflow if the documents are known: code splits them, parallel calls extract per document, code merges, a check step verifies each extracted claim blind. Add a lead only if what to read next depends on what was found. Trace every agent; report recall and precision on a labelled sample; budget tokens per worker.
The old page, claim by claim

The old Notion page (last edited 22 Sep 2026) was treated as unverified notes; every claim was checked against its primary source on 6 Oct 2026. Full list: src/coverage.json.

Old claimStatusWhere now
Orchestrator-workers, handoffs, parallel fan-out, debate or judge panels, shared state as the patternsverified as definitions; each measured here1, 3 to 8
Anthropic: 90.2% over single agent, about 15x tokens, token spend explains about 80% of varianceverified (13 Jun 2025); 80% is BrowseComp, internal eval10
Orchestrator-workers is "the dominant production pattern in 2026"no measurement found; dropped as stated, replaced by what the harnesses ship11
Handoffs: no synthesis step, no parallelism, the conversation is the stateverified in SDK source and measured6
Fan-out "often the highest return-on-investment pattern"supported here: same recall at lower cost than the orchestrator4
"2025-2026 work repeatedly finds self-consistency matches debate at equal budget"corrected dates: Smit et al. Nov 2023, Wang et al. Feb 2024, Debate or Vote Aug 20258
Blackboard as "1980s blackboard systems"corrected: Hearsay-II, built 1971 to 1976, described 19805
Claude Code subagents and Anthropic's research workers leave artifacts on diskAnthropic recommends subagent outputs to a filesystem to avoid "the 'game of telephone'"; in this page's recordings Claude Code subagents returned their report as text, not a file5
Agora: 12 days, 13 workers, 1,703 contributions, 3.39 to 1.899 bits per byte, 145 commits across 15 accounts, "165 independent reproductions and zero failures"corrected wording: "165 verifications of 95 targets, each by an account other than the target's author, with no reported failures"5, 10
Cognition: share full traces; conflicting decisions; reliability compounds across agentsprinciples verified (12 Jun 2025); compounding is an inference, not a quote7, 10
Anthropic's costs: delegation prompts are the hard part, emergent behaviour needs tracing, rainbow deploymentsverified10
"Parallelize reads, never writes" as LangChain's framingverified as Chase's "Read actions are inherently more parallelizable than write actions"; "never" is too strong (contract first worked)7, 10
Peer-to-peer swarms "died"outdated: Claude Code agent teams (research preview from 2.1.32, Feb 2026) message each other directly10
OpenAI 10,000-agent Navier-Stokes swarm, 4.9M messages, 300B tokens, $2m to $22.5munconfirmed; dropped10
FLT: 11 days, about 6B output tokens, a DAG of theorem statements; "about 2% of" the swarm's tokensverified (4 Sep 2026); the 2% dropped with the swarm10
Nous Research: 1,393 subagents, 19 hours, 34.4%, about $19,300, regressions tests missedverified; about 65 exception-handling sites added7, 10
Five-question checklistrewritten with this page's evidence11