Single agent vs multi agent: a 3-agent chain scored the same 100% and used 3.2x the tokens
- The test: 3 small coding tasks with hidden checks, solved by Claude Haiku agents in three setups: one call, one agent that can run its own tests (a loop), and a chain of three agents (plan, write, review). Two runs each, 18 runs in all.
- The result: all 18 runs passed all 432 hidden checks. One call used about 58,000 tokens, the loop 61,000 (1.04x) and the chain 185,000 (3.2x). The chain also took about 4 times as long.
- The advice: start with one agent, and add structure only when it fails a test you can measure. My tasks were easy, so this does not prove that chains never help.
A post on X by Hanako, about 2,500 likes on 3 December, says Anthropic published an 8-page blueprint for building agents. It lists 8 patterns, and the post sums up the advice as "start with 1 agent and 1 loop", and add structure only when a single call measurably fails. I did not read the blueprint itself, so I can't say what it contains. But the advice is easy to test: does adding agents to a chain actually fix anything?
Many people now build "multi-agent" systems by default. A planner, a writer, a reviewer. It looks careful. But every extra agent costs tokens and time. So I asked a plain question. On small coding tasks, what does the second and third agent buy you?
Single agent vs multi agent: how did I compare them?
I wrote the tasks and the hidden checks first, and I ran all agents on my own Mac.
- The 3 tasks: each is a short Python function with 6 to 8 written rules, the kind where one rule is easy to miss.
split_moneyshares an amount of cents between people by weight (largest remainder method, ties to the earlier person, bad input raises errors).parse_durationturns "1h30m", "1:02:03" or "500ms" into seconds.wrap_textword-wraps text, splits long words and keeps paragraphs. The hidden checks number 22, 26 and 24. - Setup A, one call: one fresh agent reads the task and writes the code in one go. It is told not to run anything.
- Setup B, one agent with a loop: one fresh agent may write its own tests, run them and fix the code.
- Setup C, a chain of three: a planner agent writes a checklist of rules and edge cases. A writer agent reads the task and the checklist and writes the code. A reviewer agent reads the task and the code, may run Python, and fixes anything it finds.
- The agents: all Claude Haiku, run as fresh Claude Code subagents with the model set on purpose. I picked the small model because it is the one most likely to miss a rule. Two runs per task and setup: 18 runs, 30 agents.
- The scoring: a grader the agents never saw. For each run it counts how many hidden checks pass. I also recorded the tokens and the time that Claude Code reported for each agent, and added up the three stages of the chain.
Did the multi agent chain give a better result?
No. Every run, in every setup, passed every hidden check. That is 432 of 432. The single call was already right the first time, on all three tasks and both runs.
| Setup | Hidden checks passed | Tokens per task | Compared with one call | Agent time per task |
|---|---|---|---|---|
| A: one call | 144 of 144 | 58,435 | 1.00x | about 14 s |
| B: one agent with a loop | 144 of 144 | 61,059 | 1.04x | about 20 s |
| C: chain of three agents | 144 of 144 | 184,713 | 3.16x | about 61 s |
The time is the sum of the agents' own reported durations. It leaves out my own hand-off between the chain's stages.
| Task | One call | Loop | Chain |
|---|---|---|---|
| split_money | 57,727 | 59,882 | 183,521 |
| parse_duration | 59,273 | 63,859 | 189,019 |
| wrap_text | 58,305 | 59,437 | 181,601 |
Tokens per task, average of 2 runs. The pattern is the same on all three.
Why did the chain cost 3.2 times as much?
Almost all of it looks like a fixed cost per agent. A one-shot agent that wrote about 40 lines of code still reported 57,000 to 60,000 tokens. The code itself is a tiny part of that. I did not measure the start-up cost on its own, but the numbers point one way: each new agent starts with a large block of context, and the chain started three agents. Three agents, three blocks. The chain's total of 181,000 to 189,000 is close to three times one agent's total.
The loop was cheap for the same reason. It is still one agent, so it paid the block once. It ran 4 to 8 tool calls, wrote its own tests and found nothing to fix, and it cost only 4.5% more than the single call.
This matters if you build multi-agent systems. The cost is not in the words the agents write to each other. It is in starting each agent. If your framework shares context between agents or caches it, your numbers may be lower. Mine are for fresh Claude Code subagents. For a closer look at where tokens go in one agent, see my token test of small edits.
What does this test not show?
- The tasks were easy for the model. A model that gets every check right in one call leaves nothing for a second agent to fix. On a harder task, the chain or the loop might win. The post's advice says exactly that: add structure when a single call measurably fails. Mine did not.
- I can't tell what the reviewer changed. I only graded the final code, not the writer's code before review. So I don't know if any reviewer fixed a bug.
- One small model. Haiku only. A bigger model would likely do at least as well in one call.
- Two runs per task and setup. The result is 100% everywhere, so there is no spread to measure, but it is still a small sample.
- Only the simplest patterns. I tested a single call, a loop and a simple chain. I did not test patterns that run agents in parallel or let one agent hand out work to others.
- I fixed my own grader once. One check used decimal weights and failed all six single calls because of floating-point rounding. I changed it to whole numbers after seeing those first six results, then graded all 18 runs again with the same rules. A bug in my reference solution for blank input was also fixed before grading.
- An AI helped build the test. I wrote the tasks, the grader and the reference solutions with an AI assistant's help, and checked each number by running the grader myself.
When should you use more than one agent?
- Start with one call. If it passes your checks, stop. You are done, and it cost a third as much.
- Add a loop second. Let the same agent run tests. It cost 4.5% more here, and it is the cheapest safety net.
- Add a second agent only for a failure you can name. For example, the work does not fit in one context, or a fresh pair of eyes keeps catching a bug that the writer repeats. Write the failing check first, then see if the chain fixes it.
- Count tokens per agent, not per run. A chain of three is not "a bit more careful". On my numbers it is three times the bill.
- Measure on your own tasks. A hidden test set of 20 checks and two runs is enough to see if the extra agents buy anything.
If you want to test a prompt change the same way, see my four-model speed test and the code review test with planted bugs.
FAQ
Single agent vs multi agent: which is better?
In this test they were equal on quality. One agent and a chain of three agents both passed all 144 hidden checks per setup. The chain used 3.2 times the tokens and about 4 times the time. On easy, well-defined tasks, one agent is the better value.
When should you use multiple agents?
Use them when one agent fails a check you can measure, for example when the job does not fit in one context window, or when a separate reviewer catches bugs the writer keeps making. Anthropic's own guide on agents advises the same: start simple and add complexity only when it helps.
What are AI agent patterns?
They are common ways to arrange one or more AI calls: a single call, a loop where the agent tests and fixes its own work, a chain where one agent's output feeds the next, and others that run agents in parallel. I tested the first three on small coding tasks.
Does a self-testing loop cost much more than a single call?
Not here. One agent that wrote and ran its own tests used about 61,000 tokens against 58,000 for a single call, which is 4.5% more.
How many tokens does one Claude Code agent use?
About 58,000 tokens for a task as small as a 40-line function, as reported by Claude Code for a fresh subagent. Most of that looks like fixed start-up context, which is why each extra agent in a chain adds a similar amount.
Sources
- Hanako on X, 3 December 2026: post about an 8-page Anthropic blueprint for building agents (about 2,500 likes).
- Anthropic: Building effective agents, a public guide that recommends starting with the simplest solution.
- Claude Code docs: Subagents (each runs in its own context window, and you can set the model per subagent).
- Wikipedia: Largest remainder method, the rule used in the split_money task.