Termination Lag: Coding Agents Solve Early but Stop Late
Musa Cim, Burak Topcu, Mahmut Taylan Kandemir
Key points
From the paper's conclusion- Our analysis reveals that 38--82% of successful runs achieve a correct solution on their initial source-code edit.
Abstract
Coding agents can solve a task well before they stop working on it. We characterize \emph{termination lag}--the number of steps between an agent's first correct patch and the end of its run--across five models, two agent frameworks, and three SWE-bench datasets by recording and testing every distinct repository patch generated during execution. Our analysis reveals that 38--82% of successful runs achieve a correct solution on their initial source-code edit. However, agents continue to expend substantial effort after correct patches, with post-solution steps accounting for a median of 35--37% for Qwen3-Coder and 54--60% for Laguna-XS.2 in successful runs on SWE-bench Verified and Multilingual. Agents spend most of these additional steps verifying their work and exploring the repository. In a small fraction of cases (1--8%), this continued activity leads agents to undo their earlier correct patch, leaving the final solution incorrect.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Continue or Restart? The Limits of Early Failure Prediction in Coding AgentsarXiv · 2026
- Done, But Still Working: Anytime Evaluation of When Coding Agents Should StoparXiv · 2026
- SWE-Residual: Evaluating Starting-State Robustness of Coding AgentsarXiv · 2026
- Knowing When to Stop: The Evidence-Action Gap in Coding AgentsarXiv · 2026
- From Watching to Steering: Enabling Human-Coding Agent Collaboration through Execution TracesarXiv · 2026
- StopLoss: Teaching Agents to Predict Failure and Stop EarlyarXiv · 2026