← Back to Paper Radar

Scaling Agentic Data for Long-Horizon Terminal Intelligence

Shun Zou, Ziyu Ma, Yi Zou, Yong Wang, Lin Chen, Zehui Chen, Guanhua Chen, Xiangxiang Chu, Feng Zhao
2026

Reading guide · Based on sections of the original paper

The authors present TerminalHorizon, an automated pipeline that builds long-horizon terminal tasks from real professional work. It uses independent execution to detect and restore work that environment construction had simplified away, then progressively expands accepted tasks under the same goal.

Why read this

Practitioners building SFT data for terminal or coding agents can use it to judge whether a small set of long, distilled trajectories can match much larger synthetic datasets.

What the authors found

  • On Terminal-Bench 2.0, the authors report 55.8% mean pass@1 for Qwen3.5-27B fine-tuned on 2,852 trajectories. Terminal-Universe-27B, which uses the same base model and the Terminus-2 harness, scores 52.8% with about 32k trajectories. On Terminal-Bench 2.1 (89 tasks, three runs), the fine-tuned model reaches 60.67% against 46.82% for the base model. The trajectories were distilled from DeepSeek-V4-Pro. B.2 Data Efficiency
  • Gains carry over to agentic benchmarks outside the terminal setting. AutomationBench pass rate rises from 5.5 to 17.2, and VitaBench cross-domain rises from 20.5 to 31.8. Gains on τ²-bench Airline and Retail are smaller, at 5.5 and 2.6 points. Math reasoning is preserved or slightly improved. All comparisons are against the base model only. 4.2 Main Results
  • In four RSI-Exam research tasks, each with a 12-hour budget, the fine-tuned model's hidden-set scores beat the base model's by 7.71 to 27.03 normalized points. Appendix C Additional Long-Horizon Task Applications

Main limitation

The RSI evidence comes from a single run per model per case. In three of the four cases, the base model stopped voluntarily early, after 0.20 to 1.28 hours. The comparison therefore largely reflects persistence and stopping behavior, not matched effort. Appendix C Additional Long-Horizon Task Applications

Where to start

2.2 Challenge-Guided Long-Horizon Synthesis · This section describes how the planner, the deep-research agent, and the independent challenge–reconstruction loop detect and restore pre-completed work. These mechanics determine whether the pipeline can be reproduced.

Abstract

Terminal agents are moving beyond local operations toward completing real-world professional tasks. Short trajectories can demonstrate commands and tool calls, but they do not fully show how agents accumulate evidence through exploration, use it to inform judgments, continually adjust strategies based on feedback, and turn intermediate results into final deliverables. High-quality long-horizon trajectories capture these agentic behavioral patterns and their connections within a single problem-solving process, providing richer experience for sustained autonomous work. However, environment synthesis may complete or simplify the key work underlying these patterns in advance and thus remove the need for exploration, implementation, and verification that the agent was meant to perform. To address this, we introduce TerminalHorizon, a fully automated data synthesis engine for long-horizon terminal agents. Starting from real-world professional work, it uses independent execution to identify key work omitted during construction and uses the resulting evidence to guide environment reconstruction. To extend these patterns across stages, it progressively expands tasks under the same goal, introducing new requirements that build on prior results and call for further exploration and improvement. Using this engine, we construct 1.5K task environments and perform supervised fine-tuning of Qwen3.5-27B on the resulting dataset to obtain TerminalHorizon-27B. We achieve substantial performance gains on all 12 benchmarks spanning coding-agent tasks, agentic tasks in real-world production settings, and general reasoning. Multiple RSI case studies, each with a 12-hour research budget, further demonstrate the model's ability to continue experimenting beyond an initial solution, improve its methods based on feedback, and retain effective improvements in its final deliverables.

Generated automatically from paper sections on 2026-11-28.