ReTerm: Recovery Training for Self-Improving Terminal Agents
TL;DR - ReTerm trains terminal agents to recover from command and implementation failures encountered during long-running coding tasks. Its 9B model improves Terminal-Bench 2.0 Pass@1 by 14.6 percentage points over the Qwen3.5-9B base model.
- ReTerm-10K provides recovery demonstrations for supervised fine-tuning cold starts.
- ReTerm-GRPO forks from an agent’s failure states, generating multiple independent recovery attempts and learning from task completion outcomes.
- ReTerm-9B achieves 34.8% Pass@1 on Terminal-Bench 2.0.
- The method yields higher recovery rates across diverse error categories than standard GRPO training; code, data, and model weights are publicly released.