AgentRewind: Recoverable Execution for Long-Horizon LLM Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Many real-world tasks require LLM agents to interact with their environments over long execution horizons. Errors that occur early in execution may propagate through both the agent context and environment state, and their effects may be difficult to reverse through subsequent actions. Existing methods mainly seek to reduce such errors through plan refinement and safety checks but provide little support after errors occur. To enable recovery during long-horizon execution, we present AgentRewind, a runtime recovery framework that records aligned checkpoints of the agent context and controlled environment, allowing agents to return to an earlier state and resume execution with information from previous attempts. We also construct MettleBench, a benchmark for evaluating task completion and partial progress on long-horizon engineering assignments containing a series of related requirements. Experiments across tasks, multiple models, execution strategies, and agent harnesses show that AgentRewind improves task success rate and average checklist progress over the compared baselines.
Key facts. Cited by 7 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 25 of its 46 references that are in the map. First posted on arXiv 14 Aug 2026.
Builds on
25 of 46 references.
Closest ancestors · 5
Same direction, newest first
- 2026DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollback21 May
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories2 Feb
- 2025Where LLM Agents Fail and How They can Learn From Failures29 Sep
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging26 Aug
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul
Other references · 20
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
- 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,081
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
- 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 327
- 2024TheAgentCompany: Benchmarking LLM Agents on Consequential Real World Taskscited by 326
8 more
- 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agentscited by 223
- 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 185
- 2024Web Agents with World Models: Learning and Leveraging Environment Dynamics in Web Navigationcited by 126
- 2026ProgramBench: Can Language Models Rebuild Programs From Scratch?cited by 59
- 2025EXP-Bench: Can AI Conduct AI Research Experiments?cited by 37
- 2026Odysseys: Benchmarking Web Agents on Realistic Long Horizon Taskscited by 21
- 2025Generator-Assistant Stepwise Rollback Framework for Large Language Model Agentcited by 14
- 2026WindowsWorld: A Process-Centric Benchmark of Autonomous GUI Agents in Professional Cross-Application Environmentscited by 9
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026Safe to Resume? Breaking Execution Continuity of Agent Execution via Rollbackcited by 2
- 2026Rollback the World, Keep the Reflection: Rollback-Induced Reflection for Long-Horizon LLM Agentscited by 2
- 2026REVISE: Validity-Guided Recovery for Online Revisions in Agent Workflowscited by 0
- 2026Where Reliability Lives: Experimental Localisation of Behavioural Properties in an Agent Systemcited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0
- 2026Janus: Evidence-Before-Effect Sagas and Offline-Verifiable Provenance for Agentic LLMscited by 0
- 2026Failure Recovery via Belief Updates and World Modeling for Long-Horizon Agentscited by 0
- 2026Failure Recovery via Belief Updates and World Modeling for Long-Horizon Agents13 Oct 2026
- 2026Janus: Evidence-Before-Effect Sagas and Offline-Verifiable Provenance for Agentic LLMs29 Sep 2026
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026Rollback the World, Keep the Reflection: Rollback-Induced Reflection for Long-Horizon LLM Agents16 Sep 2026
- 2026Where Reliability Lives: Experimental Localisation of Behavioural Properties in an Agent System2 Sep 2026
- 2026REVISE: Validity-Guided Recovery for Online Revisions in Agent Workflows1 Sep 2026
- 2026Safe to Resume? Breaking Execution Continuity of Agent Execution via Rollback29 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026SkillRevise: Improving LLM-Authored Agent Skills via Trace-Conditioned Skill Revision
- 2026ARIA: Runtime Inspection and Amendment for Multi-Agent Systems
- 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents
- 2026ORAgentBench: Can LLM Agents Solve Challenging Operations Research Tasks End to End?
- 2026LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Tasks
- 2026When Agents Do Not Stop: Uncovering Infinite Agentic Loops in LLM Agents
- 2026Beyond Task Completion: Revealing Corrupt Success in LLM Agents through Procedure-Aware Evaluation
- 2026AgentAbstain: Do LLM Agents Know When Not to Act?