Terminal agents learn from long tasks to handle complex real work
Scaling Agentic Data for Long-Horizon Terminal Intelligence
Computation and Language
Summary
Many AI agents today work well in short, simple tasks but struggle with longer, more complex projects that require planning and adjustment over time. The authors created a system called TerminalHorizon that simulates long, multi-step tasks based on real professional work, helping AI learn how to explore, check results, and improve their solutions over time. They used this system to train a large model, TerminalHorizon-27B, which showed better performance across different coding and reasoning challenges and was able to improve its work with feedback. This approach moves AI agents closer to truly autonomous professional problem-solving.
What this means in practice
- •For software development teams: Create AI assistants that can complete multi-step coding projects by iteratively improving code based on testing and feedback within simulated environments.
- •For product design teams: Develop autonomous systems that refine product plans through exploration and continual adjustments, simulating long-term task progression for complex projects.
- •For data annotation companies: Generate synthetic datasets with long-horizon task behaviors to better train AI models for sustained autonomous work across multiple industries.$Commercial implications: Synthetic datasets created by TerminalHorizon enable data providers to offer richer training data for AI development companies improving agent capabilities.
Authors
Shun Zou, Ziyu Ma, Yi Zou, Yong Wang, Lin Chen, Zehui Chen, Guanhua Chen, Xiangxiang Chu, Feng Zhao
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.