Sub topic 15
When a Single Agent Is the Better Choice
This chapter assumes you know how a coding agent loop works, what a context window is, and how subagents and the orchestrator-worker pattern fit together. Delegation has costs, and many tasks are better handled by one agent.
What delegation costs
Every subagent adds overhead that a single agent does not pay:
- Tokens. Each subagent loads its own brief, reads files again, and builds its own context. Several subagents reading the same files multiply that cost.
- Latency for small tasks. Starting a subagent, waiting for it, and reading its summary can take longer than doing a ten-line edit yourself.
- Lost context. A subagent sees only its brief. Anything you forgot to write down is invisible to it.
- Summary loss. The parent receives a summary, not the full work. Details can be dropped or misreported.
- Integration work. Someone must merge results, resolve conflicts, and verify the whole.
Delegation pays off when these costs are smaller than the benefit: a clean parent context, real parallelism, or restricted tools.
Signs that one agent is enough
Prefer a single agent when any of these hold:
- The task is small. A change that touches one or two files rarely needs a team.
- The steps are tightly coupled. If step 2 needs the exact details of step 1, such as a refactor that changes a function signature and every caller, the work is sequential. Splitting it forces you to pass large amounts of detail through briefs.
- The units share files. Two subagents editing the same module will conflict, even with separate worktrees, because you must merge their changes later.
- The design is still unclear. If you cannot say what each unit should produce, you cannot write a checkable brief. Explore first, then decide.
- Review effort exceeds the work. If checking a subagent's output takes as long as writing it, you gained nothing.
A worked comparison
Suppose you must rename a configuration option across a codebase and update the docs.
The rename touches many files, and each edit depends on the same decision. One agent can search for all uses, apply the change, and run the tests in one context. Splitting by directory would give each subagent the same instructions and risk inconsistent naming.
Now suppose the task is to update the docs, add tests for a new function, and audit dependencies for known issues. These three units use different files and need no shared decisions. Subagents fit here.
A hybrid is common. The single agent does the coupled core change, then delegates independent follow-up work such as docs and tests.
Quick checklist
| Question | If the answer is no |
|---|---|
| Can each unit be described in a brief with a checkable finish condition? | Use one agent |
| Do the units avoid editing the same files? | Use one agent, or run them in sequence |
| Is the task big enough to justify the overhead? | Use one agent |
| Can you afford to verify each result? | Use one agent |
Exercise
You need to change a function's return type, then update all 30 callers, then fix the type errors that appear. A teammate suggests one subagent per step. Is that a good idea? Explain.
Show answer
No. Each step depends on the output of the previous one, so the steps cannot run in parallel. The callers and error fixes need the exact details of the new return type, which would have to pass through briefs and summaries. One agent keeps all of that in one context and avoids the delegation overhead.
Exercise
Name two conditions under which delegating part of a task is still worthwhile even though the main change is coupled.
Show answer
Any two of: the remaining work is independent and uses different files (such as docs or new tests); verbose output like long test logs or large searches would clutter the main context; a unit needs more restricted tools or permissions than the main agent has.