mlsanityData to 24 Nov 2026

Termination Lag: Coding Agents Solve Early but Stop Late

arXiv 2611.14960 ↗Submitted 11 Nov 2026cs.AI cs.CLcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

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.

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 25 of its 28 references that are in the map. Submitted 11 Nov 2026.

Builds on

25 of 28 references.

Closest ancestors · 15

Same direction, newest first

  1. 2026TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents15 Oct
  2. 2026Executable Prefix Values for Locating Agent Failures13 Oct
  3. 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks4 Aug
  4. 2026Prompt-Induced Waste in Coding Agents: Reasoning, Effort, Harness Design, and End-to-End Cost2 Aug
  5. 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages24 Jul
  6. 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories10 Jul
  7. 2026AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices1 May
  8. 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Code25 Mar
  9. 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agents9 Jan
  10. 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories31 Oct
  11. 2025More with Less: An Empirical Study of Turn-Control Strategies for Efficient Coding Agents19 Oct
  12. 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
3 more
  1. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  3. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges14 Jan

Other references · 10

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  3. 2024Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMscited by 600
  4. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
  5. 2024When to Stop? Towards Efficient Code Generation in LLMs with Excess Token Preventioncited by 22
  6. 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 21
  7. 2026EarlyEval: Cheaper Agent Evaluation via Early Outcome Predictioncited by 5
  8. 2026Towards Green AI: Decoding the Energy of LLM Inference in Software Developmentcited by 3
  9. 2026Babbling Suppression: Making LLMs Greener One Token at a Timecited by 2
  10. 2026Monitor Accuracy Isn't the Answer: A Decision-Value Framework for Evaluating AI Agent Restart Monitorscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Done, But Still Working: Anytime Evaluation of When Coding Agents Should Stop
  2. 2026PAUSE: Search-Free Steering of Coding Agents Before Their First Source-Code Edit
  3. 2026Coding Agents Don't Know When to Act
  4. 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure
  5. 2026SWE-Shift: Evaluating Coding Agents in Evolving Workspaces
  6. 2026Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models
  7. 2026Latent Programming Horizons in Coding Agents
  8. 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks