The Agentic Engineering Loop
The unit of agent work — context, planning, action, observation, self-verification — where cost, failure, and control actually live.
Understand and govern the unit of agent work—because cost, failure, and control all live inside the loop rather than in the prompt that starts it or the pull request that ends it.
Most organizations govern the pull request and leave the loop entirely unexamined. That is backward. By the time a change reaches review, the decisive error has usually already happened, the budget has usually already been spent, and the evidence of how the work was actually done has usually already been compacted away.
5.1 The Anatomy of a Turn #
A turn is one full cycle: the model receives a prompt with its system instructions, tool definitions and history; it responds with text, tool calls, or both; tools execute and return results; the cycle repeats until the model produces a response with no tool calls.130
Success · max turns exceeded · budget exceeded · execution error · structured-output retry exhausted
Cost is roughly linear in turn index: ~5k input tokens/turn at turns 1–10, ~35k at turns 31–50.
The loop is the correct unit of analysis because it is where cost, failure, and control all live. An organization that records only “the agent finished” is discarding its single most useful diagnostic signal.
Three properties of this cycle are load-bearing, and each is routinely overlooked.
Termination is typed, and the types are a telemetry schema. Published termination taxonomies distinguish success, maximum turns exceeded, budget exceeded, execution error, and structured-output retry exhaustion.130 An organization that records only “the agent finished” is discarding the single most useful diagnostic signal it has. Instrument why the loop stopped.
Iteration limits are two-dimensional and frequently default to unlimited. Maximum turns and maximum spend are separate controls, and the vendor documentation itself notes that without limits “the loop runs until Claude finishes on its own, which is fine for well-scoped tasks but can run long on open-ended prompts.”130 Every A2-and-above deployment should carry both.
The third bears on correctness rather than cost: compaction silently rewrites the agent’s memory of its instructions. As the context window fills, older messages are replaced with a summary, and the documentation warns explicitly that “specific instructions from early in the conversation may not be preserved.”130 Anything that must hold for the whole task belongs in a re-injected file, not in the opening prompt. This is a common and expensive misunderstanding: organizations put their governance rules in a system prompt and assume they persist.
One further point belongs here, though it is a procurement decision rather than a design one. Harness design is a controllable variable independent of model choice. The founding result in this area demonstrated that the same model scores materially differently under different agent-computer interfaces, and that constrained, purpose-built tools with structured feedback outperform raw shell access.127 The counter-demonstration is equally important: a roughly hundred-line harness with no tools but bash, a completely linear history, no context management, no sub-agents, and no memory reports scores within a few points of elaborate scaffolds.128 Anyone selling harness complexity should be asked to beat that baseline. The published platform abstraction worth borrowing from a third architecture is the action/observation event stream as the canonical agent state—the closest thing the open literature has to a provenance-friendly, auditable model of agent work.129
5.2 Context Assembly #
This is the most contested area in the entire agentic engineering literature, and the honest synthesis is not what most vendors say.
Repository instruction files improve efficiency and probably not success. A controlled study across SWE-bench tasks and developer-committed issues, using both generated and human-written context files across multiple models and agents, found that “providing context files does not generally improve task success rates, while increasing inference cost by over 20% on average”—with the null result holding across models, agents, and file provenance.131 A separate paired within-task study of 124 pull requests found median wall-clock time down 28.6 percent and median output tokens down 16.6 percent with an instruction file present, but explicitly did not evaluate task success.132 A field study of 15,549 agentic pull requests across 148 projects found near-symmetric outcomes: 27.7 percent of projects raised merge rate by at least 20 percent after introducing an instruction file, and 26.4 percent lowered it by at least 20 percent.133
The refinement that survives all three: instruction files earn their cost for non-standard practices the agent could not infer, and file quality decides the outcome. Projects that improved had files with a median of 976 words against 569 for projects that declined.133 Repository overviews, the thing vendors most commonly recommend generating, are the part with the least support. The format itself is now stewarded by the Agentic AI Foundation under the Linux Foundation, which is the durable signal for an organization standardizing on it.135
And these files are the least secure artifact in the estate. A study of 2,303 context files across 1,925 repositories found testing content in 75 percent, implementation detail in 69.9 percent, and architecture in 67.7 percent—with security and performance each appearing in only 14.5 percent.134 The artifact steering every agent almost never mentions the two quality attributes that degrade fastest. Published guidance exists on what security content belongs there.99
Indexing earns its keep as repository size grows. Two major vendors hold publicly opposite architectural positions, just-in-time agentic exploration against a maintained semantic index, and each publishes evidence favoring its own.136,137 The only defensible synthesis from published data is scale-dependence: the vendor advocating indexing reports code retention improving 0.3 percent overall but 2.6 percent on codebases over a thousand files.137 Independent benchmark work is more sobering: across 427 samples from 25 repositories, interactive agents never accessed the gold files on 27 to 35 percent of samples despite exploration, and the median relevant evidence occupies only 4.7 percent of the file containing it.203 Context acquisition is a distinct, measurable failure surface independent of patch generation.
Long contexts degrade non-uniformly. Performance falls as input length grows, with distractors biting harder at length and a substantial gap between focused and full-context input across model families.138 The publisher sells vector databases and has an interest in the conclusion, which should be stated—but the finding is the empirical basis for compaction, sub-agent isolation, and aggressive curation.
The enterprise conclusion. Invest in the substrate—indexed code, service catalog, ownership topology, architectural decisions, entitlement-scoped retrieval—described in Section 8.2, where the enterprise evidence actually is. Treat instruction files as a place for non-obvious house rules and security content, keep them short and structured, and evaluate them rather than generating them.
5.3 Self-Verification Within the Loop #
One distinction governs everything here: verification against an external oracle works; verification against the model’s own judgment does not.
The negative baseline is peer-reviewed and unambiguous. Models “struggle to self-correct their responses without external feedback, and at times, their performance even degrades after self-correction,” and prior positive results depended on oracle labels telling the model when to stop.110 This is the citation to use against any vendor claim that an agent reviews its own work.
The positive case is equally clear and points at execution. A fixed three-phase pipeline of localize, repair, and validate with regression tests plus generated reproduction tests, with no autonomous tool selection at all, resolved 32 percent of a benchmark at roughly $0.70 per issue, beating the agentic systems of its moment on both accuracy and cost.140 The verification step, not the autonomy, carried the value.
Selection is a separate and under-invested engineering problem. Work combining serial iteration with parallel candidate generation, where each trajectory generates a test script alongside its draft edit, reached 57.4 percent at roughly $4.60 per instance—and selecting across edits drawn from top existing submissions reached 66.2 percent, outperforming the best individual member of that ensemble.141 The candidate pool frequently contains a correct patch that the selector fails to pick.
Critic sub-agents are measured, and the numbers are sobering. Across 584 instances of real pull request defects with full repository context, a single-shot reviewer achieved 27.0 percent recall at 3.6 percent precision, and adding iterative self-critique raised recall to 32.8 percent while collapsing signal-to-noise from 5.11 to 1.95 on the large model and from 2.89 to 0.91 on the small one.111 Below parity means more false findings than true ones. Self-critique trades signal for recall, and smaller models degrade under it.
Design consequence. Put the oracle outside the model. Execution, tests, type checking, build success, and differential comparison are verification. A second model instance reading the first one’s output is triage at best, and at worst it is noise with a confidence score attached.
5.4 Planning, Decomposition, and Spec-Driven Work #
Test-driven agentic development is measured and it works. A peer-reviewed framework supplying tests and then remediation loops moved one model from 69.7 percent to 82.5 percent to 87.7 percent on a Python benchmark, and from 78.7 to 87.8 to 93.3 percent on another.157 The gains shrink sharply as scope grows from function to file, reaching only 23.0 to 26.1 to 30.3 percent at file level, and the study names three limits worth carrying: more tests can make things worse through lost-in-the-middle effects, solutions sometimes satisfy only the supplied tests and fail private suites, and gains plateau after roughly three tests.
Spec-driven agentic development is a different story and it should be told honestly. Tooling exists and is well specified, defining a workflow from governing principles through specification, plan, tasks, implementation, and convergence assessment.156 It presents no empirical evidence, no benchmark, and no user study showing that spec-driven development improves quality, speed, or any measurable outcome, and its own goals are labeled experimental. No independent evaluation exists. The nearest supporting evidence is indirect and points the other way: agents given specifications averaging 2,391 words resolve only 18.75 to 25 percent of realistic evolution tasks.115
That is not an argument against specification, which is the highest-leverage input in this framework for reasons established in Section 6.1 and Section 11. It is an argument against claiming measured efficacy for a methodology that has none yet, and for treating your own adoption of it as an experiment with instrumentation attached.
What is actually documented about long-horizon structure is that state lives in files rather than in the context window. The clearest published account externalizes specification, plan, implementation notes, and a running decision log into repository markdown, with verification commands and repair after each milestone, in a loop of plan, edit, run tools, observe, repair, update documentation, repeat.151 That account describes a single roughly twenty-five-hour run consuming around 13 million tokens. It is an anecdote rather than a measurement, but it is the clearest one available, and the architectural pattern is sound for a reason Section 5.6 explains.
5.5 Iteration Economics #
Agentic tasks cost roughly a thousand times more tokens than code chat, input tokens rather than output tokens drive that cost, and runs on the same task can differ by up to thirtyfold in total tokens.154
That last figure is the one that breaks naive capacity planning: token consumption is stochastic, so per-task budgeting must be distributional rather than a point estimate.
Two further findings from the same work destroy the intuitive planning approach. Accuracy often peaks at intermediate cost and saturates above it—spending more does not monotonically buy correctness. And neither the model nor a human expert can forecast what a task will cost: models predict their own token consumption with correlations up to 0.39 and systematically underestimate, while expert difficulty ratings correlate only weakly with actual spend.154
Cost per task, triangulated across independent sources, spans roughly $0.13 to $4.60 depending on approach, with a fixed-pipeline method at $0.70 and heavy parallel sampling at $4.60.140,141,160 The instructive comparison is between two entries on the same public leaderboard: one model-scaffold pair cost $366.81 for a 27.2 percent resolve rate while another cost $67.09 for 38.0 percent.160 Cost and accuracy are not correlated across scaffold-model pairs, and paying more is not a strategy. The methodological critique underlying this is worth reading in full: accuracy-only evaluation, conflation of model-developer and downstream-developer needs, inadequate holdout sets producing shortcut-taking, and a lack of standardization—with the finding that state-of-the-art agents are “needlessly complex and costly.”155
Context accumulation makes the marginal turn the expensive one. Vendor modeling of a fifty-turn session puts input at roughly 5,000 tokens per turn for turns one through ten, 20,000 for turns eleven through thirty, and 35,000 for turns thirty-one through fifty, with input outnumbering output twenty to twenty-five times.159 Cost per turn is therefore roughly linear in turn index. That is an economic argument for compaction and sub-agent isolation independent of any quality argument—and it means an agent that is going to fail is cheapest to stop early.
Runaway loop detection is an engineering necessity with no evidence base. Mechanisms exist (turn caps, budget caps, concurrency and spawn-depth limits, execution time ceilings) but there is no published measurement of how often production coding agents enter non-terminating loops, no published detection heuristic with a measured false-positive rate, and no published cost-anomaly threshold. Build it, instrument it, and do not claim a benchmark you do not have.
5.6 Long-Horizon Work #
Capability on long tasks is improving fast and is routinely overstated. The anchor measurement fits success probability against human expert completion time and reports the fifty-percent time horizon roughly doubling every seven months.149 The caveats matter more than the trend line and are routinely dropped: it measures task difficulty expressed in human time rather than how long an agent works autonomously; the task distribution is primarily software engineering, machine learning and cybersecurity; horizons reflect what a low-context person could accomplish; measurements above sixteen hours are unreliable with the current task suite; and one published per-model figure carries a 95 percent confidence interval spanning from under two hours to over twenty. Quote the interval or do not quote the number.
Why long horizons fail has a specific and actionable mechanism. Peer-reviewed work identifies self-conditioning: “models become more likely to make mistakes when the context contains their errors from prior turns,” and this is not a long-context artifact—injecting artificial error histories reproduces it, and larger models are more susceptible despite better long-context handling.152 The same work finds that small single-step accuracy gains compound into exponential gains in executable horizon, and that reasoning-trained models eliminate self-conditioning entirely.
That mechanism converges with two others. Multi-turn conversational degradation of roughly 39 percent, decomposed into a minor aptitude loss and a large increase in unreliability, is driven by models making early assumptions and over-relying on them.153 And the dominant failure category in real trajectories is “false premise” at 30.7 percent—the agent forms a wrong belief early and never revisits it.117
Three independent methodologies, one mechanism: early wrong commitment, unrecovered. The operational consequences are direct and they are counterintuitive.
- Restart beats steer. Incremental mid-task correction degrades outcomes because the failed attempt contaminates context. Checkpoint-and-restart from a clean state is mechanistically justified; mid-task nudging is not. Note honestly that the multi-turn study tested conversational generation rather than agentic coding trajectories, so the transfer is plausible and unproven.
- Early abort beats late detection. Eighty-two percent of failures show no termination after the decisive error, and observable signals surface roughly ten steps after it.117 A long-running trajectory is a negative signal, not a sign of diligence.
- Error recovery, not error avoidance, distinguishes success. Seventy-one percent of successful trajectories recover from at least one error.117 Design for recovery.
Asynchronous agents make these constraints concrete. Published platform limits include a fifty-nine-minute maximum execution time, one branch and one pull request per session, and no cross-repository changes—with the documented workaround for incompatible branch protection being to add the agent as a bypass actor, which is in direct tension with the merge-boundary control in Section 13.150
5.7 Multi-Agent Orchestration #
The pattern vocabulary is settled: prompt chaining, routing, parallelization by sectioning or voting, orchestrator-workers, and evaluator-optimizer, with workflows distinguished from agents by whether control flow is predefined.142 The guidance from the same source runs against complexity: start simple and add structure “when it demonstrably improves outcomes.”
The evidence for multi-agent in software engineering is weak, and the strongest pro-multi-agent result excludes coding explicitly. The most-cited positive finding reports a 90.2 percent improvement over a single agent on an internal research evaluation, and in the same publication notes that multi-agent systems use about fifteen times more tokens than chat, that token usage alone explained 80 percent of performance variance on the relevant benchmark, and that “most coding tasks involve fewer truly parallelizable tasks than research.”143 The gain is substantially a token-spend gain, and the vendor with the strongest published result carves coding out of it.
The counterevidence is stronger than the case.
- A peer-reviewed study of over 1,600 annotated execution traces across seven multi-agent frameworks produced a fourteen-mode failure taxonomy in three categories (system design, inter-agent misalignment, and task verification) with inter-annotator agreement at κ = 0.88, and found that obvious interventions such as better prompts and added structure produce partial gains only.146 Multi-agent failure is architectural rather than promptable.
- Under matched thinking-token budgets, single-agent systems were the best performer or statistically indistinguishable from it at every budget except the lowest, across five multi-agent variants and three models; sequential multi-agent became competitive only under 70 percent artificial context corruption, which is the regime good context engineering exists to prevent.147 That study covers multi-hop question answering rather than software engineering, which should be stated.
- A single agent running multi-turn conversation with cache reuse matched homogeneous multi-agent workflows at lower cost across eight benchmarks, because it pays for incremental tokens rather than repeated full prefixes.148
- The strongest practitioner argument is that subagents cannot see each other’s implicit decisions, and that conflicting decisions produce bad results—with a preference for single-threaded architecture and a dedicated compression model over parallel decomposition.144 That position has since been publicly softened by its author, which should be noted rather than ignored.
- The useful discriminator from a third vendor: read actions parallelize and write actions do not.145 Multi-agent fits breadth-first read-heavy exploration and misfits shared context and coordinated writes.
And there is a measured cost at repository scale that no orchestration framework addresses: cross-product concurrency roughly doubles the merge conflict rate.32
The defensible enterprise position. Use parallelism for read-heavy exploration, candidate generation, and independent work streams with partitioned scope. Concentrate writing and synthesis in one place. Treat multi-agent orchestration for a single coherent change as unproven and expensive. And note that no credible enterprise adoption figure exists for any agent orchestration framework—every number encountered traces to vendor marketing.
Sub-agent context isolation is a partial exception worth understanding on its mechanics. Documented behavior: a non-fork sub-agent starts with a fresh context window, intermediate tool calls stay inside it, only the final message returns to the parent, and a tool omitted from its definition is not in its session at all.139 Governance controls are real, covering spawn depth, concurrency, budget caps that terminate background sub-agents, and instruction-shaped-pattern scanning of sub-agent output before the parent reads it, which is a prompt-injection control at the agent-to-agent boundary. No published measurement exists of whether sub-agent isolation improves task success on software engineering work. The mechanism is documented; the benefit is asserted.
5.8 How Loops Fail #
The best published failure taxonomy for coding agents covers 1,794 complete trajectories and more than 63,000 execution steps across seven models and three scaffolds.117
| Category | Rate | Dominant sub-modes |
|---|---|---|
| Epistemic errors | 57.9% | False premise 30.7%; specification neglect 14.9%; output misreading 4.4% |
| Competence errors | 32.8% | Knowledge gap 24.0%; capability limitation 8.8% |
| Environment errors | 9.4% | Environment blocker 8.8% |
Read that table with Section 5.6’s process findings and the design implications are unambiguous. The largest failure mode is a wrong belief formed early. The second largest is ignoring the specification. Neither is fixed by a better model, and both are addressed by better inputs and earlier abort.
A separate finding kills a common intuition: fault localization is not the bottleneck. Agents identify the correct file 72 to 81 percent of the time even in failed attempts, and success depends more on achieving approximate rather than exact modifications.158 Investment in localization tooling is misdirected; investment in verification and specification is not.
5.9 Controls #
| ID | Control | Minimum bar (L2) | Enforced state (L3) |
|---|---|---|---|
| LOOP-1 | Turn and budget ceilings configured on every A2+ deployment | Both limits set per deployment | Enforced platform-wide; defaults deny unlimited; overrides logged and expiring |
| LOOP-2 | Termination reason recorded as typed telemetry | Termination captured per session | Typed taxonomy emitted; distribution monitored; anomalous shifts alert |
| LOOP-3 | Persistent constraints re-injected rather than held in the opening prompt | Governance rules in a re-injected artifact | Verified by test that constraints survive compaction |
| LOOP-4 | Verification within the loop uses an external oracle | Execution-based verification present | Oracle immutable from the agent; self-critique never gates alone |
| LOOP-5 | Early-abort detection on stalled or diverging trajectories | Long-running trajectories flagged | Automated abort on divergence signature; cost recovered rather than spent |
| LOOP-6 | Restart-from-checkpoint preferred over mid-task steering | Practice documented | Checkpointing supported by the platform; contaminated context discarded on restart |
| LOOP-7 | Context assembly scoped to the invoking principal’s entitlements | Retrieval scoped at the data layer | Verified by adversarial retrieval test; substrate enforces, not the prompt |
| LOOP-8 | Instruction and context files reviewed, evaluated, and security-bearing | Files reviewed as code | Files evaluated for effect before rollout; security content required |
| LOOP-9 | Per-task cost distribution tracked, not point estimates | Cost per task recorded | Distributional budgeting; anomaly halt at a defined percentile |
| LOOP-10 | Concurrent agent work streams bounded and scope-partitioned per repository | Limit set and observed | Cross-product concurrency restricted; conflict rate monitored |
5.10 Evidence to Request #
- The distribution of termination reasons for the last thousand sessions—a population that is 100 percent “success” means the taxonomy is not instrumented.
- Cost per task as a distribution with its ninety-fifth percentile, not a mean.
- A demonstration that a governance constraint survives compaction.
- The result of an adversarial retrieval test against the context substrate.
- The trajectory length distribution for successful and failed sessions, which should differ.
- Evidence that an early abort actually fired and what it saved.
5.11 Failure Modes #
- Governing the pull request and ignoring the loop. Everything expensive and everything diagnostic happens before the pull request exists.
- Rules in the system prompt. They do not survive compaction, and the failure is silent.
- Unlimited loops by default. Both turn and budget ceilings default to unlimited in at least one major SDK, and most organizations never change it.
- Self-critique treated as verification. It measurably degrades signal, and it is the most commonly marketed agent feature.
- Steering a failing agent. Mid-task correction is intuitive, feels responsible, and makes outcomes worse. Restart instead.
- Multi-agent as a default architecture. Fifteen times the tokens, an architectural failure taxonomy, no software-engineering evidence, and double the merge conflict rate.
References cited in this section
41 of 243 · numbering matches the PDF
- 130Anthropic, "How the Agent Loop Works," Claude Agent SDK documentation, accessed August 28, 2026. Vendor documentation; cited as product fact.code.claude.com/docs/en/agent-sdk/agent-loop ↗
- 127John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press, "SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering," NeurIPS 2024, arXiv:2405.15793.arxiv.org/abs/2405.15793. ↗
- 128SWE-agent project, "mini-swe-agent," GitHub repository, accessed August 28, 2026. Benchmark score is a project self-report, not independently reproduced.github.com/SWE-agent/mini-swe-agent ↗
- 129Xingyao Wang et al., "OpenHands: An Open Platform for AI Software Developers as Generalist Agents," ICLR 2025, arXiv:2407.16741.arxiv.org/abs/2407.16741. ↗
- 131Thibaud Gloaguen, Niels Mündler, Mark Müller, Veselin Raychev, and Martin Vechev, "Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?," arXiv:2602.11988, February 12, 2026, revised June 23, 2026. Preprint.arxiv.org/abs/2602.11988 ↗
- 132Jai Lal Lulla, Seyedmoein Mohsenimofidi, Matthias Galster, Jie M. Zhang, Sebastian Baltes, and Christoph Treude, "On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents," ICSE JAWs 2026. Task success rate explicitly not evaluated.
- 133Ali Arabat and Mohammed Sayagh, "Toward Instructions-as-Code: Understanding the Impact of Instruction Files on Agentic Pull Requests," arXiv:2606.13449. 15,549 agentic pull requests across 148 projects. Preprint.arxiv.org/abs/2606.13449. ↗
- 135"AGENTS.md," open format, stewarded by the Agentic AI Foundation under the Linux Foundation.agents.md ↗
- 134Worawalan Chatlatanagulchai, Hao Li, Yutaro Kashiwa, et al., "Agent READMEs: An Empirical Study of Context Files for Agentic Coding," arXiv:2511.12884, November 17, 2025. 2,303 files from 1,925 repositories. Preprint.arxiv.org/abs/2511.12884 ↗
- 99Avishay Balter et al., "Security-Focused Guide for AI Code Assistant Instructions," OpenSSF Best Practices and AI/ML Working Groups, August 1, 2025.best.openssf.org/Security-Focused-Guide-for-AI-Code-Assistant-Instructions ↗
- 136Anthropic, "Effective Context Engineering for AI Agents," September 29, 2025. Vendor position; no efficacy figures published for the three named long-horizon techniques.
- 137Stefan Heule, Emily Jia, and Naman Jain, "Improving Agent with Semantic Search," Cursor Blog, November 6, 2025. Vendor-published, opposite architectural position to reference 136; each publishes evidence favoring its own approach.
- 203Bowen Qin and Yi Xie, "Agent Retrieval Bench: Evaluating Repository Context Retrieval for Coding Agents," arXiv:2607.24882, July 2026. 427 samples across 25 repositories. Preprint.arxiv.org/abs/2607.24882 ↗
- 138Kelly Hong, Anton Troynikov, and Jeff Huber, "Context Rot: How Increasing Input Tokens Impacts LLM Performance," Chroma Research, July 14, 2025. Publisher sells vector databases and has a commercial interest in the conclusion.
- 110Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou, "Large Language Models Cannot Self-Correct Reasoning Yet," ICLR 2024, arXiv:2310.01798.arxiv.org/abs/2310.01798. ↗
- 140Chunqiu Steven Xia, Yinlin Deng, Soren Dunn, and Lingming Zhang, "Agentless: Demystifying LLM-based Software Engineering Agents," Proceedings of the ACM on Software Engineering (FSE 2025), arXiv:2407.01489, DOI 10.1145/3715754.arxiv.org/abs/2407.01489 ↗
- 141Ryan Ehrlich, Bradley Brown, Jordan Juravsky, Ronald Clark, Christopher Ré, and Azalia Mirhoseini, "CodeMonkeys: Scaling Test-Time Compute for Software Engineering," arXiv:2501.14723. Preprint.arxiv.org/abs/2501.14723. ↗
- 111Kristen Pereira, Neelabh Sinha, Rajat Ghosh, and Debojyoti Dutta, "CR-Bench: Evaluating the Real-World Utility of AI Code Review Agents," arXiv:2603.11078, March 10, 2026. Preprint, vendor-affiliated.arxiv.org/abs/2603.11078 ↗
- 157Noble Saji Mathews and Meiyappan Nagappan, "Test-Driven Development and LLM-based Code Generation," ASE 2024, arXiv:2402.13521.arxiv.org/abs/2402.13521. ↗
- 156GitHub, "spec-kit: Toolkit to Help You Get Started with Spec-Driven Development," GitHub repository, MIT licensed. Presents no empirical evidence, benchmark, or user study; its own goals are labeled experimental.
- 115Minh Vu Thai Pham, Tue Le, Dung Nguyen Manh, Huy Nhat Phan, and Nghi D. Q. Bui, "SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios," arXiv:2512.18470, revised April 4, 2026. Preprint. See also Shaoqiu Zhang et al., "SWE-Explore: Benchmarking How Coding Agents Explore Repositories," arXiv:2606.07297, June 5, 2026.arxiv.org/abs/2512.18470 ↗
- 151OpenAI, "Run Long Horizon Tasks with Codex," OpenAI Developers Blog, accessed August 28, 2026. A single documented run, not a measurement.
- 154Longju Bai, Zhemin Huang, Xingyao Wang, Jiao Sun, Rada Mihalcea, Erik Brynjolfsson, Alex Pentland, and Jiaxin Pei, "How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks," arXiv:2604.22750. Preprint.arxiv.org/abs/2604.22750. ↗
- 160HAL leaderboard, Princeton. Late-2024 model-scaffold pairs; cost and accuracy are not correlated across entries.hal.cs.princeton.edu/swebench ↗
- 155Sayash Kapoor, Benedikt Stroebl, Zachary S. Siegel, Nitya Nadgir, and Arvind Narayanan, "AI Agents That Matter," arXiv:2407.01502, July 1, 2024. Preprint.arxiv.org/abs/2407.01502 ↗
- 159Vantage, "The Hidden Cost Driver in Agentic Coding Sessions," April 15, 2026. Vendor modeling, not measurement.
- 149Thomas Kwa, Ben West, Joel Becker, et al., "Measuring AI Ability to Complete Long Software Tasks," METR, arXiv:2503.14499, March 19, 2025; and METR, "Task-Completion Time Horizons of Frontier AI Models," updated May 8, 2026. Measures task difficulty in human time, not autonomous run duration; measurements above 16 hours are unreliable with the current task suite.arxiv.org/abs/2503.14499 ↗
- 152Akshit Sinha, Arvindh Arun, Shashwat Goel, Steffen Staab, and Jonas Geiping, "The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMs," ICLR 2026, arXiv:2509.09677.arxiv.org/abs/2509.09677. ↗
- 153Philippe Laban, Hiroaki Hayashi, Yingbo Zhou, and Jennifer Neville, "LLMs Get Lost In Multi-Turn Conversation," arXiv:2505.06120, May 9, 2025. Over 200,000 simulated conversations; tests conversational generation rather than agentic coding trajectories — the transfer is plausible and unproven.arxiv.org/abs/2505.06120 ↗
- 117Xiangxin Zhao, Han Li, Shuaiting Li, Tianyi Zhao, Earl T. Barr, Federica Sarro, and He Ye, "Failure as a Process: An Anatomy of CLI Coding Agent Trajectories," arXiv:2607.09510, July 10, 2026. 1,794 trajectories, >63,000 steps, seven models, three scaffolds. Preprint.arxiv.org/abs/2607.09510 ↗
- 150GitHub, "About GitHub Copilot Cloud Agent," GitHub Docs, accessed August 28, 2026. Vendor documentation; cited as product fact.
- 142Erik Schluntz and Barry Zhang, "Building Effective AI Agents," Anthropic, December 19, 2024. Vendor-published.
- 143Anthropic, "How We Built Our Multi-Agent Research System," June 13, 2025. Vendor-published; the same post reports ~15× token usage and states that most coding tasks involve fewer truly parallelizable subtasks than research.
- 146Mert Cemri, Melissa Z. Pan, Shuyi Yang, et al., "Why Do Multi-Agent LLM Systems Fail?," NeurIPS 2025, arXiv:2503.13657. 1,600+ annotated traces, seven frameworks, Cohen's κ = 0.88. The one large peer-reviewed non-vendor result in this debate.arxiv.org/abs/2503.13657. ↗
- 147Dat Tran and Douwe Kiela, "Single-Agent LLMs Outperform Multi-Agent Systems on Multi-Hop Reasoning Under Equal Thinking Token Budgets," arXiv:2604.02460, April 2, 2026. Multi-hop question answering, not software engineering. Preprint.arxiv.org/abs/2604.02460 ↗
- 148Jiawei Xu, Arief Koesdwiady, Sisong Bei, et al., "Rethinking the Value of Multi-Agent Workflow: A Strong Single Agent Baseline," arXiv:2601.12307, January 18, 2026. Preprint.arxiv.org/abs/2601.12307 ↗
- 144Walden Yan, "Don't Build Multi-Agents," Cognition, June 12, 2025. Vendor-published; the author has since publicly softened the position.
- 145Harrison Chase, "How and When to Build Multi-Agent Systems," LangChain, June 16, 2025. Vendor-published.
- 32George Xu, Arjun Subramanian, and Nithilan Karthik, "AI Agent Pull Requests on GitHub: Frequency, Structure, and Merge Conflict Rates," arXiv:2607.04697, July 6, 2026. 33,596 agent-authored pull requests across 2,807 repositories. Conflict rates rest on 601 intra-agent and 115 cross-agent evaluable pairs; the authors describe the figures as a conservative lower bound measuring textual conflicts only. Preprint.arxiv.org/abs/2607.04697 ↗
- 139Anthropic, "Subagents in the SDK," Claude Agent SDK documentation, accessed August 28, 2026. Mechanism documented; task-success benefit asserted rather than measured.
- 158Oorja Majgaonkar, Zhiwei Fei, Xiang Li, Federica Sarro, and He Ye, "Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories," arXiv:2511.00197, October 31, 2025. Preprint.arxiv.org/abs/2511.00197 ↗