Terminal-RSI: Recursive Self-Improving Terminal Agents via Recursive Self-Rewrite and Policy-Refine
Not on the map. Why?
Abstract (arXiv)
Converting verifier outcomes into useful policy updates and partial progress into complete task resolution is crucial for terminal agents. We present Terminal-RSI, which alternates Recursive Self-Rewrite (RSR) of verified trajectories with critic-inheriting Recursive Policy-Refine (RPR). We formulate Turn-Boundary Skip-Observation GAE (TB-GAE) to retain token-specific baselines while applying decay across interaction turns. Family Dense Reward (FDR) calibrates semantic progress across task families; Success-Prioritized Reward (SPR) separates strict success from bounded partial credit. A Warm-up Critic Model, recursive critic handoff, and stage-specific learning rates coordinate the two refinement phases. The five-stage sequence from Qwen3.8-27B base model through RSR-1, RPR-1, RSR-2, and RPR-2 yields Terminal-RSI-27B: 19.84% on Terminal-Bench 4.0, 86.52% on Terminal-Bench 2.1, 16.95% on Terminal-Bench 3.0, and 79.00% on Terminal-Bench Hard. On LHTB, process reward rises from 0.21 to 0.37 and strict completion from 0/46 to 5/46; SWR100 success doubles from 3.00% to 6.00%. By recursively coupling verified trajectory rewriting with critic-inheriting policy refinement, each retained stage consolidates discovered behaviors and progressively advances the agent from partial local repairs to strict terminal verification.
Key facts. Cited by 4 papers in the map (data through 24 Nov 2026). Builds on 36 of its 50 references that are in the map. Submitted 15 Oct 2026.
Builds on
36 of 50 references.
References · 36
- 2017Proximal Policy Optimization Algorithmscited by 16,156
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,164
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 2,029
- 2016Concrete Problems in AI Safetycited by 1,771
- 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 914
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 389
- 2025VAPO: Efficient and Reliable Reinforcement Learning for Advanced Reasoning Taskscited by 311
- 2025AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoningcited by 283
24 more
- 2020Implementation Matters in Deep Policy Gradients: A Case Study on PPO and TRPOcited by 194
- 2020What Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Studycited by 166
- 2025What's Behind PPO's Collapse in Long-CoT? Value Optimization Holds the Secretcited by 111
- 2025Prosperity before Collapse: How Far Can Off-Policy RL Reach with Stale Data on LLMs?cited by 61
- 2026On Data Engineering for Scaling LLM Terminal Capabilitiescited by 52
- 2026Tmax: A simple recipe for terminal agentscited by 47
- 2026Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learningcited by 46
- 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Gradingcited by 45
- 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environmentscited by 37
- 2025KL-Regularized Reinforcement Learning is Designed to Mode Collapsecited by 34
- 2025Let It Flow: Agentic Crafting on Rock and Roll, Building the ROME Model within an Open Agentic Learning Ecosystemcited by 32
- 2024Beyond Bradley-Terry Models: A General Preference Model for Language Model Alignmentcited by 31
- 2026Toward Scalable Terminal Task Synthesis via Skill Graphscited by 29
- 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 29
- 2026CLI-Gym: Scalable CLI Task Generation via Agentic Environment Inversioncited by 25
- 2026LLMs Can Learn to Reason Via Off-Policy RLcited by 18
- 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agentscited by 18
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editablecited by 18
- 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environmentscited by 13
- 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Taskscited by 10
- 2026Stale but Stable: Staleness-Adaptive Trust Regions for Stabilizing Asynchronous Reinforcement Learningcited by 9
- 2026Scaling Trajectories for Complex Tasks through Recursive Self-Rewritecited by 3
- 2026Self-Supervised Scaling of Terminal Environments for Scientific Domainscited by 2
- 2026Long-Horizon-Terminal-Bench 2.0: Automating Diverse Task Construction and Measuring Sustained Agent Progresscited by 2
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Auditing the Product, Not the Recursion: The Evaluation Evidence Behind Recursive Self-Improvement Claimscited by 3
- 2026Harness Self-Evolution for Long-Horizon Terminal Agentscited by 0
- 2026Recursa: Toward Recursively Self-Improving Foundation Model Systemscited by 0
- 2026Agent Self-Improvement with Frozen Weights: The Added Value and Limits of Failure Tracescited by 0
- 2026Agent Self-Improvement with Frozen Weights: The Added Value and Limits of Failure Traces8 Nov 2026
- 2026Recursa: Toward Recursively Self-Improving Foundation Model Systems2 Nov 2026
- 2026Auditing the Product, Not the Recursion: The Evaluation Evidence Behind Recursive Self-Improvement Claims20 Oct 2026
- 2026Harness Self-Evolution for Long-Horizon Terminal Agents20 Oct 2026