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.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
Agent.as_tool; Claude Code subagents seen from the lead. Section 6.transfer_to_<agent>), langgraph-swarm. Section 6.asyncio.gather, LangGraph Send, the parent page's "parallelisation" workflow. Section 4.| Pattern | Who decides | Who sees what | Measured here | Section |
|---|
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).
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.
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 agent | Lead + 2 subagents | Ratio | |
|---|---|---|---|
| Cost equivalent | |||
| Wall time | |||
| Tokens processed (input + cache writes + cache reads) | |||
| Hidden checks passed | same |
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.
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
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.
| Design | Runs | Planted found (of 16) | Other reports | Largest context | Tokens processed | Cost | Wall 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.
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.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.
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.
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.
A blackboard is a shared store that every agent reads and writes; nobody assigns work, each agent takes what it can do next.
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.
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
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 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)
transfer_to_billing and transfer_to_tech. It calls both.lookup_invoice.refund_charge never made; nobody looks at the crash.transfer_to_tech (the extra tool's definition is most of the rise to tokens), with the whole history, including the ignored transfer to tech. It calls lookup_invoice, not the transfer.refund_charge nor transfer_to_tech is called; the crash goes nowhere.ask_billing and ask_tech. It calls both, writing each specialist its own short input.lookup_invoice.check_status: the second problem is looked at.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.
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.
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.
| Design | Runs | Requests per run | Prompt tokens per run | Invoice looked up | Login status checked | Refund actually issued | Reply promises a refund |
|---|
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:
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.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.| Spec | Design | Halves fit (of 3) | Mean cost | Mean 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.
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
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
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.
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.
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.
| Method | Correct | Calls per puzzle | Tokens per puzzle | Output tokens per puzzle | Cost per puzzle |
|---|
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.
Green: the whole assignment is right; red: at least one person wrong. Click a row to open the puzzle.
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
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).
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
Our runs are small and on one model. Four results from larger studies carry the argument:
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.
| Source | What was measured | What it supports | Read 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 coverage | Vendor-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 acceptable | Writing one artefact; long tasks with dependent steps | An 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 part | The read/write split this page tests | Synthesis, 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 strong | Decomposability decides the sign | Independent, 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 frameworks | Where multi-agent systems break | Independent; 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 Prove2Me | Blackboard plus a perfect verifier (Lean) at very large scale | A 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 verifier | Vendor 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 planner | Independent 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 harness | Docs DOCUMENTED; not run here (needs an interactive session) |
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.
Ask these in order; the first "no" is your answer.
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.
| Pattern | Where it is built in |
|---|---|
| Orchestrator-workers | Claude 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 workflow | Plain asyncio.gather; LangGraph's Send with a reducer on the state (LangChain and LangGraph) |
| Handoffs | OpenAI Agents SDK handoffs=[...]; langgraph-swarm; Google ADK's agent transfer (Typed agent libraries reads these from source) |
| Blackboard | Claude Code agent teams' task list; any database or Git repository with atomic claims |
| Debate and voting | No framework needed: a loop over calls and a counter |
| Agents in other processes or organisations | The A2A protocol: Agent-to-agent and beyond (Topic: protocols) |
Optional. Each block is closed; the core above does not depend on them.
result.usage leaves out subagent calls; result.modelUsage and total_cost_usd include them (Claude Code, taken apart, section 7).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 claim | Status | Where now |
|---|---|---|
| Orchestrator-workers, handoffs, parallel fan-out, debate or judge panels, shared state as the patterns | verified as definitions; each measured here | 1, 3 to 8 |
| Anthropic: 90.2% over single agent, about 15x tokens, token spend explains about 80% of variance | verified (13 Jun 2025); 80% is BrowseComp, internal eval | 10 |
| Orchestrator-workers is "the dominant production pattern in 2026" | no measurement found; dropped as stated, replaced by what the harnesses ship | 11 |
| Handoffs: no synthesis step, no parallelism, the conversation is the state | verified in SDK source and measured | 6 |
| Fan-out "often the highest return-on-investment pattern" | supported here: same recall at lower cost than the orchestrator | 4 |
| "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 2025 | 8 |
| Blackboard as "1980s blackboard systems" | corrected: Hearsay-II, built 1971 to 1976, described 1980 | 5 |
| Claude Code subagents and Anthropic's research workers leave artifacts on disk | Anthropic 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 file | 5 |
| 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 agents | principles verified (12 Jun 2025); compounding is an inference, not a quote | 7, 10 |
| Anthropic's costs: delegation prompts are the hard part, emergent behaviour needs tracing, rainbow deployments | verified | 10 |
| "Parallelize reads, never writes" as LangChain's framing | verified 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 directly | 10 |
| OpenAI 10,000-agent Navier-Stokes swarm, 4.9M messages, 300B tokens, $2m to $22.5m | unconfirmed; dropped | 10 |
| FLT: 11 days, about 6B output tokens, a DAG of theorem statements; "about 2% of" the swarm's tokens | verified (4 Sep 2026); the 2% dropped with the swarm | 10 |
| Nous Research: 1,393 subagents, 19 hours, 34.4%, about $19,300, regressions tests missed | verified; about 65 exception-handling sites added | 7, 10 |
| Five-question checklist | rewritten with this page's evidence | 11 |
All recorded runs of the audit from Reading sections 3 to 5: generated modules, planted docstring violations, Claude Haiku 4.5 in Claude Code 2.1.291 (one run on Sonnet 5.5) MEASURED. Pick a run.
Each run shows its numbers, its model calls lane by lane, and what it left behind: the six briefs a lead wrote, who claimed what on a board, a check round's verdicts, and the reports outside the brief. The matrix under both columns says which planted bug every run found.
claude -p <task> --output-format stream-json --verbose --no-session-persistence --setting-sources project --strict-mcp-config --model haiku in a fresh copy of the corpus; the answer key was never in the agent's folder. Claude Code 2.1.291 on 6 October 2026.--tools "Read,Grep,Glob". Lead + 6 auditors: --tools "Read,Grep,Glob,Agent", an auditor subagent defined with --agents (tools Read, Grep, Glob; model haiku) and --forward-subagent-text so the subagents' messages are in the recording; the lead was told to split into six groups of eight and start all six in one message. Fan-out: six --tools "" calls started together by a Python script, each with eight modules pasted in. Blackboard: six agents with --tools "Read,Bash" and --allowedTools "Bash(python3 board.py:*)"; board.py claims a module with an exclusive file create (so two agents can never claim the same one) and appends findings to a shared file. The check round: six more agents claim findings to check, never their own.src/code/gen_audit.py regenerates it exactly. Everything the models wrote is kept.One row per model loop; one bar per model call at the time its reply arrived, height = context sent (dashed line: 200,000 tokens; red: above it). Hover a bar for its numbers. The time axis is this run's own.
A tick means the run's final answer named that function. Columns are runs, in the order of the buttons above; the selected run is outlined.
Links checked on 6 October 2026. Times are estimates for a careful read.
Every run of the breadth task: lanes, briefs, board claims, check verdicts, and which planted bug each run found. About 4 min to read, longer to explore.
Thirty logic puzzles: every sample, debate round and judge verdict, the vote-of-k curve and how solvers changed their minds, in a closed block under the debate chart. About 5 min to read.
The root, a map: workflows against agents, the schools of frameworks, state, structured output, gateways, observability, hosted runtimes. Reading section 5 is this page in summary; tab Orchestration lab, part "One agent or several", is the recording section 2 starts from; part "Results" compares the five workflow patterns on one task. Reading 24 min, plus 2 closed; labs 18 to 21 min each.
Send-based fan-out and reducers that merge parallel branches (section 3), handoffs out of a subgraph with Command.PARENT (section 8), supervisor and swarm packages, checkpointers for long multi-agent runs. About 32 min.
Subagents from your own Python or TypeScript (section 6): how to build the orchestrator of section 3 in code, and run s5, a subagent that hit its turn cap without a report. About 27 min.
The OpenAI Agents SDK's handoffs, guardrails and sessions read from source (section 4); tab Mechanisms, recorded steps through a handoff and a parallel guardrail request by request; Google ADK's agent transfer. About 25 min.
Per-agent traces and spans (invoke_agent, execute_tool): what you need to debug which worker invented a finding. About 34 min.
Budgets and rate limits when many agents share one key (sections 5 and 6). About 37 min.
Memory shared across agents and sessions (Mem0, Zep's Graphiti, Letta), scoped by user, agent and run; the old Agent memory layers page now lives there. One section of the page below.
Section 7, subagents: the Agent tool, isolated context, background runs, and why cost is visible only in modelUsage. About 43 min.
Section 6, subagents for isolation, measured on a read-30-files question; sections 1 and 2 on start-up context and caching. About 40 min.
Rollouts in parallel for RL, and why the scaffold changes the score. About 36 min.
A2A: agents in other processes or organisations, on the wire. This page does not cover it. About 39 min.
Judge panels, position and self-preference bias: the evaluation side of section 8. About 29 min.
A blackboard on Git with cross-verification; adversarial stress tests of long-horizon multi-agent systems. About 27 and 26 min.
The single loop every pattern here composes. About 21 min.
Anthropic, 13 Jun 2025. The case for: lead and subagents on research, briefs, token economics, rainbow deployments. 25 min.
Cognition (Walden Yan), 12 Jun 2025. The case against: shared context and conflicting implicit decisions. 15 min.
Harrison Chase, 16 Jun 2025. Reads parallelise, writes do not. 15 min.
Philipp Schmid, 20 Jun 2025. A compact decision guide. 10 min.
Anthropic, 19 Dec 2024. Workflows against agents; orchestrator-workers and evaluator-optimizer as workflows. 25 min.
Kim et al., 260 configurations; when coordination helps or hurts. 60 min.
Cemri et al.; 14 failure modes in 3 categories. 45 min.
Du et al., May 2023: three agents, two rounds; the protocol section 8 reproduces. 40 min.
Aug 2025: majority voting accounts for most of the gains attributed to debate. 40 min.
Smit et al. (Nov 2023) and Wang et al. (Feb 2024): debate against strong single-agent baselines. 40 min each.
Wang et al., Mar 2022: sample several reasoning paths, take the majority. 30 min.
Erman, Hayes-Roth, Lesser and Reddy, Computing Surveys, June 1980: the first blackboard system. 60 min.
Agent teams: shared task list with file-locked claims, mailboxes, when teams beat subagents. 20 min.
Handoffs as transfer tools, input filters, agents as tools, code-driven orchestration. 15 min.
Two 2026 scale runs: a shared proof graph with a perfect verifier, and massive parallel writing with tests that missed regressions. 20 min each.