Coding agents often solve SWE-bench tasks long before they stop
Original title: Termination Lag: Coding Agents Solve Early but Stop Late
After a correct patch, agents keep verifying and exploring, and in 1–8% of cases they undo the fix.
A study defines termination lag as the steps between an agent's first correct repository patch and the end of its run. Researchers recorded and tested every distinct patch from five models, two agent frameworks, and three SWE-bench datasets. On 38–82% of successful runs the first source-code edit was already correct, yet agents continued, mostly verifying work and exploring the repository. In a small share of runs that extra activity replaced a correct patch with an incorrect final solution.
- Post-solution steps are a median 35–37% of successful Qwen3-Coder runs.
- For Laguna-XS.2 the median is 54–60% on SWE-bench Verified and Multilingual.
- Continued work undoes an earlier correct patch in 1–8% of cases.
- The measurement covers five models, two frameworks, and three SWE-bench datasets.
- Products
- SWE-bench
- AI models
- Qwen3-CoderLaguna-XS.2
From the original article
1 min read at huggingface.coCoding 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.
By Musa Cim, Burak Topcu, Mahmut Taylan Kandemir · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.