Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks
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
- 2026When Evidence is Sparse: Weakly Supervised Early Failure Alerting in Dialogs and LLM-Agent Trajectories3 Jun
- 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling16 Apr
- 2026AgentSZZ: Teaching the LLM Agent to Play Detective with Bug-Inducing Commits3 Apr
- 2026Wink: Recovering from Misbehaviors in Coding Agents19 Feb
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories2 Feb
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan
- 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agents9 Jan
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agents7 Jan
- 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
- 2025Process-Centric Analysis of Agentic Software Systems2 Dec
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories31 Oct
- 2025When Agents go Astray: Course-Correcting SWE Agents with PRMs2 Sep
6 more
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study10 Jun
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct
Other references · 16
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2025RM-R1: Reward Modeling as Reasoningcited by 154
- 2024Fast Best-of-N Decoding via Speculative Rejectioncited by 112
- 2024Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoningcited by 108
- 2025AgentPRM: Process Reward Models for LLM Agents via Step-Wise Promise and Progresscited by 77
- 2025SE-Agent: Self-Evolution Trajectory Optimization in Multi-Step Reasoning with LLM-Based Agentscited by 69
- 2026AgentProcessBench: Diagnosing Step-Level Process Quality in Tool-Using Agentscited by 31
- 2025Know What You Don't Know: Uncertainty Calibration of Process Reward Modelscited by 21
- 2025QLASS: Boosting Language Agent Inference via Q-Guided Stepwise Searchcited by 20
- 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 15
4 more
- 2025Generator-Assistant Stepwise Rollback Framework for Large Language Model Agentcited by 14
- 2026BAGEN: Are LLM Agents Budget-Aware?cited by 13
- 2025Better Process Supervision with Bi-directional Rewarding Signalscited by 12
- 2026Atropos: Improving Cost-Benefit Trade-off of LLM-based Agents under Self-Consistency with Early Termination and Model Hotswapcited by 3
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026DENSE: Distilling Agent Trajectories into Evidence-Grounded Shortcut Trees for Self-Refinementcited by 0
- 2026EvoSteer: Online Self-Evolving Graph Orchestration via Reference-Anchored Credit Assignmentcited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
- 2026Disentangling Task Difficulty from Run-Level Failure in Agent Failure Predictioncited by 0
- 2026Executable Prefix Values for Locating Agent Failurescited by 0
- 2026Executable Prefix Values for Locating Agent Failures13 Oct 2026
- 2026Disentangling Task Difficulty from Run-Level Failure in Agent Failure Prediction4 Oct 2026
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agents30 Sep 2026
- 2026EvoSteer: Online Self-Evolving Graph Orchestration via Reference-Anchored Credit Assignment29 Sep 2026
- 2026DENSE: Distilling Agent Trajectories into Evidence-Grounded Shortcut Trees for Self-Refinement18 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026FC-SWE: Failure-Conditioned RL for Long-Horizon Software Engineering Agents
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories
- 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Code
- 2026TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectories
- 2026AgentRewind: Recoverable Execution for Long-Horizon LLM Agents
- 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems
- 2026ToolMisuseBench: An Offline Deterministic Benchmark for Tool Misuse and Recovery in Agentic Systems
- 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents