# When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction

> The paper compares single agents with native subagents on repository-building tasks, measuring hidden-test scores, time, and cost. Random-task gains reach 1–5 points for 2.6–3.8× the price; hard-task gains are associated with checking, fresh context, and modular code, though interfaces can fail.

- arXiv: https://arxiv.org/abs/2611.33893
- Authors: Zhiheng Lyu, Chengyu Yin, Lingming Zhang
- Published: 2026-11-27
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.33893
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## When do parallel subagents earn their cost?

**1–5 pp** hidden-test gain vs single on random tasks

## Codex subagents add little for much higher cost

| Method | Hidden tests passed (%) | List-price cost (USD) |
| --- | --- | --- |
| Single | 76.2 | 5.69 |
| **Multi (same-model subagents) (+1.2 pp)** | **77.4** | **18.32** |

_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

![Figure 2](https://cdn.instaxiv.com/figures/2611.33893/figure2.webp)

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. (Figure 2)

## Parallel gains concentrate on hard tasks

**Easy + medium:** 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.

**Hard tasks:** 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

| Method | GPT-5.6 Sol (pp) | GPT-6 Sol (pp) | GPT-6.1 Sol (pp) |
| --- | --- | --- | --- |
| Single-Probe | +6.7 | +0.8 | -1.5 |
| **Multi** | **+8.8** | **+6.0** | **+2.8** |

_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

![Figure 4](https://cdn.instaxiv.com/figures/2611.33893/figure4.webp)

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. (Figure 4)

## Fresh context can restart a stalled session

**Resume:** After 8–12 h, Single-Extended resumed its old conversation with automatic compaction.

**Fresh chain:** 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

| Method | Files | Mean fn length (lines) | Mean CCN/fn | Tests passed (%) |
| --- | --- | --- | --- | --- |
| Single-Extended (equal cost) | 1 | 33 | 25.6 | 75.2 |
| Upstream source | 99 | 18 | 4.5 | 100 |
| **Multi-Extended (+2.5 pp)** | **20** | **24** | **16.0** | **77.7** |

_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

![Figure 10](https://cdn.instaxiv.com/figures/2611.33893/figure10.webp)

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. (Figure 10)

## 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.

Best used when: Try subagents on hard, separable work; otherwise probe a reference or restart a stale session, then compare at equal cost.

## Key takeaways

- 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?

## Links

- arXiv: https://arxiv.org/abs/2611.33893
- PDF: https://arxiv.org/pdf/2611.33893

## Citation

```bibtex
@article{lyu2026when,
  title   = {When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction},
  author  = {Lyu, Zhiheng and Yin, Chengyu and Zhang, Lingming},
  journal = {arXiv preprint arXiv:2611.33893},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.33893}
}
```
