Roles in an agent chain
A multi-agent setup gives separate agents separate jobs. In software development four roles come up again and again:
- Planner: clarifies the request, writes the spec and the plan, splits the work into tasks.
- Executor: writes the code and the tests for one task.
- Reviewer: reads the change against the spec, the team's rules and the tests, and reports findings.
- Researcher: searches the codebase, the docs or the web and returns a short digest, changing nothing.
Something has to decide who runs next, with what input, and where the chain stops for a person. That is orchestration. It can be another model, a script, or the pipeline your team already has: branches, pull requests, labels and CI.
The open question is not whether these roles exist. Every serious workflow has them. It is whether they should be separate agents running at once, or one agent, or a sequence of agents passing work along.
Two posts that disagree
In June 2025 Anthropic described how it built its multi-agent research system: a lead agent on Claude Opus 4 that plans a research question and spreads it across Claude Sonnet 4 subagents searching in parallel. On Anthropic's internal research evaluation, that system outperformed single-agent Claude Opus 4 by 90.2%. The cost was tokens: the post reports agents using about four times the tokens of a chat, and multi-agent systems about fifteen times. It also says plainly that most coding tasks involve fewer truly parallelizable tasks than research.
A day earlier, Walden Yan of Cognition published "Don't Build Multi-Agents". Its two principles: share context, meaning full agent traces rather than single messages; and actions carry implicit decisions. Its example is a Flappy Bird clone split between two subagents, one drawing the background and one the bird. One drifted toward a different game's look, the other produced a bird that matched neither, and the final step was left reconciling two incompatible halves. The recommendation is a single-threaded agent with continuous context by default.
Where they agree
Read side by side, the two posts draw the same line:
- Parallel readers are fine. Searching, reading and summarizing split cleanly. Each subagent's output is information, and the lead combines information easily.
- Parallel writers of one change are not. Code is a web of small decisions: a name, an error-handling style, where a check lives. Two agents writing parts of the same change each make those decisions alone, and the parts do not fit.
- One executor with the full context should write a change. Others can plan before it, research for it and review after it.
Cost belongs in the same picture. Claude Code's own cost guide says agent teams use approximately seven times more tokens than standard sessions when teammates run in plan mode, because each teammate keeps its own context window. Parallelism has to buy something worth that.
Four patterns that work
| Pattern | How it runs | Why it works |
|---|---|---|
| Sequential chain with checkpoints | Planner, then a person approves; executor, then reviewer, back and forth; then a person merges. | One agent writes at a time. Each hand-off is a document a person can read. |
| Independent reviewer | The agent that reviews is not the one that wrote the change, with a fresh context and, where it helps, a different model. | It does not inherit the author's assumptions; the author does not approve its own work. |
| Research subagents | The main agent sends subagents to read many files or pages and return one page of findings. | Long outputs stay out of the main context. See context engineering. |
| Parallel independent tasks | Separate features, each in its own branch and working copy, each reviewed as usual. | The parallelism is between changes, not inside one, so nothing has to be reconciled. |
The sequential chain is the one most teams can adopt with what they already have. Its state can be the pull request itself: a label says which stage it is in, review comments carry the reviewer's findings back to the executor, and everyone sees progress in the usual interface. Claude Code's subagents cover the research pattern inside one session.
Rules that keep a chain from falling apart
- Hand off through documents, not summariesA free-form "here is what I did" loses decisions. Pass the spec, the plan, the pull request and its review threads: things the next agent and a person can both read.
- Limit the round tripsAn executor and a reviewer can bounce a change forever. After a small fixed number of failed attempts, stop and ask a person.
- Put checkpoints by blast radiusA change inside one well-tested module can run the chain to a merge request on its own. A change to a public API, stored data or another team's system stops for a person earlier.
- Set a token budgetA looping chain spends quietly. Cap spend per team or per task, and use cheaper models for simple steps.
- Log every stepWhich model ran, with what input, which tools it called, what it returned. Without that you cannot tell a bad prompt from a bad hand-off.
Parallel work that does not collide
The parallelism that pays off in development is between features, not inside one. Three features in flight at once, each with its own agent, branch and review, do not need to agree on anything until they merge. What they need is isolation: their own working copy, their own running app, and data they cannot spoil for each other.
The practical limit is not the machine, it is the person. Every parallel feature eventually asks a question, needs a plan approved or waits for a merge decision. Take on only as many as you can answer promptly; an agent waiting on you is not working.
When one agent is enough
For most tasks, it is. A single agent with a good brief, a spec and checks in the repository will finish a well-scoped change faster and cheaper than a chain. A chain earns its cost when:
- the task is large and naturally staged, so planning, building and reviewing are distinct pieces of work;
- you want an independent review before a person reads the change;
- the team already works steadily with single agents and is now limited by review throughput rather than by writing code.
A team just starting with agents gets more complexity than benefit from a chain. Get one agent working inside a harness first; see agentic development.
Questions
What does orchestration mean in practice?
The logic that decides which agent runs next, with what input, and when to stop for a person. It is often built from things a team already has: branches, pull requests, labels, CI jobs and command-line agents started by a script.
Are several agents always better than one?
No. They cost several times the tokens, and splitting one change between writers breaks the shared context it needs. They pay off for parallel reading and research, for independent review, and for separate features run side by side.
Do we need a multi-agent framework?
Often not. A git host, CI and a command-line agent are enough for a sequential chain with checkpoints. Reach for a framework when you have a pattern the pipeline cannot express.
How do we keep the cost under control?
Limit round trips between executor and reviewer, set a budget per team or task, start each step with a fresh context rather than one long conversation, and use cheaper models for simple steps such as writing a description.
Take your team there, step by step
A 13-week pilot on one team: a baseline, a harness built around your process, real backlog tasks through the whole cycle, and the numbers before and after.