Topic 4 of 5 · 4 min read
Stronger single-agent designs before splitting
Goal: Propose a single-agent or workflow design for a goal a team planned to give to several agents, and state what it gives up.
Before you split a job across agents, try a stronger single agent: better context, compaction, a fixed workflow, or one read-only subagent for searching. These cover most needs at a fraction of the coordination cost.
Check yourself · 1 of 3
What is the main benefit of using a read-only subagent for a large search?
Why it matters
People reach for several agents when one agent starts to struggle: it forgets earlier instructions, runs out of context or takes too long. The cause is often the single agent's setup, not the lack of teammates. Fixing the setup keeps all decisions in one place, which is the main thing that multi-agent designs lose.
Options, in the order to try them
- Better context. Put the goal, the constraints and the key files at the start. Remove irrelevant material. A clear brief fixes many "the agent drifted" problems.
- Compaction. When the window fills, summarise earlier turns into a short note and continue. Claude Code does this automatically, and you can keep a notes file for decisions that must survive.
- A fixed workflow. Write the steps in code: gather, draft, check, revise. Each step is a model call with its own focused prompt. This gives you control and repeatable behaviour.
- One read-only search subagent. Give a helper the noisy job (search the codebase, read 30 files) and have it return a short answer. It cannot edit anything, so it creates no conflicting decisions. Claude Code subagents run with their own context window for exactly this.
- Tools and checks. A test runner, a linter and a type checker let the agent catch its own errors without another agent.
Before and after
Original plan: "A planner, three coder agents and a tester agent migrate our 200-file codebase from one logging library to another."
Alternative plan:
1. One agent writes the migration rule and tests it on 5 sample files.
2. A script applies the rule to the remaining files in batches of 20.
3. One read-only search subagent lists files the rule skipped.
4. The agent fixes those by hand and runs the full test suite.
One mind owns the rule, the script gives the speed, and the subagent only reads.
What you give up
State the trade-off in the proposal. A single agent is slower on very wide tasks, cannot explore many branches at once, and is bounded by one context window. A workflow is less flexible when the task changes shape. If those costs are acceptable, keep it simple.
What goes wrong
- Skipping the diagnosis. If the agent fails because the brief is vague, more agents each get a vague brief.
- Compaction that loses decisions. Check that the summary keeps constraints and choices, not just progress.
- A "read-only" helper that can write. Remove its edit tools, or it becomes another source of conflicts.
Examples
Logging migration
Instead of five agents, one agent writes and tests the rewrite rule, a script applies it in batches and a read-only subagent lists skipped files. It gives up some wall-clock speed and in return keeps one consistent rule across all 200 files.
Long refactor that forgets its rules
A single agent starts ignoring the naming rules after two hours. Fix: write the rules and the decisions so far into NOTES.md, have the agent re-read it after each compaction. No second agent is needed.
Key points
- Diagnose why one agent struggles before adding more: the cause is often a vague brief or an overfull window.
- Compaction and a notes file let one agent keep its decisions across a long job.
- A fixed workflow gives repeatable control when the steps are known.
- A read-only search subagent absorbs noisy reading without creating conflicting edits.
- A good proposal states what the simpler design gives up, such as speed on very wide tasks.
Common mistakes
- Adding agents to fix a problem that comes from a vague brief.
- Compacting without checking that constraints and decisions survive.
- Giving a search helper edit tools, so it can conflict with the main agent.
- Proposing the simpler design without saying what it gives up.
Check yourself · 2 of 3
A single agent starts ignoring its naming rules late in a long refactor. Which change is the first thing to try?
Check yourself · 3 of 3
A team replaces five agents with one agent plus a script. What should their proposal also say?
Practice items, not counted towards your mastery.
Start here
- Don't build multi-agents (Cognition) (opens in a new tab)ArticleFree
Two principles, share full context and remember that actions carry implicit decisions, with a failed parallel build as the example.
- When to use multi-agent systems (and when not to) (Claude) (opens in a new tab)ArticleFree
A vendor checklist for when a team of agents earns its cost and when one agent is enough.
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Workflows versus agents, and the advice to find the simplest solution first and add complexity only when it pays.
More for this topic
- Create custom subagents (Claude Code docs) (opens in a new tab)DocsFree
How a read-only subagent with its own context window is defined and used, the lightest form of delegation.