Why Anthropic’s +90% Multi-Agent Win Doesn’t Transfer Directly to Coding
Published:
Why Anthropic’s +90% Multi-Agent Win Doesn’t Transfer Directly to Coding
Reader's Guide to our paper When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction (Zhiheng Lyu, Chengyu Yin, Lingming Zhang; arXiv:2611.33893).
In June 2025, Anthropic published a widely cited engineering post on its multi-agent research system: a lead agent delegating to parallel subagents outperformed a single-agent baseline by 90.2% on complex research tasks [1]. The mechanism made intuitive sense for breadth-first search—when you need to sweep dozens of independent sources in separate context windows, parallelism scales token usage cleanly.
Shortly afterward, coding-agent products like Codex and Claude Code shipped native parallel subagents. The implicit bet was that the same orchestrator-worker win would transfer to software engineering.
It doesn’t—at least not for the reason people assume. Software repositories are not independent search queries; files, types, invariants, and tests share coupled state. When we tested parallel subagents head-to-head against a single agent on long-horizon repository construction (NL2Repo and ProgramBench, where an executable reference program is available), the picture looked very different.
1. The gap between research search and repository construction
On randomly drawn repository-construction tasks (across GPT-5.6 Sol, GPT-6.1 Sol, and a smaller replication with Opus 5.5 on Claude Code), default parallel subagents raised hidden-test pass rates by only 1 to 5 percentage points, while multiplying run cost by up to 3.8×. Once we matched equal cost, a single agent frequently matched or beat the delegating setup.
On the hardest, longest-horizon tasks, however, parallel subagents do pull ahead. That raises the causal question we actually care about: when parallel subagents win on hard coding tasks, is parallelism doing the work—or are subagents accidentally smuggling in cheaper single-agent tricks?
2. Decomposing the hard-task gain into three factors
Instead of stopping at a coarse “multi-agent vs. single-agent” leaderboard, we ran targeted intervention experiments to isolate what actually moved the score. The hard-task gain breaks cleanly into three factors—and two of them are really misattributed single-agent harness debt:
Factor 1: Self-checking (not parallelism)
Delegation forces the system to probe specs, test edge cases, and check against the reference program instead of stopping after a first plausible draft.
We tested whether parallelism was needed for this on GPT-5.6 Sol: we kept the agent strictly solo and added one single sentence instructing it to probe the reference program first. That one sentence recovered most of the multi-agent gain at a fraction of the cost.
Even more telling: moving from GPT-5.6 Sol to GPT-6.1 Sol, the subagent advantage shrank on its own—because the stronger solo model already checks its own work more thoroughly. What looked like a “multi-agent scaling gain” on an older model was largely a verification habit that newer single agents are already learning.
Factor 2: Fresh context (not parallelism)
Echoing Anthropic’s later engineering observations on effective harnesses for long-running agents [2], a single agent in a long coding session accumulates stale assumptions and noisy logs until it keeps editing without moving the score.
Spawning a subagent accidentally buys an empty context window. So we tested the solo equivalent directly: in extended runs, we took a single agent and periodically started a new session with a blank conversation instead of resuming the old thread. In every comparison, the fresh-session solo agent made faster early progress than the resumed session. Paying 3–4× for parallel workers just to get clean context is an expensive workaround for missing context resets.
Factor 3: Modularity (the one genuinely structural factor)
Here is where multi-agent delegation actually changes the artifact itself. Dividing work across agents pushes the resulting codebase toward more files and shorter functions, closer to the modular structure of real upstream repositories. Left alone, a single agent drifts toward larger monolithic files.
| Factor | What happens under subagents | Can a solo agent get it cheaply? |
|---|---|---|
| 1. Self-checking | Delegation triggers extra probing against specs and reference behavior | Yes — one-sentence prompt recovers most of the gain on GPT-5.6 Sol; gap shrinks automatically in GPT-6.1 Sol |
| 2. Fresh context | New subagents escape bloated conversation history | Yes — periodic solo session reset beats resuming in every comparison |
| 3. Modularity | Splitting ownership produces more files and shorter functions | Structural — genuinely tied to decomposition; matters when modularity helps on the task |
3. Pay down single-agent harness debt first
The reason Anthropic’s +90% research result doesn’t transfer straight to coding is straightforward: search is embarrassingly parallel, whereas building a repository is tightly coupled. In coding today, much of what people credit to “multi-agent orchestration” is really paying 3–4× to patch over two single-agent weaknesses—stopping verification too early and never resetting a bloated context.
References
- Anthropic Engineering, How we built our multi-agent research system (June 2025).
- Anthropic Engineering, Effective harnesses for long-running agents (November 2025).
- Zhiheng Lyu, Chengyu Yin, Lingming Zhang, When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction, arXiv:2611.33893 (November 2026).
为什么 Anthropic 的 +90% 多 Agent 红利没有直接复制到写代码上?
论文 When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction(Zhiheng Lyu, Chengyu Yin, Lingming Zhang;arXiv:2611.33893)图文导读。
2025 年 6 月,Anthropic 发了一篇传播极广的工程博客 《How we built our multi-agent research system》:主 Agent 委派多个并行 Subagent 的架构,在复杂开放式调研任务上比单 Agent 基线高出 90.2% [1]。在广度优先的信息检索里,这套逻辑非常成立——几十条互不干扰的检索线索天然可以装进彼此独立的上下文窗口里并行跑。
很快,Codex、Claude Code 等一线编程 Agent 产品都原生上线了并行 Subagent。行业里隐含的押注很直白:既然多 Agent 在调研任务上能涨 90%,那在写代码上应该也一样猛。
但实测结果并不是这样——至少不是大家以为的那个原因。 写代码不是互不干扰的广度搜索:文件、类型、接口、不变量和单测之间高度耦合。我们在长程仓库构建任务(NL2Repo 和带可执行参考程序的 ProgramBench)上把单 Agent 和并行 Subagent 拉到同等时间、同等成本下正面对比,结果完全不同。
1. 信息检索和仓库构建之间隔着一道鸿沟
在随机抽取的仓库构建任务上(覆盖 GPT-5.6 Sol、GPT-6.1 Sol,并在 Claude Code + Opus 5.5 上做了小规模复现),默认并行 Subagent 只把隐藏测试通过率拉高了 1 到 5 个百分点,却把运行成本放大到单 Agent 的 最高 3.8 倍。一旦按同等成本对齐,单 Agent 往往持平甚至反超。
不过,在最难的长程任务上,并行 Subagent 确实拉开了差距。这引出了真正关键的因果问题:难题上多出来的分数,到底是「并行」赚的,还是 Subagent 阴差阳错帮单 Agent 补了本来很便宜的短板?
2. 把难题增益拆解成三个因子
我们没有停留在「多 Agent vs 单 Agent」的粗粒度打分,而是通过定向干预实验把难题上的收益拆解成了三个独立因子——结果发现,其中两个本质上都是被错误归功给多 Agent 的单 Agent harness 欠债:
因子一:自检与核对(Self-checking)——不是并行
委派子任务的过程中,系统被迫更频繁地核对规格说明、试探参考程序,而不是写完一版就草草交卷。
我们在 GPT-5.6 Sol 上直接做反事实检验:彻底保持单 Agent,只在 prompt 里加一句话让它先 probe(试探)参考程序。结果这一句话就以极低成本追回了大部分多 Agent 收益。
更直接的证据来自跨代模型对比:从 GPT-5.6 Sol 升级到 GPT-6.1 Sol 后,Subagent 的领先幅度自己就缩小了——因为更强的单 Agent 本身就更愿意主动自检。旧模型上看起来像「多 Agent 扩展红利」的东西,很大一部分只是新模型正在自己学会的验证习惯。
因子二:干净上下文(Fresh context)——不是并行
这和 Anthropic 后来在 《Effective harnesses for long-running agents》 [2] 里观察到的长程退化现象完全呼应:单 Agent 跑久了,对话历史里塞满过期假设和报错噪音,很容易陷入「一直改代码、分数却不动」的泥潭。
拉起新 Subagent 只是顺手买了一个空白上下文窗口。于是我们直接测单 Agent 的等价干预:在长程运行里定期开一个空历史的新会话接手,而不是接着旧会话续聊。在每一组对照里,定期重置干净上下文的单 Agent 前期推进速度都全面快于续聊。 为了买干净上下文而付 3–4 倍并行账单,其实是在为缺少 context reset 机制买单。
因子三:代码模块化(Modularity)——唯一真正结构性的因子
这是多 Agent 真正改变了代码产物本身的地方。多人分工天然倒逼清晰边界,多 Agent 产出的仓库普遍文件更多、函数更短,结构更贴近真实上游开源代码;而单 Agent 放任不管时,更容易把逻辑越写越成大单体文件。
| 因子 | Subagent 触发了什么 | 单 Agent 能否低成本复现? |
|---|---|---|
| 1. 自检与核对 | 委派迫使系统更积极地核对规格与参考程序 | 能 — 一句话 prompt 即可在 GPT-5.6 Sol 上追回大部收益;到 GPT-6.1 Sol 差距自动缩小 |
| 2. 干净上下文 | 新 Subagent 摆脱了臃肿污染的长程历史 | 能 — 长程任务定期开空历史新会话,在所有对照中全面优于续聊 |
| 3. 代码模块化 | 分工倒逼更多文件、更短函数和清晰边界 | 结构性差异 — 真正与拆分相关,只在任务受益于模块化时产生净价值 |
3. 先把单 Agent 的 harness 债还清
Anthropic 的 +90% 调研红利之所以没有自动复制到写代码上,本质在于任务结构:开放检索是天然可并行的,而仓库构建是强状态耦合的。今天很多看似「多 Agent 编排起效」的编码案例,其实是用 3–4 倍的成本去掩盖单 Agent 的两笔欠债——验证停得太早,以及从不清理膨胀的上下文。
参考文献
- Anthropic Engineering, How we built our multi-agent research system (2025 年 6 月).
- Anthropic Engineering, Effective harnesses for long-running agents (2025 年 11 月).
- Zhiheng Lyu, Chengyu Yin, Lingming Zhang, When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction, arXiv:2611.33893 (2026 年 11 月).
