Fanning out to parallel subagents has become the reflex move for any task that looks big. Build a library from a spec? Spin up a lead agent, let it hand modules to eight workers, merge. I've done it, and it feels like the obviously right architecture for repository-scale work.
When Are Parallel Subagents Effective for Coding? by Zhiheng Lyu, Chengyu Yin and Lingming Zhang puts a price tag on that reflex, and then does something more useful: it asks why subagents help when they do. The answer, at least for the models most of us were using a few months ago, is mostly not parallelism. It is that the single agent stops checking its work too early.
Fan-out bought a few points and a 3.8× bill#
The setup is whole-repository construction. NL2Repo gives the agent a natural-language spec for a Python library and scores it on a hidden pytest suite. ProgramBench additionally hands over an executable of the reference program to compare against. The main harness is Codex CLI with native subagents (up to 20 concurrent, sharing one workspace), and the multi-agent variant only gets a sentence permitting delegation, not requiring it. Median multi runs start 7 to 10 subagents. There is also a replication on Claude Code with Opus 5.5.
On 30 randomly drawn tasks per benchmark with GPT-5.6 Sol:
NL2Repo: single agent 67.7, multi 70.6, at $3.02 vs $11.56 per task (3.8×)
ProgramBench: single 76.2, multi 77.4, at $5.69 vs $18.32 (3.2×)
Cheaper Luna subagents under a Sol lead ended below the single agent on both benchmarks
At equal spend, multi doesn't overtake single until it has burned roughly four times single's cost
The authors also report that two runs of the identical setup differ by about 7 points on average, and the sign of the multi-agent gain flips between repetitions on 10 of 30 tasks. Sit with that for a second. If your internal eval of "subagents vs. no subagents" is one run per config, the noise is bigger than the effect you're trying to measure.
The Claude Code numbers tell a slightly kinder story for fan-out: Opus 5.5 multi scored 95.5 against single's 90.7 on ProgramBench, at 3.1× cost. On NL2Repo it went the other way, 94.4 single vs 90.5 multi.
The single agent quit the moment its own tests went green#
This is the part I keep thinking about. The gains concentrate on hard tasks, so the authors took 16 hard ProgramBench tasks and read the trajectories. Every one of the 17 GPT-5.6 single-agent runs they hand-read on seven tasks stopped right after one of its own checks passed. On one task (skeema) its tests never even connected to a database.
Single stops as soon as its own checks pass, while many hidden tests still fail.
So they tried the cheapest possible intervention. No subagents, just one added instruction to the single agent: probe the reference executable across its whole public interface, record exact outputs and exit codes, and "check every recorded behaviour before you finish".
On GPT-5.6 Sol across the 16 hard tasks, the multi-agent setup gained a mean +8.8 points at roughly 275% extra cost. The probe sentence gained +6.7 points at 50% extra cost. On one task, atlas, single stopped at 47%, multi reached 77%, and the probed single agent reached 75%.
The mechanism is visible in the count of differential tests, the commands that run the reference and the agent's program on the same input: a median of 15.3 for single, 17 for multi, 23.5 for the probed single agent. Subagents weren't winning by dividing labour. They were winning because more agents meant more independent checking, and you can buy that checking directly.
Opus 5.5 shows the same pattern. On atlas, single stopped after an hour at 81.7. Forced to run four hours it reached 91.1; with the probe sentence, 91.5.
The caveat the authors are upfront about is a big one for practitioners: a runnable reference program is a luxury. Most real projects don't ship with an oracle you can diff against. But the general shape transfers. Whatever your agent's ground truth is (a spec, an existing API, a staging service, recorded production traffic), make enumerating and checking against it an explicit exit criterion instead of trusting the agent's self-written tests.
Newer models already do the probing#
The trick fades with model generation. On GPT-6.1 Sol the probe sentence gave −1.5 points while multi still gave +2.8, and the single agent already ran a median of 19 differential tests on its own. On GPT-6 Sol the probe added +0.8 against multi's +6.0. With DeepSeek's dsh harness, the probe didn't help either. So this is a fix for a specific failure (premature stopping), and models are being trained out of that failure. Re-measure on every model bump.
Where fan-out still earned its keep: long runs and modular code#
Subagents aren't dead in this paper. On three hand-picked hard tasks run for many hours, multi pulled ahead late at equal cost on two of them, and the clearest case, delta, had both model generations ending higher with subagents. Two mechanisms explain the residual gap.
Fresh context. A chain of single-agent sessions with the conversation cleared every 3 hours led over the first hour in all six panels. On delta with GPT-6.1, the resumed session spent its first hour on one open item and then sat flat for six more hours. That is a direct argument for scheduled context resets in long autonomous runs, no subagents required.
Modularity. On delta with GPT-5.6, the long single-agent run wrote 7,728 lines into one file. The multi-agent run wrote 22 files, the largest holding 12% of its lines. Mean function length dropped from 33 to 24 lines. The authors flag this link to score as observational, and the multi-extended prompt explicitly told agents to split by module, which is a confound they estimate accounts for at most a quarter of the lead.
There is a cost to splitting too. Only multi-agent runs ended with a non-building program (2 of 30 extended runs, versus 0 of 38 single). And in 14 of 15 coupling breaks in multi runs, the agent ran its own tests after the edit, just with no input the edit now rejected. Same root problem as before: checks that pass because they don't look where the damage is.
On rigor: most comparisons rest on one to three runs, the long-run tasks were chosen rather than sampled, all generations are priced at GPT-5.6 rates, and the tasks are whole-program builds rather than the incremental issue work most of us do daily. I'd treat the headline gains as directional and the mechanisms as the real contribution.
Here's how I'm reordering my own defaults for long builds. First, an explicit exit checklist that forces the agent to enumerate behaviours against whatever ground truth exists and verify each one. Second, scheduled fresh sessions with a written handoff for anything running past an hour or two. Third, a module layout in the spec before anyone writes code. Only then fan-out, and only on tasks where a single agent has already plateaued.
My bet is that within a model generation or two, "use subagents" stops being an accuracy lever for this kind of work and becomes purely a wall-clock and context-hygiene decision. This paper is the first one I've seen that separates those three things cleanly enough to make that call measurable.