aiqbench analysis
ReTerm introduces a novel self-improvement mechanism where terminal agents learn to recover from execution errors by generating and evaluating multiple recovery attempts via an online RL algorithm. Built on Qwen3.5-9B, this approach significantly boosts Pass@1 scores on Terminal-Bench 2.0 by leveraging failure states as training data rather than discarding them. The release of the ReTerm-10K dataset and associated code provides a valuable resource for advancing robustness in autonomous coding agents.
ReTerm: Recovery Training for Self-Improving Terminal Agents
arXiv:2610.18484v1 Announce Type: new Abstract: Terminal agents have shown strong abilities in complex coding tasks. However, they often struggle to recover from errors during long-running execution (e.g., command errors, faulty implementations), eventually leading to task failures. To this end, we present ReTerm, a self-improving terminal agent trained by learning how to recover from its own failed terminal tasks. To support its training, we construct a customized data pipeline and produce ReTerm-10K, a high-quality dataset that provides effective recovery demonstrations for SFT cold start. Furthermore, we propose ReTerm-GRPO, an online RL algorithm that forks from the agent's own failure states to generate multiple independent self-recovery attempts. By learning from whether these attempts successfully complete the task, the agent self-improves through its own recovery experience. Built on Qwen3.5-9B, our ReTerm-9B achieves 34.8% Pass@1 on Terminal-Bench 2.0, improving over the base model by 14.6 points. Further analysis shows that our method achieves consistently higher recovery rates across diverse error categories compared with standard GRPO training. All code, data and model are released at https://github.com/twothsnd/ReTerm.
Abstract:Terminal agents have shown strong abilities in complex coding tasks. However, they often struggle to recover from errors during long-running execution (e.g., command errors, faulty implementations), eventually leading to task failures. To this end, we present ReTerm, a self-improving terminal agent trained by learning how to recover from its own failed terminal tasks. To support its training, we construct a customized data pipeline and produce ReTerm-10K, a high-quality dataset that provides effective recovery demonstrations for SFT cold start. Furthermore, we propose ReTerm-GRPO, an online RL algorithm that forks from the agent's own failure states to generate multiple independent self-recovery attempts. By learning from whether these attempts successfully complete the task, the agent self-improves through its own recovery experience. Built on Qwen3.5-9B, our ReTerm-9B achieves 34.8% Pass@1 on Terminal-Bench 2.0, improving over the base model by 14.6 points. Further analysis shows that our method achieves consistently higher recovery rates across diverse error categories compared with standard GRPO training. All code, data and model are released at this https URL.
Artificial Intelligence (cs.AI); Machine Learning (cs.LG); Software Engineering (cs.SE)
arXiv:2610.18484 [cs.AI]
(or arXiv:2610.18484v1 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2610.18484 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 268 words
Related coverage

Digital States 2026: AI Moves From Experiment to Infrastructure
govtech.com · Sep 24, 2026
ShuttleArena: Interpretable Self-Play in Physics-Based Badminton
arXiv · Aug 27, 2026
EvoCUA-1.5: Online Reinforcement Learning for Multi-turn Computer-Use Agents
arXiv · Sep 7, 2026

[AINews] The Future of Latent Space
Latent Space · Sep 25, 2026