How agent orchestration works (and why it's not about having more agents)
An agent that does everything alone ends up full, reviewing its own work. Orchestration is deciding what each agent sees and what it hands back.
An AI agent doesn't get things wrong because it's dumb. It gets things wrong because it's full.
An agent is a language model (what answers you in an AI chat) that you give tools to: read files, search the codebase, run commands.
When the task grows, the obvious move is to add more agents, and that's the trap. Orchestration isn't multiplying brains: it's deciding what each one sees and what it hands back.
The agent's workbench
Picture a workbench in a repair shop. Everything you pull out stays on top: the work order, the manual, the parts that didn't fit. Once it's full, the work order is buried.
For an agent, that workbench is the context window: everything it can keep in view at once, from your instructions to every file it opens and every bit of terminal output. It has a fixed size, measured in tokens, which are chunks of words.
That's where the workbench analogy ends: you can sweep junk aside, and the agent can't choose what it forgets.
The mistakeOne agent for everything
Almost everyone hands the whole task to a single agent: you paste the issue, the bug report, type "fix this," and wait. It's not a dumb call: the whole story stays in one place. For a short task it's exactly right; the problem is the long one.
In the scene: a single agent fixes that bug: it reads the issue with its acceptance criteria (what the fix has to meet), makes the fix, and reviews its own work. Watch the bar under it and the first card. Press "Start" and move on with "Next".
That ending has been measured: the team at Chroma evaluated 18 models, and in every one of its experiments performance dropped as the input grew (Context Rot, Chroma). And reviewing your own fix with the same assumptions isn't a review: it's a reread.
The turning pointA clean workbench for every task
In a repair shop, the foreman doesn't do repairs. They hand out work orders: each mechanic gets one at a clean workbench and hands back a short note. The foreman never sees the mess at anyone's station.
An orchestrator is that foreman: an agent that splits the task across subagents that start with a clean window: they get a message with their task plus the project's standing instructions (Claude Code subagents).
In the scene: the same bug, now with an orchestrator and three subagents; the last one gets the diff, the lines that changed. Watch what each one gets, what it hands back before it disappears, and the two meters at the end. Press "Start".
Orchestration costs more, not less. Anthropic reported that an agent burns about 4x the tokens of a chat, and a multi-agent system about 15x (How we built our multi-agent research system).
The solutionThree ways to split the work
In the scene: each way gets a shop-floor name and its own tab: chain, fan-out, and reviewer. In each one, press "Start" and watch what passes between agents. In the fan-out, flip the switch afterward: two agents are about to edit the same file.
How to pick between them:
- Chain when every step produces something you can verify.
- Fan-out for reading from independent sources, not for writing.
- Reviewer when your criteria can be checked. If the criterion is "make it good," it approves whatever you put in front of it.
Putting it togetherThe work order
A subagent only knows what you wrote in the delegation message, this shop's work order. Here's the one for a bug investigator (the bug, the command, and the project are examples built for this post):
## Task
Find the cause of bug #42. Don't fix it.
## What you need to know
- Symptom: the cart total shows 0 when an expired coupon is applied.
- How to reproduce: npm test -- cart.coupon
## You're done when
- You can point to the file and line.
- You can explain why that line produces the symptom.
## Return (10 lines max)
- Cause: file:line
- Why it produces the symptom
- Ruled-out hypotheses, one line eachEach section answers something the subagent can't guess: what to do and what not to, what it has to know about the bug (to it, "#42" means nothing), when it's done, and the shape of what it hands back, which is the only thing the orchestrator will read.
Here's the answer to that work order as-is, run through claude -p: a fresh agent that starts the way a subagent does, with no prior conversation. The project is four JavaScript files and a package.json, and the agent could read, edit, and run only npm test:
- **Cause:** `coupons.js:6`, `return expired ? 1 : coupon.percent / 100;`. An expired coupon returns a discount fraction of `1` (100% off) instead of `0`.
- **Why it produces the symptom:** `cart.js:6` computes `subtotal - subtotal * discount`. With `discount = 1` that is `100 - 100 = 0`, and `Math.max(0, …)` passes the 0 through. The total shows 0.
- **Ruled out:**
- Date check (`coupons.js:4`): `new Date("2026-10-31") < today` is true, so the coupon is correctly detected as expired.
- Clamp in `cart.js:6`: `Math.max(0, …)` only stops negative totals. It is not the source of the 0.
- Null coupon path (`coupons.js:3`): returns 0 as intended, and its test passes.
- `shipping.js`: unrelated to the cart total.
- Test expectation (`cart.test.js:13`): it matches the code comment ("an expired coupon takes nothing off"), so the test is correct and the code is wrong.
- Reproduced with `npm test -- cart.coupon`: 2 pass, 1 fails with `0 !== 100`. I did not change any files.The one-line work order
The work order you write in a hurry is this one: "Find the cause of bug #42. Don't fix it." Nothing else. Run with the same agent, the same project, and the same permissions, the answer changes its tone in the first paragraph: "I couldn't confirm that this is bug #42 itself, and I couldn't run the tests." Nobody gave it the command, so it improvised node --test, and its permission only covered npm test.
It lands on the same line, coupons.js:6, but now with a section the full work order never produced: "Not verified." And in it, a doubt: "I could not check issue #42. The repo has no mention of it." Its advice was to go check the issue text.
That doubt doesn't stay with the subagent: it lands on the orchestrator, which now has to settle it before moving on.
In a four-file project it got it right anyway; what got lost was the certainty. When a handoff comes back like that, the first thing to check is the message, not the model: this one was missing the two middle sections.
The rule
Orchestration isn't adding agents: it's deciding what each one sees and what it hands back.
What I wish I'd known sooner: an agent reviewing its own work with the same context isn't reviewing, it's remembering.