When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction
Zhiheng Lyu, Chengyu Yin, Lingming Zhang
- Published
- arXiv
- 2611.33893
- Topic
- Coding agents
TL;DR
A controlled comparison of one coding agent against a main agent that hands work to parallel subagents, on tasks that build a whole repository from a spec, at equal time and equal cost.
Why builders care
Subagents multiply your run cost. This shows when they pay off, and that cheaper single-agent changes recover much of the gain.
How to apply it
- 1Before turning on parallel subagents, add one instruction telling a single agent to check its work against a reference first. On hard tasks that recovered most of the subagent gain at a fraction of the cost.
- 2In long runs, restart the agent in a fresh session from time to time instead of resuming one long conversation.
- 3Keep subagents for the cases the paper names: the agent stops checking too early, a long session keeps editing without improving, or the task benefits from modular code.
Key results
- 1
On randomly drawn tasks, parallel subagents raise hidden-test pass rates by only about 1 to 5 percentage points at up to 3.8x the cost of a single agent.
- 2
Self-checking: with GPT-5.6 Sol, one sentence telling a single agent to probe the reference program first recovers most of this gain at a fraction of the cost; from GPT-5.6 Sol to GPT-6.1 Sol, the gain shrinks as single agents check their own work more.
- 3
Modularity: multi-agent runs produce more modular code (more files and shorter functions), closer to the upstream source.
- Products like Codex and Claude Code let an agent delegate work to parallel subagents, multiplying run cost, yet it remains unclear whether and when delegation produces a better program.
- We compare a single agent with a main agent delegating to subagents on repository-construction tasks from NL2Repo and ProgramBench (which also provides an executable reference program).
- We compare scores at equal time and equal cost, run intervention experiments, and analyze fine-grained behavior.
- We observe similar patterns in a smaller replication with Opus 5.5 on Claude Code.
LLM-based coding agents are increasingly used for long-horizon tasks such as building an entire program from a specification. Products like Codex and Claude Code let an agent delegate work to parallel subagents, multiplying run cost, yet it remains unclear whether and when delegation produces a better program. We compare a single agent with a main agent delegating to subagents on repository-construction tasks from NL2Repo and ProgramBench (which also provides an executable reference program). We compare scores at equal time and equal cost, run intervention experiments, and analyze fine-grained behavior. On randomly drawn tasks, parallel subagents raise hidden-test pass rates by only about 1 to 5 percentage points at up to 3.8x the cost of a single agent. Their gain is larger on hard tasks, where we find evidence of three mechanisms. Self-checking: with GPT-5.6 Sol, one sentence telling a single agent to probe the reference program first recovers most of this gain at a fraction of the cost; from GPT-5.6 Sol to GPT-6.1 Sol, the gain shrinks as single agents check their own work more. Fresh context: in extended runs, a single agent that periodically starts a new session with an empty conversation makes faster early progress in every comparison than one that resumes its conversation. Modularity: multi-agent runs produce more modular code (more files and shorter functions), closer to the upstream source. We observe similar patterns in a smaller replication with Opus 5.5 on Claude Code. Overall, subagents help when (i) a single agent stops checking too early, (ii) a long session keeps editing with little improvement, or (iii) modular code helps on the task; otherwise, they mainly add cost.
Everything on this page is written from this abstract. For methods and full results, read the paper PDF.
Ask the paper
Ask anything about “When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction”, or start with one of these: