Termination Lag: Coding Agents Solve Early but Stop Late
Abstract
Coding agents can solve a task well before they stop working on it. We characterize 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.
Create a lesson
Related papers
MetaSkill: Reusable Problem-Solving Methods for Adaptive Skill Orchestration in LLM Agents
Shared title terminology · Tianxing Wang, Mingming Zhao, Shuai Huang et al.
ESM-Bench: A Benchmark for Evaluating Whether AI Agents Understand Earth System Model Physics and Code
Shared title terminology · Koutian Wu, Yuxuan Cao, Gengchen Mai et al.
Vision-as-a-Tool: Visual Harness for Multimodal Agentic Coding
Shared title terminology · Haolin Yang, Wenshan Wu, Jin Jiang et al.
Contain, Conform, Compare (Extended Version): A Red-Teamed Evaluation Kit for Small Coding Agents and the Full Record of Its Experiments
Shared title terminology · Nguyen Minh Thang
RSI-PDEbench: A Benchmark for Self-Improving Agents in PDE Solving
Shared title terminology · Binghang Lu, Lang Cao, Changhong Mou et al.
Agent Benchmarks Stop Ranking Before They Run Out of Tasks
Shared title terminology · Zihan Dong, Qishi Zhan, Minxuan Hu