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

Hugging Face Daily Papers Papers

Summary

Terminal-RSI 提出通过递归轨迹重写(RSR)与继承批评器的策略精炼(RPR)交替进行,使终端代理从部分进展推进到严格验证,并在 Terminal-Bench 多项基准上取得显著成绩,发布了 Terminal-RSI-27B 模型。

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.
Original Article
View Cached Full Text

Cached at: 10/16/26, 03:01 AM

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

Source: https://huggingface.co/papers/2610.22192 Published on Oct 15

·

Submitted byhttps://huggingface.co/TberiusJunyao

Junyaoon Oct 16

Abstract

Terminal-RSI alternates recursive trajectory rewriting with critic-inheriting policy refinement to advance terminal agents from partial progress to strict verification.

Converting verifier outcomes into useful policy updates and partial progress into complete task resolution is crucial for terminal agents. We present Terminal-RSI, which alternatesRecursive Self-Rewrite(RSR) of verified trajectories with critic-inheritingRecursive 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. AWarm-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.

View arXiv pageView PDFProject pageAdd to collection

Get this paper in your agent:

hf papers read 2610\.22192

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2610.22192 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2610.22192 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2610.22192 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

ReTerm: Recovery Training for Self-Improving Terminal Agents

Hugging Face Daily Papers

ReTerm 提出一种通过从自身失败任务中学习错误恢复来自我改进的终端智能体训练方法,包含 ReTerm-10K 数据集与在线 RL 算法 ReTerm-GRPO。基于 Qwen3.5-9B 的 ReTerm-9B 在 Terminal-Bench 2.0 上达到 34.8% Pass@1,较基座提升 14.6 个百分点。

@AndyL5cc: Tencent Hunyuan is going all out this time! The latest open-source paper, Terminal-RSI, boosts a 27B model's terminal task success rate from 51.7% to 86.5%! The core idea is simple: AI summarizes its own successful experiences → retrains → keeps optimizing, in two loops! No need to just scale parameters—just...

X AI KOLs Timeline

Tencent Hunyuan's open-source paper Terminal-RSI proposes a recursive self-improvement framework, alternating between recursive self-rewriting and policy refinement training, raising a 27B terminal agent's task success rate on Terminal-Bench 2.1 from 51.7% to 86.52%.