When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction
Lyu et al. in Agents
When do parallel subagents earn their cost?
When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction
Codex subagents add little for much higher cost
GPT-5.6 Sol; 30 random ProgramBench tasks, natural-stop means. List-price cost; Single ties or leads at equal cost. RQ1 includes NL2Repo.
A time lead can disappear at equal cost

GPT-5.6 Sol, random tasks. Top: score/time; bottom: list-price cost. Multi leads early on NL2Repo's module-level tests, not ProgramBench's end-to-end tests; Single matches or leads both Multi setups at equal cost.
Parallel gains concentrate on hard tasks
For 20 easy/medium random ProgramBench tasks, median gains were +1.7, +0.6, and +1.0 points across GPT-5.6, GPT-6, and GPT-6.1 Sol.
On ten hard tasks, medians rose to +2.0, +5.6, and +8.4 points in the same generations.
These are per-task medians, not overall mean gains.
A single agent can stop before it checks enough
- 1
Hidden tests, queryable reference
ProgramBench hides grading tests but lets agents compare with a reference executable on chosen inputs.
- 2
Single stops on green checks
All 17 hand-read GPT-5.6 Sol Single runs across seven hard tasks stopped after a passing self-check, though hidden tests still failed.
- 3
Probe first, then implement
Self-checking is tracked by stop time and differential tests; Single-Probe adds one sentence to test the reference interface before coding.
A probe-first prompt nearly closes the atlas gap
Mean gain vs Single on 16 hard tasks; Probe lacks GPT-5.6 score. Atlas: Single/Probe/Multi 47/75/77%, mean list-price costs $2.2/$3.8/$31.0.
Long runs reveal a task-dependent cost crossover

GPT-5.6 Sol; three hard tasks, one per column. Multi cap 4 h, Single 20 h. Top: score/time; bottom: list-price cost. At equal cost, Multi leads delta, by ≤2 points on lightningcss; Single leads solar.
Fresh context can restart a stalled session
After 8–12 h, Single-Extended resumed its old conversation with automatic compaction.
A new Single session inherited the same code with empty context, clearing it every 3 h; it gained faster early in all six comparisons.
Fresh chains usually ended near resumed sessions; on GPT-6.1 Sol's delta, they closed much of Multi's gap.
Parallel work writes a more modular codebase
GPT-5.6 Sol; three selected extended-run task medians. Single at Multi's total cost; Multi final. CCN = cyclomatic complexity.
Modularity can fail at unowned interfaces

Lua, GPT-5.6 Sol: Multi-Extended 2 h vs Single-Extended 4 h, one run each. Main: core; nine subagents: libraries. Core-to-library calls gained tests; 69/76 Single-only passes needed callbacks into unowned core; Multi ended lower.
Where the evidence stops
Rerun variation
Single reruns on random GPT-5.6 Sol ProgramBench tasks differ by 7.1 points on average; the mean Multi-Single gain is +2.2. RQ3 uses three selected tasks.
Selected long runs
The clearest equal-cost delta lead rests on one run per setup.
Mechanisms not isolated
Probe also lengthened runs; modularity is observational, and Multi-Extended was told to split and self-test with a 4 h cap vs Single's 20 h.
Limited transfer
Probing requires an executable reference; fresh-context comparisons were tested on Codex, not Claude Code.
Why it matters
- On random tasks, subagents add only a few points at 2.6–3.8× the price; at equal cost, Single matches or leads.
- When a reference exists, ask one agent to probe it; when progress stalls, restart from the same code with fresh context.
- Open question: when do cleaner module boundaries improve performance, and when do cross-module calls make parallel work brittle?
12 slides, 3 min
5 days ago