mlsanityData to 24 Nov 2026

Terminal-RSI: Recursive Self-Improving Terminal Agents via Recursive Self-Rewrite and Policy-Refine

arXiv 2610.22192 ↗Submitted 15 Oct 2026cs.AIcited by 4

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

  1. 2017Proximal Policy Optimization Algorithmscited by 16,156
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  5. 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,164
  6. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 2,029
  7. 2016Concrete Problems in AI Safetycited by 1,771
  8. 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 914
  9. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
  10. 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 389
  11. 2025VAPO: Efficient and Reliable Reinforcement Learning for Advanced Reasoning Taskscited by 311
  12. 2025AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoningcited by 283
24 more
  1. 2020Implementation Matters in Deep Policy Gradients: A Case Study on PPO and TRPOcited by 194
  2. 2020What Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Studycited by 166
  3. 2025What's Behind PPO's Collapse in Long-CoT? Value Optimization Holds the Secretcited by 111
  4. 2025Prosperity before Collapse: How Far Can Off-Policy RL Reach with Stale Data on LLMs?cited by 61
  5. 2026On Data Engineering for Scaling LLM Terminal Capabilitiescited by 52
  6. 2026Tmax: A simple recipe for terminal agentscited by 47
  7. 2026Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learningcited by 46
  8. 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Gradingcited by 45
  9. 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environmentscited by 37
  10. 2025KL-Regularized Reinforcement Learning is Designed to Mode Collapsecited by 34
  11. 2025Let It Flow: Agentic Crafting on Rock and Roll, Building the ROME Model within an Open Agentic Learning Ecosystemcited by 32
  12. 2024Beyond Bradley-Terry Models: A General Preference Model for Language Model Alignmentcited by 31
  13. 2026Toward Scalable Terminal Task Synthesis via Skill Graphscited by 29
  14. 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 29
  15. 2026CLI-Gym: Scalable CLI Task Generation via Agentic Environment Inversioncited by 25
  16. 2026LLMs Can Learn to Reason Via Off-Policy RLcited by 18
  17. 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agentscited by 18
  18. 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editablecited by 18
  19. 2026Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environmentscited by 13
  20. 2026T1: Terminal Agent Reinforcement Learning for Long-Horizon Taskscited by 10
  21. 2026Stale but Stable: Staleness-Adaptive Trust Regions for Stabilizing Asynchronous Reinforcement Learningcited by 9
  22. 2026Scaling Trajectories for Complex Tasks through Recursive Self-Rewritecited by 3
  23. 2026Self-Supervised Scaling of Terminal Environments for Scientific Domainscited by 2
  24. 2026Long-Horizon-Terminal-Bench 2.0: Automating Diverse Task Construction and Measuring Sustained Agent Progresscited by 2

Built on by

Cited by year (2026 to 24 Nov)

Citing papers per year: 2026: 4.

4 papers.