Scaling Agentic Data for Long-Horizon Terminal Intelligence

Shun Zou, Xiangxiang Chu, Feng Zhao and colleagues (USTC, Alibaba AMAP) present TerminalHorizon, an automated engine that synthesizes long-horizon terminal tasks from real professional work, and fine-tune Qwen3.5-27B on its trajectories.
Ask this paper
Problem. Synthesized terminal tasks often state their solution patterns up front, which removes the exploration, implementation and verification the agent is meant to practice.
Engine. Independent execution finds key work omitted during task construction and guides environment reconstruction; tasks are then expanded in stages under the same goal with requirements that build on earlier results.
Data. 1.5K task environments and 2,852 trajectories used for SFT.
Results. TerminalHorizon-27B scores 55.0%, 55.8% and 60.67% on Terminal-Bench 1.0, 2.0 and 2.1, gains of 8.7, 14.2 and 13.85 points, and beats Terminal-Universe-27B by 3.0 points with under a tenth of the trajectories.
Transfer. AutomationBench pass rate rises 11.7 points and partial score 23.3; VitaBench rises 11.3 points.
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.