arXiv Science⌕ Search

arXiv · 2611.33893

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

Abstract

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zhiheng Lyu, Chengyu Yin, Lingming Zhang. 2026-11-25. When Are Parallel Subagents Effective for Coding? An Empirical Study on Repository Construction. https://arxiv.science/abs/2611.33893

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

AstroVLM: Expert Multi-agent Collaborative Reasoning for Astronomical Imaging Quality Diagnosis

Vision Language Models (VLMs) have been applied to several specific domains and have shown strong problem-solving capabilities. However, astronomical imaging, a quite complex problem involving multidisciplinary knowledge and several subtasks, has not been adequately studied. Due to the complexity of the astronomical imaging process, both world-class astronomical organizations, such as NASA, and expert enthusiasts devote a great deal of time and effort. This is because the processes in astronomical imaging have complex underlying correlations that significantly influence one another, making the quality diagnosis and error localization of astronomical images challenging. To address this problem, we propose AstroVLM, a collaborative multi-agent system for diagnosing the quality of astronomical images. Experiment results show that AstroVLM outperforms all baselines on real-world astronomical imaging quality diagnosis tasks, providing a reference for language models to handle complicated multi-process tasks.

cs.MA↗

United We Stand: An Emergent Wage Phillips Curve from Collective Bargaining in an Agent-Based Goodwin Model

We show that a wage Phillips curve can emerge from collective bargaining among agents instead of being assumed, as it is in Goodwin's growth cycle model. In an agent-based version of that model, workers on a grid read employment within a vision radius and turn its level and recent change into a perceived bargaining power, a union averages these perceptions to set the wage, and a single firm accumulates capital as in Goodwin's model. A downward-sloping curve appears only when workers organize, and it steepens the farther they see. When workers weigh the recent change in employment, the curve opens into a loop: the same unemployment rate brings faster wage growth while output grows above its trend than while it grows below. Across a Latin-hypercube bank of parameter sets, the weight of that change, the workers' memory, sets the size of this loop while the vision radius barely matters. Clustering the trajectories with k-means under a dynamic time warping distance reveals four regimes (wide cycles, moderate cycles, near full employment and collapse); the bargaining parameters select among the first three, and capital accumulation drives collapse.

cs.MA↗

Can LLM Agents Coordinate Without Negotiation? Evidence from Decentralized Goal Assignment

Independent agents sometimes need to make compatible choices without negotiating. We study this problem in decentralized LLM-based goal assignment, where agents have a shared description of a grid world but choose goals individually. After an initial exchange of goal rankings, agents facing the same conflict independently nominate a winner using identical language models and a common-interest matching game. We measure agreement on the first attempt, the quality of the selected outcome relative to a Nash benchmark, and the consequences for task completion. When first-round choices disagree, the simulation permits one retry and then a random tie-break, rather than open-ended negotiation. We evaluate seven locally served models on 100 seeded 20x20 maps, with five trials per map. Five of the seven models agree on more than 90% of conflicts in the first round, and the two Gemma 4 models agree on 96.6% and 99.0%. Relative to paired lowest-index controls using the same initial rankings, this procedure reduces mean makespan for every model, and the two Gemma 4 models finish within 0.6 steps of the optimal assignment on average. The results distinguish tacit agreement from overall assignment quality and suggest that repeated negotiation may be unnecessary for most conflicts in this setting.

cs.MA↗