Subagents research, the main session edits

The first time I tried subagents, they felt like magic. Instead of one agent searching the whole repository, five agents search five corners at once, each returning only a summary. The main session's context stays clean and the work finishes sooner.
But the magic lasts only while they read. Once subagents start editing, things change.
What breaks
Two subagents change a shared file at the same time. Each read it before the other's change, so the second wipes out the first. One runs the whole test suite while another changes the code halfway through, so the result describes no version of the code at all. One commits, with a message that only explains its own part.
The real problem is that none of them has the whole picture. Each sees only its own piece.
The rule
Our rule is one line now: a subagent researches; it never edits, tests or commits. That's the main session's job, because the main session is the only place that knows what the whole change is.
In practice, when I send a subagent I write explicitly that it may not edit or run whole-repository checks. I ask it to use the code graph first and return a short answer with file paths and line numbers, not copies of whole files.
When I send one
- Broad searches: "find every place this contract is implemented." I need the result, not the route to it.
- Independent parallel work: reviewing three modules from three angles, say.
- An unbiased second opinion: for a genuinely independent review I give it the code, not my conclusion. Otherwise it confirms my guess.
And when I don't: when the job is three or four simple tool calls and I already know where to look. Every subagent has a fixed cost: it has to learn from zero what you want, and you only see its summary. A summary always drops something.
A cheaper model for research
Research subagents in SimaCMS run on a cheaper model. Searching and summarising don't need the heavy model; deciding and changing do. Research gets cheaper and the quality of the changes doesn't drop.
Skills for repeated work
Next to subagents, work that repeats gets its own Skill: packaged instructions that load only when needed. Building an admin screen that looks like the rest of the panel (search, filters, stats, bulk actions, a mobile layout), or building a complete demo for a new business. Instead of explaining every time, the agent calls the Skill and follows the usual pattern.
In short: parallelism is great for reading and dangerous for writing. One hand holds the pen.
Subagents search far more cheaply with a code graph, and their repeated work shrinks with path-scoped rules and skills. Subagent settings are in the Claude Code documentation.
Comments
Sign in to leave a comment.
Sign inLoading…



