ReTerm: Release of a self-recovery training method for terminal agents
Start here
To address the problem that terminal agents struggle to recover from errors such as command errors and implementation defects during long-horizon execution, ultimately leading to task failure, the authors build a custom data pipeline and produce the ReTerm-10K dataset, providing recovery demonstrations for SFT cold start, and propose the ReTerm method, which trains self-improving terminal agents by learning recovery from their own failed tasks. Its 9B version achieves 34.8% Pass@1 on Terminal-Bench 2.0, an improvement of 14.6 percentage points over the base model Qwen3.5-9B.
Generated by AI from reports · Updated 2026-10-14
Storyline
- · 1 reports· Attention26
ReTerm: Release of a self-recovery training method for terminal agentsThis event
- · 1 reports· Attention34ReTerm uses its own failures to drive Code Agent self-improvement
Progress timeline
- Hugging Face Daily PapersReTerm: Recovery Training for Self-Improving Terminal Agents
ReTerm is a self-improving terminal agent trained by learning to recover from its own failed tasks. Its 9B version achieves 34.8% Pass@1 on Terminal-Bench 2.0, a 14.6 percentage point improvement over the base model Qwen3.5-9B. To address the problem that terminal agents struggle to recover from errors such as command mistakes and implementation defects during long executions, ultimately leading to task failure, the authors build a custom data pipeline and produce the ReTerm-10K dataset, providing recovery demonstrations for SFT cold start. Their proposed ReTerm-GRPO online reinforcement learning algorithm branches multiple independent self-recovery attempts from the agent's own failed states and learns based on whether these attempts complete the task. Compared with standard GRPO training, this method achieves higher recovery rates across multiple error categories. Code, data, and models have been released on GitHub.