mlsanityData to 14 Oct 2026

Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks

arXiv 2608.03222 ↗First posted 4 Aug 2026cs.SE cs.AIcited by 5

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

Abstract (arXiv)

Software engineering (SWE) agents resolve repository-level issues through long trajectories that grow increasingly expensive as context accumulates. Failed runs tend to be longer and exhibit redundant exploration or looping, suggesting that some failures may be detectable before completion. Early termination, however, risks interrupting trajectories that would otherwise succeed; conversely, an unsuccessful trajectory may still contain useful repository edits. We present FailFast-RestartSmart, a two-stage controller for a single active trajectory. FailFast is a lightweight 0.6B monitor trained with terminal and dense fail-to-pass supervision to predict failure from observable prefixes without policy logits or hidden states. Upon an alarm, RestartSmart launches a fresh same-policy rollout without prior prompt history and offers the interrupted repository diff as an optional overlay that the agent may inspect, apply, or discard. On SWE-bench Verified, a monitor trained solely on Qwen3.6-27B trajectories transfers to three other policies, including a closed-API model, and saves 14.6%-20.4% of execution tokens at a target 5% false-positive rate; on Qwen3.6-27B, its 20.4% saving exceeds the 12.5% achieved by our per-step AgentStop adaptation. At a target 25% false-positive rate, RestartSmart raises Qwen3.6-27B resolution from 66.6% to 71.8%, whereas cold restart reaches only 66.8%. Together, these results support early termination with sequential same-policy recovery.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 34 of its 43 references that are in the map. First posted on arXiv 4 Aug 2026.

Builds on

34 of 43 references.

Closest ancestors · 18

Same direction, newest first

  1. 2026When Evidence is Sparse: Weakly Supervised Early Failure Alerting in Dialogs and LLM-Agent Trajectories3 Jun
  2. 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling16 Apr
  3. 2026AgentSZZ: Teaching the LLM Agent to Play Detective with Bug-Inducing Commits3 Apr
  4. 2026Wink: Recovering from Misbehaviors in Coding Agents19 Feb
  5. 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories2 Feb
  6. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan
  7. 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agents9 Jan
  8. 2026Agentic Rubrics as Contextual Verifiers for SWE Agents7 Jan
  9. 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
  10. 2025Process-Centric Analysis of Agentic Software Systems2 Dec
  11. 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories31 Oct
  12. 2025When Agents go Astray: Course-Correcting SWE Agents with PRMs2 Sep
6 more
  1. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
  2. 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
  3. 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study10 Jun
  4. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr
  5. 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
  6. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct

Other references · 16

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2020Scaling Laws for Neural Language Modelscited by 6,586
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2025RM-R1: Reward Modeling as Reasoningcited by 154
  5. 2024Fast Best-of-N Decoding via Speculative Rejectioncited by 112
  6. 2024Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoningcited by 108
  7. 2025AgentPRM: Process Reward Models for LLM Agents via Step-Wise Promise and Progresscited by 77
  8. 2025SE-Agent: Self-Evolution Trajectory Optimization in Multi-Step Reasoning with LLM-Based Agentscited by 69
  9. 2026AgentProcessBench: Diagnosing Step-Level Process Quality in Tool-Using Agentscited by 31
  10. 2025Know What You Don't Know: Uncertainty Calibration of Process Reward Modelscited by 21
  11. 2025QLASS: Boosting Language Agent Inference via Q-Guided Stepwise Searchcited by 20
  12. 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 15
4 more
  1. 2025Generator-Assistant Stepwise Rollback Framework for Large Language Model Agentcited by 14
  2. 2026BAGEN: Are LLM Agents Budget-Aware?cited by 13
  3. 2025Better Process Supervision with Bi-directional Rewarding Signalscited by 12
  4. 2026Atropos: Improving Cost-Benefit Trade-off of LLM-based Agents under Self-Consistency with Early Termination and Model Hotswapcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents
  2. 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories
  3. 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Code
  4. 2026TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectories
  5. 2026AgentRewind: Recoverable Execution for Long-Horizon LLM Agents
  6. 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems
  7. 2026ToolMisuseBench: An Offline Deterministic Benchmark for Tool Misuse and Recovery in Agentic Systems
  8. 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents