arXiv:2610.17471cs.MAOct 2026

Manuscript Offprint

arXiv:2610.17471

Scaling Inference-Time Compute with Teams of Coding Agents

Keenan Samway, Daniel D'souza, Omar Darwiche Domingues, Marzieh Fadaee, Tan Yi-Chern, Nouha Dziri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multi-agent systems promise a new axis for scaling inference: rather than having one agent think longer or sample more attempts, a task is split across many agents that work in parallel and coordinate. However, in practice, more agents can easily produce duplicate work, coordination failures, and higher costs. We therefore formulate team design as a compute allocation problem: starting from a solo agent, where should additional inference compute go to reach the reward-cost Pareto frontier? We build a minimal multi-agent harness from the ground up and trace this frontier by varying, one at a time, the workflow stage at which a lead delegates to its workers (planning, implementation, or verification), the models that form the team, and the number of workers. On long-horizon challenging software-engineering tasks (e.g., ProgramBench), teams outperform solo agents but cost three to seven times as much. With the right compute allocation, however, a heterogeneous 17-agent team comes within 1.4 points of a strong homogeneous 5-agent team at 70% lower cost. This efficiency stems from three findings. First, planning is the most valuable use of workers: in a homogeneous team whose lead decides how many workers to spawn, a lead that delegates only planning to its workers, and then implements and verifies the code itself, matches the reward of a lead that delegates to workers throughout planning, implementation, and verification, at half the cost. Second, cheap models pay off as planners but not as implementers: a strong lead with cheap planners recovers 47.5% of the reward gain of an all-strong team for only 13.9% of its additional cost, whereas cheap implementers lower reward. Third, planners keep improving reward as the team grows, whereas implementers and verifiers plateau beyond four workers: additional implementers fragment the code into more files for the lead to integrate, and additional verifiers add little new information about the program. Together, our results offer a guide to spending an agent budget where it counts, given the task, cost, and latency constraints a user has.

★First authors.

†^{\dagger}Work done while at Cohere.

Released as a preprint on October 14, 2026

1 Introduction

Coding agents can now solve long-horizon software-engineering tasks that require navigating large repositories, editing code, invoking tools, and iteratively debugging their own solutions (Jimenez et al., 2024; Yang et al., 2024; DeepSeek-AI et al., 2026; Z.ai, 2026; Team et al., 2026; OpenAI, 2026; Anthropic, 2026). The dominant way to make such an agent stronger at inference time is to scale its compute sequentially, by letting it reason or revise for longer (OpenAI et al., 2026; Guo et al., 2025; Muennighoff et al., 2025), or in parallel, by sampling independent attempts and aggregating them (Wang et al., 2023; Brown et al., 2024; Snell et al., 2024). Both are bounded by a single agent's trajectory. Longer traces increase latency and eventually exhaust the context window, and independent attempts repeat the work rather than dividing it. A team of agents offers a third axis: it divides a single attempt among agents that work on different parts of the task, whose work must then be consolidated into one solution. Team members can explore competing hypotheses, inspect different parts of a repository, implement separable changes, and independently verify a candidate solution. This provides a new test-time scaling strategy for when a single agent's context window or time budget becomes limiting.

Adding agents, however, does not automatically add useful work. More agents bring more compute, which can raise solution correctness, but in practice these gains can be lost to duplicated work, conflicting edits, and the cost of consolidating what each agent produces (Geng & Neubig, 2026; Yang et al., 2026b). Whether a team helps therefore depends less on how many agents it has than on how it spends its compute. We make this question precise by treating team design as a compute allocation problem (Section 2). Starting from a solo agent, the next dollar of inference can go to a stronger lead, to stronger or cheaper workers, to more workers, or to a particular stage of the software-engineering workflow (Royce, 1987): planning (P), implementation (I), or verification (V). Each choice moves the team to a different point in reward and cost. We ask which choices reach the reward-cost Pareto frontier, and which buy the most reward per added dollar.

To answer this, we build a minimal, configurable harness with a hierarchical lead-worker topology (Figure 1): a lead agent decomposes the task, delegates subtasks to workers, and consolidates their results. Because every part of the harness is exposed, we can vary one design choice at a time: the stage at which the lead delegates (P, I, V, or all three, PIV), the lead and worker models, the number of workers, whether the lead waits for its workers or keeps working while they run, and whether workers can message each other. We focus on ProgramBench (Yang et al., 2026a), a long-horizon repository-reconstruction benchmark in which agents receive only a black-box executable and its documentation, and must discover its behavior, plan, implement, and verify a complete program that reproduces it. We complement it with Commit0 (Zhao et al., 2024), which also asks agents to build a repository from scratch but provides its skeleton, including the file layout and function stubs, together with its unit tests. We evaluate frontier models from the GPT and Claude Opus families.

Our results show that teams outperform solo agents, but at a steep price: a team composed of all strong agents raises reward over a single agent working alone, yet costs 3 to 7 times as much in inference dollars and, in most configurations, takes longer to finish (Section 4). We find, however, that with the right allocation of compute, a heterogeneous 17-agent team can come within 1.4 points of a strong homogeneous 5-agent team at 70% lower cost (Section 7). This configuration rests on where the compute goes. On ProgramBench, planning emerges as the most valuable use of workers: when the lead delegates planning to a team of workers and then writes and verifies the code itself, the team matches the reward of a lead that delegates all three stages (planning, implementation, and verification) to its workers, at half its cost, and each dollar spent on planning buys up to twice the reward of a dollar spent on any other stage (Section 5). Adding more workers to implementation or verification, in contrast, quickly plateaus. Planning wins here because it is the bottleneck of this task; on Commit0, where the repository already dictates the plan, implementation benefits most instead (Appendix C.13). Because planning workers only gather information for the lead to act on, they can be cheap: a strong lead with cheap planners recovers 47.5% of the reward gain of an all-strong team for only 13.9% of its additional cost (Section 6).