Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Coding agents often continue working after their own tests pass. Does this additional work improve the patch, and how much could be saved by stopping earlier? We study these questions through anytime evaluation: replaying recorded runs, scoring intermediate patches with hidden tests, and measuring the cost incurred at each step. For policies that only stop a run or select an earlier patch, this allows paired comparisons without generating new trajectories, provided replay preserves the relevant states. Across about 6,000 runs of eight open models in two scaffolds on SWE-bench Verified, we find substantial differences in the value of continued work. The hindsight saving available at passing self-tests ranges from under 1% to 57%, depending on the model and scaffold. A rule that stops after the same patch passes twice saves 23% in a preregistered replication, but the preregistered quality test does not establish non-inferiority. We explain these differences by measuring how often a rule fires, how often the patch changes afterwards, and whether those changes repair or break it. Fine-tuning agents to imitate the rule saves 30% over six seeds, while quality preservation remains uncertain. Our results help identify both the opportunities and the risks of early stopping.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 23 of its 35 references that are in the map. Submitted 17 Nov 2026, announced 18 Nov 2026.
Builds on
23 of 35 references.
Closest ancestors · 8
Same direction, newest first
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories10 Jul
- 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agents7 Jul
- 2026TraceLab: Characterizing Coding Agent Workloads for LLM Serving29 Jun
- 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agents9 Jan
- 2025More with Less: An Empirical Study of Turn-Control Strategies for Efficient Coding Agents19 Oct
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 15
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2024Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMscited by 600
- 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 345
- 2024Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluationscited by 203
- 2025The Danger of Overthinking: Examining the Reasoning-Action Dilemma in Agentic Taskscited by 166
- 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 73
- 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 60
- 2026How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Taskscited by 48
- 2026CodeTracer: Towards Traceable Agent Statescited by 20
- 2026Token Reduction Is Not Cost Reductioncited by 9
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixescited by 6
- 2026Memo-SQL: Structured Decomposition and Experience-Driven Self-Correction for Training-Free NL2SQLcited by 5
3 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Termination Lag: Coding Agents Solve Early but Stop Late
- 2026SWE-Shift: Evaluating Coding Agents in Evolving Workspaces
- 2026Coding Agents Don't Know When to Act
- 2026PAUSE: Search-Free Steering of Coding Agents Before Their First Source-Code Edit
- 2026Looping Is Not Reliability: State-Bound Evidence and Typed Revision Contracts for Agentic Code Repair
- 2026Knowing When to Stop: The Evidence-Action Gap in Coding Agents
- 2026Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict
- 2026Re-executing Coding-Agent Evaluations: Unchanged Decisions and Unresolved Policy Risk