Scaling Agentic Data for Long-Horizon Terminal Intelligence

arXiv cs.CL Papers

Summary

The paper introduces TerminalHorizon, an automated data-synthesis engine that generates long-horizon terminal agent trajectories by reconstructing environments around real-world professional tasks, then fine-tunes Qwen3.5-27B to obtain TerminalHorizon-27B, achieving gains across 12 coding, agentic, and reasoning benchmarks.

arXiv:2610.13166v1 Announce Type: new 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.
Original Article
View Cached Full Text

Cached at: 10/12/26, 06:52 AM

# Scaling Agentic Data for Long-Horizon Terminal Intelligence
Source: [https://arxiv.org/html/2610.13166](https://arxiv.org/html/2610.13166)
Shun Zou1,2∗Ziyu Ma2∗Yi Zou1,2∗Yong Wang2†‡Lin Chen1Zehui Chen1Guanhua Chen3Xiangxiang Chu2Feng Zhao1‡1University of Science and Technology of China2AMAP, Alibaba Group3Southern University of Science and Technology[Porject Page](https://zs1314.github.io/TerminalHorizon/)[![[Uncaptioned image]](https://arxiv.org/html/2610.13166v1/figures/huggingface-logo.png)Data & Model](https://huggingface.co/collections/shunzou05/terminalhorizon)

###### 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 theseagentic behavioral patternsand 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 introduceTerminalHorizon, 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 obtainTerminalHorizon\-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\.

11footnotetext:Equal contribution\. Work done during internship at AMAP, Alibaba Group\.22footnotetext:Project lead\.‡Corresponding authors\.![Refer to caption](https://arxiv.org/html/2610.13166v1/teaser.png)Figure 1:Motivation for TerminalHorizon\. Short trajectories can teach agents to perform terminal operations, but not to autonomously complete complex, long\-horizon tasks\. Our long\-horizon trajectories connect agentic behavioral patterns, such as exploration, strategy revision, and verification, into a complete autonomous problem\-solving process\.## 1Introduction

LLM agents are moving beyond answering questions in dialogue toward autonomous work in digital environments\([Xu et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib38);[Koh et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib39);[Dong et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib18);[Zheng et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib40)\)\. The terminal provides a general interface for this work by bringing code, data, tools, and execution feedback into a shared workspace\([Merrill et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib15)\), enabling agents to tackle complex tasks in software development, system administration, and scientific computing\([Anthropic, 2025](https://arxiv.org/html/2610.13166#bib.bib17);[OpenAI, 2025](https://arxiv.org/html/2610.13166#bib.bib16)\)\. As their scope expands from individual operations to long\-horizon tasks\([Dong et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib18);[Ma et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib1);[Qwen Team, 2026](https://arxiv.org/html/2610.13166#bib.bib19);[Ye et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib21)\), agents need to coordinate interdependent stages and adapt to execution feedback to complete these tasks reliably\([Deng et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib20);[Li et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib22);[Desai et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib23);[Yang et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib45)\)\. Developing these capabilities requires rich interaction experience during training, but high\-quality terminal training data remains scarce\.

Recent work on terminal environment synthesis constructs executable and verifiable tasks at scale through skill composition, task generation grounded in technical evidence, and recursive expansion, allowing agents to gain interaction experience through execution and feedback\([Wu et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib14);[Cheng et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib8);[Li et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib35);[Wu et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib2);[Fan et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib4)\)\. These methods expand task coverage, but their trajectories remain relatively short on average as shown in Figure[4](https://arxiv.org/html/2610.13166#S3.F4), offering limited experience in sustained problem solving\. Short trajectories can capture useful agentic behavioral patterns over a few steps, but the same patterns can extend across multiple stages or even an entire trajectory in long\-horizon tasks\. For example, agents may repeatedly revise their plans as evidence accumulates, build on intermediate results through a sequence of dependent steps, and revisit earlier work when later verification reveals problems that require further diagnosis and correction\. This motivates our focus on high\-quality long\-horizon trajectories that capture these longer agentic behavioral patterns and show how they work together to complete a task \(Section[3](https://arxiv.org/html/2610.13166#S3)\)\.

However, synthesizing these long\-horizon trajectories presents two challenges\. \(i\) Complex tasks do not necessarily lead to the intended agentic behavioral patterns\. A task may require agents to investigate a problem, develop a solution, and verify it, yet supplied materials may already solve parts of the problem, allowing agents to skip exploration or implementation\. These gaps can prevent the intended patterns from fully developing in the collected trajectories\. \(ii\) Even when these patterns appear, long\-horizon training data should also capture how they unfold over longer problem\-solving processes and connect across stages\. More difficult tasks or more interaction turns do not necessarily extend these patterns or strengthen their connections\. The challenge is to identify and implement new requirements that go beyond what the original solution can achieve, while keeping the same goal\. The added work needs to build on earlier judgments, actions, and results, so that these patterns continue to develop as the task progresses\.

To this end, we introduceTerminalHorizon, a fully automated data synthesis engine with two stages: Challenge\-Guided Long\-Horizon Synthesis and Progressive Horizon Expansion\. The first stage converts real\-world professional problems into executable tasks and uses an agent uninvolved in their construction to solve them\. Analysis of the resulting trajectories checks whether the intended agentic behavioral patterns occur and identifies where task construction has simplified or already completed the analysis, implementation, or verification expected of the agent\. These findings guide environment reconstruction so that the agent must perform this work during execution\. The second stage expands the original task under the same goal, introducing requirements that call for further analysis, implementation, and verification\. It makes this added work depend on earlier results and execution feedback, allowing the intended patterns to extend across stages\. Together, these stages support the generation of long\-horizon trajectories in which the intended agentic behavioral patterns emerge and extend across stages toward task completion\.

Using TerminalHorizon, we construct 1,535 task environments and collect 2,852 training trajectories to formTerminalHorizon\-3K\. The trajectories average 52\.8 interaction turns, substantially longer than those from the methods compared in Figure[4](https://arxiv.org/html/2610.13166#S3.F4)\. Supervised Fine\-tuning Qwen3\.5\-27B on these 2,852 trajectories yieldsTerminalHorizon\-27B, which improves over the base model by 14\.2% and 13\.85% on Terminal\-Bench 2\.0 and 2\.1, respectively\. These gains extend to real\-world productivity tasks, with improvements of 11\.7% in Pass Rate and 23\.3% in Partial score on AutomationBench, and 11\.3% on VitaBench\. Furthermore, case studies on multiple long\-horizon recursive self\-improvement \(RSI\) tasks, each with a 12\-hour research budget, show how the model continues experimenting beyond an initial solution, refines its methods based on feedback, and incorporates these improvements into final deliverables\. Our main contributions are as follows:

- •We propose a perspective on high\-quality long\-horizon terminal data centered on agentic patterns and their connections across stages, emphasizing the substantive work that environments must preserve to elicit them\.
- •We introduceTerminalHorizon, a fully automated data synthesis engine that combines challenge\-guided construction with progressive expansion to buildTerminalHorizon\-3K, comprising 1,535 task environments and 2,852 training trajectories\.
- •Supervised Fine\-tuning on only about 3K trajectories improves performance across 12 benchmarks spanning coding, real\-world productivity, and general reasoning, while multiple 12\-hour RSI case studies demonstrate continued experimentation, improvement, and final delivery\.

## 2Method

TerminalHorizon builds executable environments from real\-world professional problems to elicit agentic behavioral patterns \(Section[3](https://arxiv.org/html/2610.13166#S3)\)\. In the first stage \(Figure[2](https://arxiv.org/html/2610.13166#S2.F2)\), independent execution reveals work simplified or completed in construction and guides reconstruction\. The second stage extends accepted tasks under the same goal, making added work depend on prior results and feedback\.

### 2\.1Task Formulation and Design Objective

Task formulation\.Both stages construct and refine executable terminal task packages, each comprising five components\([Merrill et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib15)\):

T=\(I,E,S,V,M\),𝒫⁡\(T\)=\(I,E\)\.T=\(I,E,S,V,M\),\\qquad\\mathcal\{P\}\(T\)=\(I,E\)\.\(1\)The public instructionIIspecifies the goal and constraints, while the executable environmentEEprovides the initial state, tools, and execution mechanisms\. The reference solutionSS, private verifierVV, and execution configurationMMsupport task construction and evaluation\. During execution, the agent has access only to𝒫⁡\(T\)\\mathcal\{P\}\(T\)and gathers information through interactions with the environment\.

Long\-horizon design objective\.The work we aim to preserve connects exploration, diagnosis, construction, verification, and strategic coordination, rather than only demonstrating individual terminal operations\. We describe these processes using 27 agentic behavioral patterns across five families \(Section[3](https://arxiv.org/html/2610.13166#S3)\)\. For example, relationship tracing follows connections between objects to inform decisions\. The taxonomy is shown in Figure[3d](https://arxiv.org/html/2610.13166#S2.F3), with full definitions in Appendix[E](https://arxiv.org/html/2610.13166#A5)\. Environment design must therefore retain evidence to explore, analysis and implementation left to complete, and feedback that helps agents revise earlier judgments\.

![Refer to caption](https://arxiv.org/html/2610.13166v1/pipline.png)Figure 2:Overview of TerminalHorizon\. Challenge\-guided synthesis refines task environments through independent execution to preserve core problem\-solving work\. Progressive horizon expansion deepens tasks along the same goal to support richer agentic behavioral patterns\.
### 2\.2Challenge\-Guided Long\-Horizon Synthesis

An inner loop uses independent execution to guide task reconstruction, while an outer loop uses the resulting tasks and review evidence to plan subsequent research batches\.

Autonomous Batch Planning\.Each batch begins by identifying professional work that would broaden coverage of agentic behavioral patterns\. The Planner Agent uses the goals, solution approaches, and feedback in existing tasks, together with prior research and review records, to select the next research directions\. For batchbb, let𝒟b\\mathcal\{D\}\_\{b\}be the accepted task set,ℱb\\mathcal\{F\}\_\{b\}the accumulated records, andnbn\_\{b\}the number of available research slots\. The Planner produces research briefs:

𝒬b=Plan⁡\(𝒟b,ℱb,nb\),𝒬b=\{qb,i\}i=1nb\.\\mathcal\{Q\}\_\{b\}=\\operatorname\{Plan\}\(\\mathcal\{D\}\_\{b\},\\mathcal\{F\}\_\{b\};n\_\{b\}\),\\qquad\\mathcal\{Q\}\_\{b\}=\\\{q\_\{b,i\}\\\}\_\{i=1\}^\{n\_\{b\}\}\.\(2\)Each briefqb,iq\_\{b,i\}specifies a scope of work, requirements not yet covered by existing tasks, and real\-world sources to investigate, providing the starting point for research\.

Evidence\-Grounded Deep Research\.A research brief sets the direction, but task construction requires a concrete account of the work involved\. Followingqb,iq\_\{b,i\}, the Deep Research Agent investigates documentation, code repositories, issue reports, and professional materials to establish real\-world needs, technical constraints, and evidence needed to assess completion\. The research identifies what the agent needs to discover, which problems require further analysis, implementation, or debugging, and how one result supports subsequent work\. These findings form a task seedzb,iz\_\{b,i\}, containing a draft public instruction and supporting evidence, which is passed to environment construction\.

Joint Environment Construction\.The task seed specifies the intended work, which construction must support without completing it in advance\. Fromzb,iz\_\{b,i\}, the Construction Agent synthesizes a concrete instance with a controlled initial state and verification conditions, specifying the available materials and tools, the work left to the agent, and the completion criteria\. It then jointly constructs the instruction, environment, reference solution, verifier, and execution configuration around these requirements, producing a candidate packageTT\. Evaluation must follow the public task requirements:

𝒞sem​\(V\)⊆Sem⁡\(I,𝒪pub​\(E\)\)\.\\mathcal\{C\}\_\{\\mathrm\{sem\}\}\(V\)\\subseteq\\operatorname\{Sem\}\\\!\\left\(I,\\mathcal\{O\}\_\{\\mathrm\{pub\}\}\(E\)\\right\)\.\(3\)The left\-hand side denotes the completion requirements checked by the verifier, and the right\-hand side those supported byIIand discoverable evidence𝒪pub​\(E\)\\mathcal\{O\}\_\{\\mathrm\{pub\}\}\(E\)\. Test data may remain private, but scoring cannot introduce requirements the agent cannot discover\. The reference solution gives one feasible approach, while the verifier accepts other implementations meeting the public requirements\.

Independent Challenge\.An executable package does not establish that the intended work remains necessary during task solving\. We therefore ask an Independent Challenger, uninvolved in construction, to attempt the candidateTrT\_\{r\}at roundrr\. Its policyπB\\pi\_\{B\}accesses only𝒫⁡\(Tr\)\\mathcal\{P\}\(T\_\{r\}\), without research records, the blueprint, the reference solution, or private tests\.

At each step, policyπ=πB\\pi=\\pi\_\{B\}selects an action given the public instruction and historyht=\(o0,a0,…,ot\)h\_\{t\}=\(o\_\{0\},a\_\{0\},\\ldots,o\_\{t\}\), and the environment dynamicsPEP\_\{E\}update the state and return an observation:

at∼π\(⋅∣I,ht\),\(st\+1,ot\+1\)∼PE\(⋅∣st,at\)\.a\_\{t\}\\sim\\pi\(\\cdot\\mid I,h\_\{t\}\),\\qquad\(s\_\{t\+1\},o\_\{t\+1\}\)\\sim P\_\{E\}\(\\cdot\\mid s\_\{t\},a\_\{t\}\)\.\(4\)The resulting trajectoryτr=\(o0,a0,…,aHr−1,oHr\)\\tau\_\{r\}=\(o\_\{0\},a\_\{0\},\\ldots,a\_\{H\_\{r\}\-1\},o\_\{H\_\{r\}\}\)recordsHrH\_\{r\}interactions, and the verifier evaluates the final state and artifacts to computeρr=Vr​\(sHr\)\\rho\_\{r\}=V\_\{r\}\(s\_\{H\_\{r\}\}\)\. The complete package, execution trace, and scoring evidence then support a diagnosis:

τr∼Rollout⁡\(πB;𝒫⁡\(Tr\)\),dr=𝒜syn​\(Tr,τr,ρr\)\.\\tau\_\{r\}\\sim\\operatorname\{Rollout\}\(\\pi\_\{B\};\\mathcal\{P\}\(T\_\{r\}\)\),\\qquad d\_\{r\}=\\mathcal\{A\}\_\{\\mathrm\{syn\}\}\(T\_\{r\},\\tau\_\{r\},\\rho\_\{r\}\)\.\(5\)Here,𝒜syn\\mathcal\{A\}\_\{\\mathrm\{syn\}\}is the synthesis review, anddrd\_\{r\}records runtime defects, information leakage, scoring inconsistencies, and whether the intended work is preserved, providing evidence for reconstruction\.

Horizon Gap Analysis and Reconstruction\.The trajectory reveals what the agent actually did, but reconstruction also requires identifying which gaps arise from task construction\. Horizon Gap Analysis compares the work specified in the seed with the trajectory and traces omitted work to initial materials, object relationships, or tool behavior\. For example, if a task asks the agent to implement a core function that the environment already provides, the remaining work may reduce to changing a single constant\. Reconstruction restores the need to implement and debug the function while retaining the public specifications needed to do so\. The review distinguishes efficient solutions that perform the required work from work already completed during construction, targeting revisions at the latter\. Using the seedz=zb,iz=z\_\{b,i\}, trajectory, and diagnosis, the Construction Agent revises the task:

Tr\+1=Refine⁡\(Tr,z,τr,dr\)\.T\_\{r\+1\}=\\operatorname\{Refine\}\(T\_\{r\};z,\\tau\_\{r\},d\_\{r\}\)\.\(6\)Refine\\operatorname\{Refine\}preserves the goal while revising the initial state, object relationships, implementation requirements, or tool feedback and updating the instruction, reference solution, and verifier accordingly\. The revised task returns to independent execution to check whether the restored requirements enter the actual solving process, closing the task\-level challenge–reconstruction loop\.

To inform subsequent planning, tasks that pass review and runtime checks form𝒜b\\mathcal\{A\}\_\{b\}, while research, execution, review, and reconstruction records provide new feedbackΔ​ℱb\\Delta\\mathcal\{F\}\_\{b\}:

𝒟b\+1=𝒟b∪𝒜b,ℱb\+1=ℱb∪Δ​ℱb\.\\mathcal\{D\}\_\{b\+1\}=\\mathcal\{D\}\_\{b\}\\cup\\mathcal\{A\}\_\{b\},\\qquad\\mathcal\{F\}\_\{b\+1\}=\\mathcal\{F\}\_\{b\}\\cup\\Delta\\mathcal\{F\}\_\{b\}\.\(7\)The Planner uses the updated collection and records in the next batch to identify repeated work and decide which behavioral patterns to target next\. Gaps found during execution thus inform both the current task’s reconstruction and future research briefs, closing the batch\-level outer loop\.

### 2\.3Progressive Horizon Expansion

A solvable task is not the endpoint of our environment construction, but a starting point for exploring the professional problem more deeply\. We extend accepted tasks with new requirements under the same goal, linking the added work to earlier judgments, actions, and results so that agentic behavioral patterns can continue across stages\.

Progressive Content Expansion\.The Evolution Agent examines an accepted parent taskT\(g\)T^\{\(g\)\}for valuable extensions under the same goal and forms a proposalδ\(g\)\\delta^\{\(g\)\}\. It then checks whether the parent’s solution can directly satisfy the new requirements, identifying the further analysis, implementation, or verification needed\. We consider four content\-expansion directions, includingbroader roles, using existing artifacts or states to support related responsibilities, anddeeper mechanisms, making previously simplified relationships, dependencies, or uncertainties part of the work\.Richer evidenceadds records, observations, and professional materials that inform judgments and cross\-source analysis, whilemethod upgradesrequire substantial extensions or redesign of the original approach\.

Implementing Interaction Dependencies\.The Evolution Agent selects from three interaction designs to connect the added requirements to evidence, artifacts, and states encountered or produced during the task, so that later work depends on earlier progress\. To supportexploration and judgment, it makes later decisions depend on evidence gathered through public queries, probes, and observations\. Inaction and feedback, observable tool or system effects link earlier operations to subsequent diagnosis, correction, and verification\. Withinstance variation and adaptation, objects or states vary across runs under a fixed public specification, requiring the agent to inspect the current instance, adapt its actions, and verify the results\. These designs are selected to serve the extension, not to impose a fixed sequence, and are implemented with the content proposal as a new candidate task:

T~\(g\+1\)=Expand⁡\(T\(g\);δ\(g\)\)\.\\widetilde\{T\}^\{\(g\+1\)\}=\\operatorname\{Expand\}\\\!\\left\(T^\{\(g\)\};\\delta^\{\(g\)\}\\right\)\.\(8\)Expand\\operatorname\{Expand\}produces a separate candidateT~\(g\+1\)\\widetilde\{T\}^\{\(g\+1\)\}whose public specification combines the original and added requirements\. The environment, reference solution, and verifier are updated accordingly, and new scoring conditions continue to follow the public completion contract in equation[3](https://arxiv.org/html/2610.13166#S2.E3)\.

An accepted candidate becomesT\(g\+1\)T^\{\(g\+1\)\}, the parent task for the next expansion\.

![Refer to caption](https://arxiv.org/html/2610.13166v1/data.png)Figure 3:Comprehensive analysis of task environments and trajectories in TerminalHorizon\.

## 3Analysis of Synthesized Data

The following analysis illustrates the training experience provided by TerminalHorizon: our model can learn not only how to execute terminal commands but, more importantly, how to organize sustained work toward a goal, observe feedback, revise strategies, and deliver final results\.

Trajectory Collection\.We use TerminalHorizon to automatically generate 1,535 task environment packages and collect two trajectories per task using DeepSeek\-V4\-Pro\-0813 as the teacher model and Terminus2 as the execution harness\. We then apply the three filtering criteria described in Appendix[F](https://arxiv.org/html/2610.13166#A6), retaining 2,852 trajectories to form TerminalHorizon\-3K\. We conduct rigorous benchmark decontamination before training \(Appendix[G](https://arxiv.org/html/2610.13166#A7)\)\.

Broad coverage of real\-world domains\.As shown in Figure[3a](https://arxiv.org/html/2610.13166#S2.F3), TerminalHorizon\-3K brings real\-world work in areas such as chips, physics, and astronomy into a unified terminal interaction format, covering 25 professional domains\. This diversity is enabled by the Planner Agent’s scheduling and coordination throughout the automated construction process\. See Appendix[D](https://arxiv.org/html/2610.13166#A4)for details\.

Figure 4:Interaction turns per trajectory: mean, P50, and P90\.Sustained interaction\.For a fair comparison, we randomly sample 300 tasks from each of several open\-source terminal\-task synthesis methods and run experiments under the same teacher protocol and settings\. Our trajectories have a mean interaction length of 52\.8 turns and a 90th percentile of 98 turns, substantially exceeding those of other methods \(Figure[4](https://arxiv.org/html/2610.13166#S3.F4)\)\. We also measure the longest continuous action chain linked by terminal feedback to examine how long feedback remains part of the interaction\. Figure[3c](https://arxiv.org/html/2610.13166#S2.F3)shows a median chain length of 25 turns\. These results show that longer execution includes sustained sequences of actions and environment feedback, demonstrating how to connect observations with subsequent actions across multiple turns\.

Agentic behavioral patterns beyond individual commands\.Beyond interaction length, we examine how these actions organize problem solving\. As shown in Figure[3d](https://arxiv.org/html/2610.13166#S2.F3), we group 27 behavioral patterns into five categories: information exploration and judgment, diagnosis and error correction, construction and work progress, verification and assurance, and strategy and execution coordination\. These patterns describe how agents organize multi\-step actions into a problem\-solving process\. For example, subproblem decomposition and integration breaks a task into subproblems and combines their results to achieve a shared goal\. Detailed pattern definitions are provided in Appendix[E](https://arxiv.org/html/2610.13166#A5)\. Our trajectories contain an average of 8\.6 core patterns, providing diverse behavioral experience spanning exploration, construction, error correction, and verification\.

Table 1:Main results on Terminal\-Bench 1\.0 and 2\.0\.Boldmarks the best score in each benchmark\. \- denotes unavailable scores, and†\\daggerdenotes results from official model cards\.ModelBase ModelTraj\.ScaffoldTB 1\.0TB 2\.0Terminal task synthesis methodsCLI\-Universe\-8B\([Hua et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib10)\)Qwen3\-8B6kTerminus219\.110\.9TerminalTraj\-14B\([Wu et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib2)\)Qwen2\.5\-Coder\-14B50\.7kTerminus228\.919\.1TermiGen\-32B\([Zhu et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib5)\)Qwen2\.5\-Coder\-32B3\.3kBashAgent–19\.3LiberCoder\-32B\([Lin et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib6)\)Qwen3\-32B48\.3kOpenHands38\.919\.5SkillSynth\-14B\([Fan et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib4)\)Qwen3\-14B10\.7kTerminus222\.919\.9Nemotron\-Terminal\-14B\([Pi et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib3)\)Qwen3\-14B490\.5kTerminus2–20\.2TerminalTraj\-32B\([Wu et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib2)\)Qwen2\.5\-Coder\-32B50\.7kTerminus235\.322\.0CLI\-Universe\-14B\([Hua et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib10)\)Qwen3\-14B6kTerminus227\.523\.0Terminal\-Lego\-32B\([Yang et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib7)\)Qwen3\-32B15\.4kTerminus2–24\.3OpenThinker\-Agent\-32B\([Raoof et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib9)\)Qwen3\-32B100kTerminus2–26\.2Nemotron\-Terminal\-32B\([Pi et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib3)\)Qwen3\-32B490\.5kTerminus2–27\.4SkillSynth\-32B\([Fan et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib4)\)Qwen3\-32B10\.7kTerminus233\.829\.6LiberCoder\-235B\([Lin et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib6)\)Qwen3\-235B\-A22B48\.3kOpenHands46\.131\.0Terminal\-World\-32B\([Cheng et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib8)\)Qwen3\-32B5\.7kTerminus2–31\.5Meta\-Task\-32B\([Pan et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib11)\)Qwen3\-32B3\.2kTerminus2–31\.8CLI\-Universe\-32B\([Hua et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib10)\)Qwen3\-32B6kTerminus238\.833\.4TMax\-27B\([Ivison et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib12)\)Qwen3\.6\-27B16\.5kVanillux2Agent–42\.7CalibForge\-35B\-A3B\([Meng et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib13)\)Qwen3\.5\-35B\-A3B5\.4kCalibForge\-Eval–47\.6RST\-27B\([Li et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib35)\)Qwen3\.5\-27B327\.2kTerminus2–49\.4Terminal\-Universe\-27B\([Wu et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib14)\)Qwen3\.5\-27B32\.0kTerminus2–52\.8OursQwen3\.5\-27B\(base\)––Terminus246\.341\.6†TerminalHorizon\-27BQwen3\.5\-27B3kTerminus255\.055\.8
## 4Experiments

### 4\.1Experimental Setup

Evaluation Benchmarks\.We evaluate the model on 12 benchmarks spanning terminal task solving, real\-world productivity, and general reasoning\.\(1\) Coding:Terminal\-Bench 1\.0, 2\.0, and 2\.1\([Merrill et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib15)\)assess terminal task\-solving performance\.\(2\) Agentic:AutomationBench\([Shepard and Salimans, 2026](https://arxiv.org/html/2610.13166#bib.bib24)\), the Airline and Retail domains ofτ2\\tau^\{2\}\-bench\([Barrès et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib25)\), and the English Cross\-domain main set of VitaBench\([He et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib26)\)test whether experience learned from long\-horizon trajectories transfers to real\-world productivity tasks\.\(3\) General reasoning:MATH\-500\([Lightman et al\., 2023](https://arxiv.org/html/2610.13166#bib.bib27)\), GSM8K\([Cobbe et al\., 2021](https://arxiv.org/html/2610.13166#bib.bib28)\), AIME 2024\([Zhang and Math\-AI, 2024](https://arxiv.org/html/2610.13166#bib.bib30)\), AIME 2025\([Zhang and Math\-AI, 2025](https://arxiv.org/html/2610.13166#bib.bib31)\), and KOR\-Bench \(Cipher\)\([Ma et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib29)\)measure how long\-horizon interaction training affects general reasoning ability\. Detailed evaluation settings are provided in Appendix[A\.2](https://arxiv.org/html/2610.13166#A1.SS2)\.

Implementation Details\.We apply SFT to Qwen3\.5\-27B on TerminalHorizon\-3K to obtain TerminalHorizon\-27B\. The maximum sequence length is262,144262\{,\}144tokens\. We use fused AdamW with a learning rate of1×10−51\\times 10^\{\-5\}, weight decay of0\.10\.1, and\(β1,β2\)=\(0\.9,0\.95\)\(\\beta\_\{1\},\\beta\_\{2\}\)=\(0\.9,0\.95\)\. The learning rate follows a cosine schedule after a5%5\\%warmup, and the gradient clipping threshold is1\.01\.0\. Training runs for33epochs in BF16 with DeepSpeed ZeRO\-3\. Unless otherwise noted, we use144144H20\-141GB GPUs across1818nodes\. The full training configuration is provided in Appendix[A\.1](https://arxiv.org/html/2610.13166#A1.SS1)\.

### 4\.2Main Results

Tables[1](https://arxiv.org/html/2610.13166#S3.T1)and[4\.2](https://arxiv.org/html/2610.13166#S4.SS2)show that TerminalHorizon\-27B outperforms its Qwen3\.5\-27B base model on all 12 benchmarks across three categories\. We discuss these gains from three perspectives\.

Stronger performance with fewer data\.TerminalHorizon\-27B achieves 55\.0%, 55\.8%, and 60\.67% on Terminal\-Bench 1\.0, 2\.0, and 2\.1, respectively, improving over the base model by 8\.7, 14\.2, and 13\.85%\. As shown in Table[1](https://arxiv.org/html/2610.13166#S3.T1), it also outperforms Terminal\-Universe\-27B by 3\.0% using the same base model and harness but fewer than one\-tenth as many training trajectories\. This result demonstrates the data efficiency of long\-horizon experience and highlights the high information density of our trajectories, which are constructed around sustained problem solving\.

Table 2:Performance across coding, agentic, and general reasoning benchmarks\.Transfer to real\-world productivity tasks\.Training on our high\-quality long\-horizon trajectories also improves performance on real\-world enterprise automation, customer service, and service tasks spanning multiple scenarios, with gains across all four agentic benchmarks\. On AutomationBench, Pass Rate and Partial scores improve by 11\.7% and 23\.3%, respectively\. VitaBench improves by 11\.3%, whileτ2\\tau^\{2\}\-bench Airline and Retail improve by 5\.5% and 2\.6%, respectively\. These results show that our training benefits extend beyond terminal operations, enabling the model to reliably handle complex environmental feedback throughout real\-world long\-horizon tasks and apply this capability consistently across tasks\.

General reasoning is preserved alongside agentic gains\.Performance on the five general reasoning benchmarks is preserved and shows further gains\. MATH\-500 reaches 98\.9%, while AIME 2024 and AIME 2025 reach 96\.7% and 93\.3%, improving over the base model by 3\.4% and 6\.6%, respectively\. GSM8K and KOR\-Bench also improve by 1\.0% and 1\.1%\. Thus, long\-horizon training improves agentic task performance while preserving and strengthening general reasoning\.

### 4\.3Analysis and Ablation Studies

Figure 5:TB 2\.1 performance across model sizes\.
![Refer to caption](https://arxiv.org/html/2610.13166v1/tb21-training-scaling-preview.png)

Figure 6:Training\-data scaling on TB 2\.1\.

Table 3:Interaction statistics and task success with two teacher models\.Effect of Teacher Model\.We randomly sample 100 of the 1,535 tasks to compare interaction characteristics between two teacher models, GLM\-5\.2 and DeepSeek\-V4\-Pro\-0813\. As shown in Table[3](https://arxiv.org/html/2610.13166#S4.T3), both teachers generate long trajectories on average, indicating that our tasks can provide long\-horizon problem\-solving experience across teachers\. DeepSeek\-V4\-Pro produces longer feedback chains on average and has a lower rate of exact action repetition\. These more sustained interactions are also associated with a higher task completion rate, supporting its selection as our teacher for collecting long\-horizon trajectories\.

Performance across Model Sizes\.To examine whether the training benefits of TerminalHorizon extend across model sizes, we also evaluate its effectiveness on Qwen3\.5\-35B\-A3B and Qwen3\.5\-122B\-A10B\. As shown in Figure[6](https://arxiv.org/html/2610.13166#S4.F6), all three configurations achieve double\-digit percentage\-point gains over their base models, improving by 13\.85%, 13\.11%, and 14\.98%\. These results show that the agentic behavioral patterns captured in our long\-horizon trajectories support improvements across models, so their training value is not limited to a single base model\.

Training Data Scaling\.As shown in Figure[6](https://arxiv.org/html/2610.13166#S4.F6), scaling from 1000 to approximately 3k training trajectories raises performance on Terminal\-Bench 2\.1 to 60\.67%\. This demonstrates that data generated by TerminalHorizon can effectively scale agent capabilities\. We also observe no sign of performance saturation, suggesting that further expanding high\-quality long\-horizon training trajectories may yield additional gains\.

### 4\.4Long\-Horizon Task Applications

![Refer to caption](https://arxiv.org/html/2610.13166v1/RSI-task.png)Figure 7:Long\-horizon optimization on RSI\-Exam\. More cases in Appendix[C](https://arxiv.org/html/2610.13166#A3)\.Autonomous long\-horizon tasks require agents to continue seeking improvements after finding an initial solution, revise their methods based on feedback, and carry effective progress through to final delivery\. To evaluate this system\-level capability, we compare TerminalHorizon\-27B with Qwen3\.5\-27B on several RSI\-Exam cases under the same 12\-hour autonomous research budget\. Taking multi\-view point cloud fusion as an example, Figure[7](https://arxiv.org/html/2610.13166#S4.F7)shows both models’ optimization processes and final results\. The base model obtains a high score on a self\-designed proxy metric and voluntarily stops after just 12\.1 minutes, judging its results to be excellent and ready for submission\. However, agreement with a single reference view does not ensure reconstruction of the complete scene: a method can perform well on this proxy while missing surfaces visible only in other views\.

In contrast, our model continues experimenting beyond the initial solution and revisits both its fusion method and the measurements used to assess progress\. It inspects the contributions of different views and introduces a leave\-one\-view\-out diagnostic, which exposes insufficient coverage and guides subsequent revisions\. It then improves cross\-view alignment, performs global refinement, and uses confidence\-based point selection to improve the reconstruction\. These changes reflect substantive revisions informed by experimental evidence, rather than simply repeating the same operations for longer\. Our model retains the resulting improvements in its final submission, whose hidden evaluation score exceeds the base model’s by 27\.03%\. This comparison illustrates the practical value of experience with agentic behavioral patterns: connecting exploration, diagnosis, method revision, and verification enables agents to keep seeking improvements and turn verified progress into final deliverables\. Additional cases are provided in Appendix[C](https://arxiv.org/html/2610.13166#A3)\.

## 5Related Work

Long\-Horizon Agents\.Long\-horizon agents must retain information, track progress, and coordinate actions across stages\([Dong et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib18);[Ren et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib37);[Sun et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib44)\)\. Harnesses support execution through context, memory, and state management, helping maintain continuity during extended interactions\([Ye et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib21);[Ma et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib1);[Choi et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib43)\)\. We complement this support by studying how training develops sustained problem\-solving ability, particularly the agentic behavioral patterns that connect exploration, implementation, and verification around a shared goal\.

Terminal Environment Synthesis\.Environment synthesis scales interaction experience through programmatic construction and evolution\([Song et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib32);[Wang et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib33);[Dong et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib34)\)\. Terminal\-task synthesis uses skill composition, technical evidence, and real\-world needs\([Wu et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib14);[Cheng et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib8);[Wu et al\., 2026b](https://arxiv.org/html/2610.13166#bib.bib2);[Fan et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib4);[Shi et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib36);[Hua et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib10);[Pi et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib3)\), while recursive reference\-solution expansion increases complexity\([Li et al\., 2026a](https://arxiv.org/html/2610.13166#bib.bib35)\)\. Beyond coverage and complexity, we emphasize these patterns’ less\-studied cross\-stage connections: findings inform decisions, feedback guides strategy revision, and intermediate results support delivery\.

## 6Conclusion

We introduced TerminalHorizon, a fully automated engine for synthesizing long\-horizon trajectories that connect agentic behavioral patterns\. Through challenge\-guided reconstruction and progressive expansion, it links exploration, strategy revision, and verification around a shared goal\. Training on these trajectories improves performance on all 12 benchmarks, while RSI\-Exam cases show sustained experimentation, feedback\-driven improvement, and progress retained through final delivery\. These findings highlight the training value of long\-horizon behavioral experience in advancing agents from local terminal operations toward sustained autonomous work\.

### AI use statement

In this work, we used generative AI for automated task environment construction and solution trajectory generation as part of our research methodology, and for language polishing and the generation of selected illustration assets during manuscript preparation\. The procedures and validation mechanisms for task environment construction and trajectory generation are described in the Method section and the appendix\. We did not use generative AI to formulate research questions, develop the core research ideas, or design the research methodology\. We manually reviewed all AI\-assisted content\. For language polishing, we checked that the revised wording preserved the intended meaning\. For generated illustration assets, we checked that they accurately conveyed the relevant concepts without introducing misleading information\. We take full responsibility for the final content of this work, including text, claims, and illustration assets produced with the aid of generative AI\.

### Ethics statement

This work studies long\-horizon task learning for terminal agents through synthetic task environments, generated solution trajectories, and benchmark evaluations, examining how sustained interaction experience affects agent capabilities\. Within the scope of this study, we have identified no significant ethical concerns requiring specific disclosure\. The procedures for task construction, data filtering, and experimental evaluation are detailed in the main text and the appendix\.

### Reproducibility statement

To support reproducibility, we describe the task formulation and two\-stage synthesis procedure in Section[2](https://arxiv.org/html/2610.13166#S2), and trajectory collection and experimental settings in Section[3](https://arxiv.org/html/2610.13166#S3)and Section[4](https://arxiv.org/html/2610.13166#S4)\. Appendix[A\.1](https://arxiv.org/html/2610.13166#A1.SS1)provides the training configuration, while Appendix[A\.2](https://arxiv.org/html/2610.13166#A1.SS2)specifies the benchmark protocols, including agent frameworks, decoding settings, interaction limits, and scoring procedures\. Trajectory filtering and benchmark decontamination are described in Appendices[F](https://arxiv.org/html/2610.13166#A6)and[G](https://arxiv.org/html/2610.13166#A7), with the corresponding prompt templates in Appendix[J](https://arxiv.org/html/2610.13166#A10)\. For the long\-horizon RSI case studies, Appendix[C](https://arxiv.org/html/2610.13166#A3)details the research setup, evaluation procedure, and evidence underlying the case analyses\.

## References

- AnthropicClaude Code\.Note:GitHub repositoryAccessed: 2026\-09\-03External Links:[Link](https://github.com/anthropics/claude-code)Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Barrèset al\.\(2025\)V\. Barrès, H\. Dong, S\. Ray, X\. Si, and K\. Narasimhanτ\\tau2\{\}^\{\\mbox\{2\}\}\-bench: evaluating conversational agents in a dual\-control environment\.CoRRabs/2506\.07982\.External Links:[Link](https://doi.org/10.48550/arXiv.2506.07982),[Document](https://dx.doi.org/10.48550/ARXIV.2506.07982),2506\.07982Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px5.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Chenget al\.\(2026\)Z\. Cheng, H\. Wang, Z\. Liu, X\. Wang, X\. Zhu, Y\. Guo, W\. Lin, J\. Z\. Pan, and Y\. WangTerminal\-world: scaling terminal\-agent environments via agent skills\.CoRRabs/2605\.20876\.External Links:[Link](https://doi.org/10.48550/arXiv.2605.20876),[Document](https://dx.doi.org/10.48550/ARXIV.2605.20876),2605\.20876Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p2.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.16.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Choiet al\.\(2026\)J\. Choi, H\. Kim, H\. Ong, Y\. Yoon, M\. Jang, D\. Kim, and J\. KimReAcTree: hierarchical LLM agent trees with control flow for long\-horizon task planning\.InProceedings of the 25th International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2026, Paphos, Cyprus, May 25\-29, 2026,V\. Mascardi, J\. Thangarajah, C\. Amato, and L\. A\. Dennis \(Eds\.\),pp\. 319–328\.External Links:[Link](https://dl.acm.org/doi/10.65109/UCGT7089),[Document](https://dx.doi.org/10.65109/UCGT7089)Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p1.1)\.
- Cobbeet al\.\(2021\)K\. Cobbe, V\. Kosaraju, M\. Bavarian, M\. Chen, H\. Jun, L\. Kaiser, M\. Plappert, J\. Tworek, J\. Hilton, R\. Nakano, C\. Hesse, and J\. SchulmanTraining verifiers to solve math word problems\.CoRRabs/2110\.14168\.External Links:[Link](https://arxiv.org/abs/2110.14168),2110\.14168Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px6.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Denget al\.\(2025\)X\. Deng, J\. Da, E\. Pan, Y\. Y\. He, C\. Ide, K\. Garg, N\. Lauffer, A\. Park, N\. Pasari, C\. Rane, K\. Sampath, M\. Krishnan, S\. Kundurthy, S\. Hendryx, Z\. Wang, V\. Bharadwaj, J\. Holm, R\. Aluri, C\. B\. C\. Zhang, N\. Jacobson, B\. Liu, and B\. KenstlerSWE\-bench pro: can AI agents solve long\-horizon software engineering tasks?\.CoRRabs/2509\.16941\.External Links:[Link](https://doi.org/10.48550/arXiv.2509.16941),[Document](https://dx.doi.org/10.48550/ARXIV.2509.16941),2509\.16941Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Desaiet al\.\(2026\)R\. Desai, J\. Hu, J\. Cabezas, N\. Harsola, P\. Shukla, R\. B\. Chaim, A\. E\. Assadi, O\. M\. Kamath, F\. Faldu, P\. Hebbar, J\. Sun, Y\. Li, P\. Srinivasan, I\. Gupta, C\. Settles, D\. Wang, D\. Chen, P\. Raja, A\. Liu, M\. Suppa, N\. Sasikumar, L\. Kong, E\. Quintanilla, X\. Li, I\. Bercovich, and S\. DillmannSWE\-marathon: can agents autonomously complete ultra\-long\-horizon software work?\.CoRRabs/2606\.07682\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.07682),[Document](https://dx.doi.org/10.48550/ARXIV.2606.07682),2606\.07682Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Donget al\.\(2026a\)G\. Dong, J\. Lu, J\. Huang, W\. Zhong, L\. Liu, S\. Huang, Z\. Li, Y\. Zhao, X\. Song, X\. Li, J\. Jin, Y\. Zhu, H\. Wang, F\. Lei, Q\. Luo, M\. Chen, Z\. Chen, J\. Feng, J\. Wen, and Z\. DouAgent\-world: scaling real\-world environment synthesis for evolving general agent intelligence\.CoRRabs/2604\.18292\.External Links:[Link](https://doi.org/10.48550/arXiv.2604.18292),[Document](https://dx.doi.org/10.48550/ARXIV.2604.18292),2604\.18292Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Donget al\.\(2026b\)G\. Dong, X\. Song, Y\. Hu, J\. Jin, C\. Zhang, Y\. Chen, X\. Li, H\. Yuan, X\. Yang, T\. Wen, J\. Tan, H\. Qian, S\. Huang, J\. Lu, Z\. Li, W\. Zhong, Y\. Zhu, T\. Chua, Z\. Dou, and J\. WenTowards long\-horizon agents: a survey\.Preprints\.External Links:[Document](https://dx.doi.org/10.20944/preprints202607.1328.v1),[Link](https://doi.org/10.20944/preprints202607.1328.v1)Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1),[§5](https://arxiv.org/html/2610.13166#S5.p1.1)\.
- Fanet al\.\(2026\)Z\. Fan, T\. Yu, Y\. Cai, J\. Guan, Y\. Yang, D\. Hu, J\. Zhou, X\. Wu, Z\. Han, F\. Zhang, and L\. WangToward scalable terminal task synthesis via skill graphs\.CoRRabs/2604\.25727\.External Links:[Link](https://doi.org/10.48550/arXiv.2604.25727),[Document](https://dx.doi.org/10.48550/ARXIV.2604.25727),2604\.25727Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p2.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.14.1.1.1.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.7.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Heet al\.\(2025\)W\. He, Y\. Sun, H\. Hao, X\. Hao, Z\. Xia, Q\. Gu, C\. Han, D\. Zhao, H\. Su, K\. Zhang, M\. Gao, X\. Su, X\. Cai, X\. Cai, Y\. Yang, and Y\. ZhaoVitaBench: benchmarking LLM agents with versatile interactive tasks in real\-world applications\.CoRRabs/2509\.26490\.External Links:[Link](https://doi.org/10.48550/arXiv.2509.26490),[Document](https://dx.doi.org/10.48550/ARXIV.2509.26490),2509\.26490Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px4.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Huaet al\.\(2026\)Z\. Hua, Y\. Yao, W\. Xie, Y\. Zhao, M\. Liu, R\. Qiu, Z\. Huang, Z\. Wang, Y\. Ji, Y\. Ye, L\. Zhu, X\. Lei, H\. Li, Z\. Ma, Z\. Wang, Z\. Zhang, and J\. LiuCLI\-universe: towards verifiable task synthesis engine for terminal agents\.CoRRabs/2606\.22883\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.22883),[Document](https://dx.doi.org/10.48550/ARXIV.2606.22883),2606\.22883Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.10.1.1.1.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.18.1.1.1.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.3.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Ivisonet al\.\(2026\)H\. Ivison, J\. O\. Yin, R\. Shao, T\. Xiao, N\. Lambert, and H\. HajishirziTmax: A simple recipe for terminal agents\.CoRRabs/2606\.23321\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.23321),[Document](https://dx.doi.org/10.48550/ARXIV.2606.23321),2606\.23321Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.19.1.1.1.1)\.
- Kohet al\.\(2026\)J\. Y\. Koh, R\. Salakhutdinov, and D\. FriedMulti\-agent computer use\.CoRRabs/2606\.01533\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.01533),[Document](https://dx.doi.org/10.48550/ARXIV.2606.01533),2606\.01533Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Kwonet al\.\(2023\)W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. Gonzalez, H\. Zhang, and I\. StoicaEfficient memory management for large language model serving with pagedattention\.InProceedings of the 29th Symposium on Operating Systems Principles, SOSP 2023, Koblenz, Germany, October 23\-26, 2023,J\. Flinn, M\. I\. Seltzer, P\. Druschel, A\. Kaufmann, and J\. Mace \(Eds\.\),pp\. 611–626\.External Links:[Link](https://doi.org/10.1145/3600006.3613165),[Document](https://dx.doi.org/10.1145/3600006.3613165)Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px1.p1.1)\.
- Liet al\.\(2026a\)Z\. Li, Y\. Shi, Z\. Li, R\. Wang, A\. Li, Z\. Huang, J\. Yang, L\. Ke, N\. Liu, H\. Mi, and L\. LiangRecursive synthesis for long\-horizon terminal tasks\.CoRRabs/2608\.05466\.External Links:[Link](https://doi.org/10.48550/arXiv.2608.05466),[Document](https://dx.doi.org/10.48550/ARXIV.2608.05466),2608\.05466Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p2.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.21.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Liet al\.\(2026b\)Z\. Li, Z\. Li, Y\. Shi, R\. Wang, J\. Yang, Z\. Liu, X\. Wu, A\. Li, Y\. Yu, N\. Liu, L\. Sun, H\. Mi, and L\. LiangLong\-horizon\-terminal\-bench: testing the limits of agents on long\-horizon terminal tasks with dense reward\-based grading\.CoRRabs/2607\.08964\.External Links:[Link](https://doi.org/10.48550/arXiv.2607.08964),[Document](https://dx.doi.org/10.48550/ARXIV.2607.08964),2607\.08964Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Lightmanet al\.\(2023\)H\. Lightman, V\. Kosaraju, Y\. Burda, H\. Edwards, B\. Baker, T\. Lee, J\. Leike, J\. Schulman, I\. Sutskever, and K\. CobbeLet’s verify step by step\.CoRRabs/2305\.20050\.External Links:[Link](https://doi.org/10.48550/arXiv.2305.20050),[Document](https://dx.doi.org/10.48550/ARXIV.2305.20050),2305\.20050Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px6.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Linet al\.\(2026\)Y\. Lin, H\. Wang, S\. Wu, L\. Fan, F\. Pan, S\. Zhao, and D\. TuCLI\-gym: scalable CLI task generation via agentic environment inversion\.CoRRabs/2602\.10999\.External Links:[Link](https://doi.org/10.48550/arXiv.2602.10999),[Document](https://dx.doi.org/10.48550/ARXIV.2602.10999),2602\.10999Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.15.1.1.1.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.6.1.1.1.1)\.
- Maet al\.\(2025\)K\. Ma, X\. Du, Y\. Wang, H\. Zhang, Z\. Wen, X\. Qu, J\. Yang, J\. Liu, M\. Liu, X\. Yue, W\. Huang, and G\. ZhangKOR\-bench: benchmarking language models on knowledge\-orthogonal reasoning tasks\.InThe Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24\-28, 2025,External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2025/file/c6f5851a0d9cb435ed8b50e87bd6a257-Paper-Conference.pdf)Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px6.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Maet al\.\(2026\)Z\. Ma, H\. Huang, S\. Zou, Y\. Wang, S\. Yang, Y\. Hu, F\. Wei, and X\. ChuLongHorizon\-harness: advancing long\-horizon agents for real\-world tasks\.CoRRabs/2608\.01964\.External Links:[Link](https://doi.org/10.48550/arXiv.2608.01964),[Document](https://dx.doi.org/10.48550/ARXIV.2608.01964),2608\.01964Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1),[§5](https://arxiv.org/html/2610.13166#S5.p1.1)\.
- Menget al\.\(2026\)F\. Meng, G\. Chen, J\. Zhao, S\. Sun, Z\. Lin, W\. X\. Zhao, R\. Song, J\. Wen, and K\. JiaCalibForge: adversarial solver calibration for scaling learnable terminal tasks\.CoRRabs/2608\.06352\.External Links:[Link](https://doi.org/10.48550/arXiv.2608.06352),[Document](https://dx.doi.org/10.48550/ARXIV.2608.06352),2608\.06352Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.20.1.1.1.1)\.
- Merrillet al\.\(2026\)M\. A\. Merrill, A\. G\. Shaw, N\. Carlini, B\. Li, H\. Raj, I\. Bercovich, L\. Shi, J\. Y\. Shin, T\. Walshe, E\. K\. Buchanan, J\. Shen, G\. Ye, H\. Lin, J\. Poulos, M\. Wang, M\. Nezhurina, J\. Jitsev, D\. Lu, O\. Menis\-Mastromichalakis, Z\. Xu, Z\. Chen, Y\. Liu, R\. Zhang, L\. L\. Chen, A\. Kashyap, J\. Uslu, J\. Li, J\. Wu, M\. Yan, S\. Bian, V\. Sharma, K\. Sun, S\. Dillmann, A\. Anand, A\. Lanpouthakoun, B\. Koopah, C\. Hu, E\. K\. Guha, G\. H\. S\. Dreiman, J\. Zhu, K\. Krauth, L\. Zhong, N\. Muennighoff, R\. Amanfu, S\. Tan, S\. Pimpalgaonkar, T\. Aggarwal, X\. Lin, X\. Lan, X\. Zhao, Y\. Liang, Y\. Wang, Z\. Wang, C\. Zhou, D\. Heineman, H\. Liu, H\. Trivedi, J\. Yang, J\. Lin, M\. Shetty, M\. Yang, N\. Omi, N\. Raoof, S\. Li, T\. Y\. Zhuo, W\. Lin, Y\. Dai, Y\. Wang, W\. Chai, S\. Zhou, D\. Wahdany, Z\. She, J\. Hu, Z\. Dong, Y\. Zhu, S\. Cui, A\. Saiyed, A\. Kolbeinsson, J\. Hu, C\. M\. Rytting, R\. Marten, Y\. Wang, A\. Dimakis, A\. Konwinski, and L\. SchmidtTerminal\-bench: benchmarking agents on hard, realistic tasks in command line interfaces\.CoRRabs/2601\.11868\.External Links:[Link](https://doi.org/10.48550/arXiv.2601.11868),[Document](https://dx.doi.org/10.48550/ARXIV.2601.11868),2601\.11868Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2610.13166#S1.p1.1),[§2\.1](https://arxiv.org/html/2610.13166#S2.SS1.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- OpenAI \(2025\)OpenAICodex cli\.Note:Accessed: 2026\-09\-03External Links:[Link](https://github.com/openai/codex)Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Panet al\.\(2026\)Z\. Pan, J\. He, K\. Zhang, Y\. Han, Z\. Liu, Y\. Zhao, Y\. Ye, and Z\. YangMeta\-task: turning terminal task synthesis into a terminal task for scalable agent training\.CoRRabs/2607\.27929\.External Links:[Link](https://doi.org/10.48550/arXiv.2607.27929),[Document](https://dx.doi.org/10.48550/ARXIV.2607.27929),2607\.27929Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.17.1.1.1.1)\.
- Piet al\.\(2026\)R\. Pi, G\. Lam, M\. Shoeybi, P\. Jannaty, B\. Catanzaro, and W\. PingOn data engineering for scaling LLM terminal capabilities\.CoRRabs/2602\.21193\.External Links:[Link](https://doi.org/10.48550/arXiv.2602.21193),[Document](https://dx.doi.org/10.48550/ARXIV.2602.21193),2602\.21193Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.13.1.1.1.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.8.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Qwen Team \(2026\)Qwen TeamQwen3\.8\-max: a new bar for coding and cowork\.External Links:[Link](https://qwen.ai/blog?id=qwen3.8)Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Raoofet al\.\(2026\)N\. Raoof, R\. Zhuang, M\. Nezhurina, E\. K\. Guha, A\. Tejaswi, R\. Marten, C\. F\. Ruan, T\. Griggs, A\. G\. Shaw, H\. Bansal, E\. K\. Buchanan, A\. Gazizov, R\. Heckel, C\. Hegde, S\. Jajee, D\. Khazi, E\. Koukoumidis, X\. Li, H\. Liu, S\. Natarajan, H\. Raj, N\. Roberts, E\. Shen, N\. Singhi, M\. Siu, A\. Suvarna, H\. Xing, P\. Yubeaton, R\. Zhang, L\. L\. Chen, X\. Chen, S\. Dillmann, S\. Gabriel, X\. Jiang, A\. Kashyap, B\. Li, Y\. Park, M\. Pham, S\. Sanghavi, L\. Shi, K\. Sun, Y\. Wang, Z\. Xu, E\. Zhang, S\. Zhao, W\. Zhao, J\. Jitsev, A\. Dimakis, B\. Feuer, and L\. SchmidtOpenThoughts\-agent: data recipes for agentic models\.CoRRabs/2606\.24855\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.24855),[Document](https://dx.doi.org/10.48550/ARXIV.2606.24855),2606\.24855Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.12.1.1.1.1)\.
- Renet al\.\(2026\)Q\. Ren, S\. Zou, S\. Huang, Z\. Zhang, K\. Shi, Z\. Fang, Y\. Zhao, Y\. Zeng, Q\. Su, L\. Chen, Y\. Wang, Z\. Chen, X\. Chu, and F\. ZhaoSaaSBench: exploring the boundaries of coding agents in long\-horizon enterprise saas engineering\.CoRRabs/2605\.17526\.External Links:[Link](https://doi.org/10.48550/arXiv.2605.17526),[Document](https://dx.doi.org/10.48550/ARXIV.2605.17526),2605\.17526Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p1.1)\.
- Shepard and Salimans \(2026\)D\. Shepard and R\. SalimansAutomationBench\.CoRRabs/2604\.18934\.External Links:[Link](https://doi.org/10.48550/arXiv.2604.18934),[Document](https://dx.doi.org/10.48550/ARXIV.2604.18934),2604\.18934Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px3.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Shiet al\.\(2026\)K\. Shi, Z\. Wang, Q\. Su, S\. Huang, Z\. Zhang, Z\. Fang, Q\. Ren, J\. Liu, Y\. Zeng, Y\. Zhao, L\. Chen, Z\. Chen, and F\. ZhaoFACET: preserving source intent and executable state in terminal task synthesis\.CoRRabs/2608\.18580\.External Links:[Link](https://doi.org/10.48550/arXiv.2608.18580),[Document](https://dx.doi.org/10.48550/ARXIV.2608.18580),2608\.18580Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Songet al\.\(2026\)X\. Song, H\. Chang, G\. Dong, Y\. Zhu, J\. Wen, and Z\. DouEnvScaler: scaling tool\-interactive environments for LLM agent via programmatic synthesis\.InFindings of the Association for Computational Linguistics, ACL 2026, San Diego, California, United States, July 2\-7, 2026,M\. Liakata, V\. P\. Moreira, J\. Zhang, and D\. Jurgens \(Eds\.\),pp\. 8326–8357\.External Links:[Link](https://doi.org/10.18653/v1/2026.findings-acl.407),[Document](https://dx.doi.org/10.18653/V1/2026.FINDINGS-ACL.407)Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Sunet al\.\(2026\)Y\. Sun, X\. Han, W\. Zhang, Y\. Pang, T\. Wang, Y\. Cao, Y\. Huang, C\. Duroiu, H\. Zhang, J\. Lin, W\. Zhang, T\. Zeng, Y\. Yan, B\. Liu, H\. Wen, M\. Xu, X\. Liu, Z\. Chen, W\. Shi, A\. Dsouza, V\. S\. Chen, P\. Bryant, C\. Boettiger, Y\. Rangan, B\. Rothenberg, K\. Steinfeld, A\. Rao, T\. Schneider, G\. Yannakakis, L\. Zanna, K\. Ozbay, I\. Sim, T\. Zohdi, G\. E\. Karniadakis, J\. Gallant, T\. Head\-Gordon, Y\. Li, W\. Deng, T\. Sun, H\. Wang, Z\. Wang, J\. Xu, C\. Y\. Liu, Y\. Cheng, R\. Hu, A\. Bacho, S\. Cao, Z\. Qin, Y\. Chen, H\. Fan, H\. Liu, L\. Zeng, S\. M\. Bharadwaj, L\. Gong, Y\. Yang, M\. Song, R\. Wang, Z\. Zhang, H\. Bao, S\. Lu, J\. Tu, Z\. Wang, Z\. Zhang, Z\. Chen, Y\. Jiang, Z\. Li, B\. Lyu, C\. Ma, P\. Xu, B\. Zhang, S\. Gu, H\. Hua, H\. Li, W\. Liao, C\. Liu, J\. Peng, H\. Sun, Z\. Xu, B\. Chen, J\. Cheng, Y\. Jiang, K\. Kuang, Y\. Li, Y\. Pan, Z\. Rao, A\. Schubert, Y\. Shen, V\. Siu, X\. Sun, K\. Zhang, X\. Zhang, Y\. Zhu, I\. S\. Chandok, L\. Ding, J\. Fan, A\. Glover, J\. Hu, Y\. Hu, W\. Huang, and et al\.Agents’ last exam\.CoRRabs/2606\.05405\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.05405),[Document](https://dx.doi.org/10.48550/ARXIV.2606.05405),2606\.05405Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p1.1)\.
- Wanget al\.\(2026\)Z\. Wang, C\. Xu, B\. Liu, Y\. Wang, S\. Han, Z\. Yao, H\. Yao, and Y\. HeAgent world model: infinity synthetic environments for agentic reinforcement learning\.CoRRabs/2602\.10090\.External Links:[Link](https://doi.org/10.48550/arXiv.2602.10090),[Document](https://dx.doi.org/10.48550/ARXIV.2602.10090),2602\.10090Cited by:[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Wuet al\.\(2026a\)J\. Wu, Z\. Zhang, B\. Zhang, X\. Wang, Y\. Su, M\. Chen, P\. Wang, Z\. Wang, Q\. Shen, H\. Zhou, A\. Yang, F\. Huang, Y\. Yang, and D\. LiuTerminal\-universe: turning agent trajectories into scalable terminal environments\.arXiv preprint arXiv:2609\.04148\.External Links:2609\.04148,[Link](https://arxiv.org/abs/2609.04148)Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p2.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.22.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Wuet al\.\(2026b\)S\. Wu, Y\. Li, Y\. Song, W\. Zhang, Y\. Wang, R\. Batista\-Navarro, X\. Yang, M\. Tang, B\. Dai, J\. Yang, and C\. LinLarge\-scale terminal agentic trajectory generation from dockerized environments\.CoRRabs/2602\.01244\.External Links:[Link](https://doi.org/10.48550/arXiv.2602.01244),[Document](https://dx.doi.org/10.48550/ARXIV.2602.01244),2602\.01244Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p2.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.4.1.1.1.1),[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.9.1.1.1.1),[§5](https://arxiv.org/html/2610.13166#S5.p2.1)\.
- Xuet al\.\(2026\)Z\. Xu, J\. Chen, Y\. Huang, D\. Jiang, J\. Chen, H\. Hua, Z\. Wu, Z\. Liu, Z\. He, L\. Li, S\. Diao, J\. Pei, J\. Yoon, H\. Zhang, M\. Wang, R\. Poovendran, M\. Sra, A\. Pentland, and Z\. ChenAutoLab: can frontier models solve long\-horizon auto research and engineering tasks?\.CoRRabs/2606\.05080\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.05080),[Document](https://dx.doi.org/10.48550/ARXIV.2606.05080),2606\.05080Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Yanget al\.\(2026a\)J\. Yang, K\. Lieret, J\. Ma, P\. Thakkar, D\. Pedchenko, S\. Sootla, E\. McMilin, P\. Yin, R\. Hou, G\. Synnaeve, D\. Yang, and O\. PressProgramBench: can language models rebuild programs from scratch?\.CoRRabs/2605\.03546\.External Links:[Link](https://doi.org/10.48550/arXiv.2605.03546),[Document](https://dx.doi.org/10.48550/ARXIV.2605.03546),2605\.03546Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Yanget al\.\(2026b\)S\. Yang, C\. Tao, J\. Chen, T\. Yu, R\. Wang, Y\. Jiang, Y\. Du, W\. Xu, J\. Xiong, T\. Wu, L\. Shang, X\. Li, N\. Wong, and H\. BaiWhat makes interaction trajectories effective for training terminal agents?\.CoRRabs/2606\.03461\.External Links:[Link](https://doi.org/10.48550/arXiv.2606.03461),[Document](https://dx.doi.org/10.48550/ARXIV.2606.03461),2606\.03461Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.11.1.1.1.1)\.
- Yeet al\.\(2025\)R\. Ye, Z\. Zhang, K\. Li, H\. Yin, Z\. Tao, Y\. Zhao, L\. Su, L\. Zhang, Z\. Qiao, X\. Wang, P\. Xie, F\. Huang, S\. Chen, J\. Zhou, and Y\. JiangAgentFold: long\-horizon web agents with proactive context management\.CoRRabs/2510\.24699\.External Links:[Link](https://doi.org/10.48550/arXiv.2510.24699),[Document](https://dx.doi.org/10.48550/ARXIV.2510.24699),2510\.24699Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1),[§5](https://arxiv.org/html/2610.13166#S5.p1.1)\.
- Zhang and Math\-AI \(2024\)Y\. Zhang and T\. Math\-AIAmerican invitational mathematics examination \(aime\) 2024\.External Links:[Link](https://huggingface.co/datasets/math-ai/aime24)Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px6.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Zhang and Math\-AI \(2025\)Y\. Zhang and T\. Math\-AIAmerican invitational mathematics examination \(aime\) 2025\.External Links:[Link](https://huggingface.co/datasets/math-ai/aime25)Cited by:[§A\.2](https://arxiv.org/html/2610.13166#A1.SS2.SSS0.Px6.p1.1),[§4\.1](https://arxiv.org/html/2610.13166#S4.SS1.p1.1)\.
- Zhenget al\.\(2026\)J\. Zheng, X\. Fang, J\. Zhang, Z\. Gui, H\. Chen, and N\. ZhangOneDayAgent: towards a long\-horizon harness for autonomous agents\.CoRRabs/2608\.05013\.External Links:[Link](https://doi.org/10.48550/arXiv.2608.05013),[Document](https://dx.doi.org/10.48550/ARXIV.2608.05013),2608\.05013Cited by:[§1](https://arxiv.org/html/2610.13166#S1.p1.1)\.
- Zhenget al\.\(2024\)Y\. Zheng, R\. Zhang, J\. Zhang, Y\. Ye, and Z\. LuoLlamaFactory: unified efficient fine\-tuning of 100\+ language models\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 3: System Demonstrations\), ACL 2024, Bangkok, Thailand, August 11\-16, 2024,Y\. Cao, Y\. Feng, and D\. Xiong \(Eds\.\),pp\. 400–410\.External Links:[Link](https://doi.org/10.18653/v1/2024.acl-demos.38),[Document](https://dx.doi.org/10.18653/V1/2024.ACL-DEMOS.38)Cited by:[§A\.1](https://arxiv.org/html/2610.13166#A1.SS1.p1.1)\.
- Zhuet al\.\(2026\)K\. Zhu, Y\. Nie, Y\. Li, Y\. Huang, J\. Wu, J\. Liu, X\. Sun, Z\. Yin, L\. Wang, Z\. Liu, E\. Barsoum, W\. Y\. Wang, and W\. GuoTermiGen: high\-fidelity environment and robust trajectory synthesis for terminal agents\.CoRRabs/2602\.07274\.External Links:[Link](https://doi.org/10.48550/arXiv.2602.07274),[Document](https://dx.doi.org/10.48550/ARXIV.2602.07274),2602\.07274Cited by:[Table 1](https://arxiv.org/html/2610.13166#S3.T1.4.5.1.1.1.1)\.

## Appendix AImplementation Details

### A\.1Training Details

We use LLaMA\-Factory\([Zheng et al\., 2024](https://arxiv.org/html/2610.13166#bib.bib41)\)to perform full\-parameter supervised fine\-tuning \(SFT\) on multi\-turn trajectories from TerminalHorizon\-3K for Qwen3\.5\-27B, Qwen3\.5\-35B\-A3B, and Qwen3\.5\-122B\-A10B111[https://huggingface\.co/collections/Qwen/qwen35](https://huggingface.co/collections/Qwen/qwen35)\. All three models follow the same training recipe in Table[4](https://arxiv.org/html/2610.13166#A1.T4.fig1), and we report the final checkpoint after three epochs\.

Table 4:Shared SFT hyperparameters for all three model sizes\.
### A\.2Evaluation Protocols

#### General settings\.

All evaluated models are served through vLLM\([Kwon et al\., 2023](https://arxiv.org/html/2610.13166#bib.bib42)\)on eight H20 GPUs, with a tensor parallelism degree of 8 and a context window of262,144262\{,\}144tokens\. For each benchmark, the base and TerminalHorizon models use the same task set, agent framework, decoding settings, and scoring procedure\. Terminal\-Bench, AutomationBench, and general reasoning evaluations use a temperature of1\.01\.0, top\-p=0\.95p=0\.95, top\-k=20k=20, and a maximum of65,53665\{,\}536output tokens per response\. Decoding settings for VitaBench andτ2\\tau^\{2\}\-bench are specified below\.

#### Terminal\-Bench\.

We evaluate on Terminal\-Bench 1\.0, 2\.0, and 2\.1\([Merrill et al\., 2026](https://arxiv.org/html/2610.13166#bib.bib15)\)using Harbor222[https://github\.com/harbor\-framework/harbor](https://github.com/harbor-framework/harbor)and Terminus\-2 with a JSON parser\. Terminal\-Bench 1\.0 contains 80 tasks and uses Daytona sandboxes, each allocated 2 CPUs, 4 GiB of memory, and 8 GiB of storage\. Terminal\-Bench 2\.0 and 2\.1 each contain 89 tasks and use E2B sandboxes\. All three versions allow the agent three hours per task, while verifiers retain the time limits specified by each task\. Terminus\-2 triggers proactive summarization when the estimated remaining context capacity falls below131,072131\{,\}072tokens\. We run each task independently three times and report mean pass@1, with up to two retries for infrastructure errors\.

#### AutomationBench\.

We evaluate AutomationBench v1\.0\.6\([Shepard and Salimans, 2026](https://arxiv.org/html/2610.13166#bib.bib24)\)with 600 rollouts over the full public set, using the officialapitool set and a limit of 50 steps per trajectory\. Each model is evaluated in three independent runs, and we report the mean official Partial score \(the fraction of assertions passed\) and Pass Rate \(all assertions passed\)\. Interrupted samples are retried for up to three rounds; samples that remain incomplete receive a score of zero\.

#### VitaBench Cross\-domain\.

We use the main English Cross\-domain set of VitaBench 1\.0\([He et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib26)\), which contains 100 tasks spanning food delivery, in\-store services, and travel\. Each task is run four times with a limit of 300 interaction steps, an error limit of 10, and a random seed of 300\. The agent uses a temperature of 0 and a maximum of65,53665\{,\}536output tokens per response\. The user simulator and trajectory judge both usedeepseek\-v4\-pro\-0813, with a temperature of 0 and an output limit of32,76832\{,\}768tokens\. We use the official rubric\-based sliding\-window trajectory evaluator and report Avg@4, the mean success rate over all 400 runs\.

#### τ2\\tau^\{2\}\-bench\.

We evaluate the Airline \(50 tasks\) and Retail \(114 tasks\) domains on the base split ofτ2\\tau^\{2\}\-bench v1\.0\.1\([Barrès et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib25)\)\. We use the officialllm\_agentand user simulator, with four independent runs per task, a limit of 200 interaction steps, an error limit of 10, and a random seed of 300\. The agent, user simulator, and natural\-language assertion judge all use a temperature of 0; the latter two usedeepseek\-v4\-pro\-0813\. We do not specify an additional per\-response output limit for this evaluation\. For each domain, we report the mean task success rate across all repeated runs\. Model or API errors are retried up to three times, and these technical retries do not count as additional trials\.

#### General reasoning\.

We evaluate on the 500 problems in MATH\-500\([Lightman et al\., 2023](https://arxiv.org/html/2610.13166#bib.bib27)\), the 1,319 test problems in GSM8K\([Cobbe et al\., 2021](https://arxiv.org/html/2610.13166#bib.bib28)\), the 30 problems each in AIME 2024\([Zhang and Math\-AI, 2024](https://arxiv.org/html/2610.13166#bib.bib30)\)and AIME 2025\([Zhang and Math\-AI, 2025](https://arxiv.org/html/2610.13166#bib.bib31)\), and the 250 problems in KOR\-Bench Cipher\([Ma et al\., 2025](https://arxiv.org/html/2610.13166#bib.bib29)\)\. The first four benchmarks use the native evaluators in EvalScope 1\.11\.1333[https://github\.com/modelscope/evalscope](https://github.com/modelscope/evalscope), while KOR\-Bench uses its official zero\-shot prompts and answer normalization procedure\. For AIME 2024 and AIME 2025, we use the ModelScope datasetsevalscope/aime24444[https://modelscope\.cn/datasets/evalscope/aime24](https://modelscope.cn/datasets/evalscope/aime24)andevalscope/aime25555[https://modelscope\.cn/datasets/evalscope/aime25](https://modelscope.cn/datasets/evalscope/aime25), respectively, through EvalScope 1\.11\.1, evaluating all 30 problems in the test split of the default subset for each year\. We generate one answer per problem and score it according to each benchmark’s answer\-matching rules, reporting mean accuracy over three independent runs\.

## Appendix BAdditional Experimental Analysis

### B\.1Performance across Task Categories

Figure 8:Category\-wise mean pass@1 on Terminal\-Bench 2\.1\.We compare category\-wise mean pass@1 on Terminal\-Bench 2\.1 to examine how the training benefits are distributed across professional tasks\. As shown in Figure[8](https://arxiv.org/html/2610.13166#A2.F8), TerminalHorizon\-27B matches or outperforms Qwen3\.5\-27B in all 16 categories, with improvements in 11\. Gains are particularly large in debugging, data science, and machine learning, reaching 46\.7, 25\.0, and 22\.2 percentage points, respectively, and also extend to system administration, security, and data processing\. This distribution shows that the improvements are not concentrated in a single task type but extend across a broad range of professional problem\-solving tasks\.

### B\.2Data Efficiency

Figure 9:Data efficiency on Terminal\-Bench 2\.0\. TerminalHorizon\-27B achieves 55\.8% with approximately 3k training trajectories\.Figure[9](https://arxiv.org/html/2610.13166#A2.F9)compares Terminal\-Bench 2\.0 performance against the reported number of training trajectories\. With 2,852 trajectories \(approximately 3k\), TerminalHorizon\-27B achieves 55\.8%, the highest score among the models shown\. In particular, it outperforms Terminal\-Universe\-27B by 3\.0 percentage points while using fewer than one\-tenth as many trajectories \(approximately 3k versus 32k\)\. Both models use the Qwen3\.5\-27B base model and Terminus\-2 harness, providing a more closely matched comparison within a plot that includes different model sizes and training methods\. These results support the data efficiency of long\-horizon experience organized around sustained problem solving, which enables strong terminal\-task performance with a limited number of training trajectories\.

## Appendix CAdditional Long\-Horizon Task Applications

We examine four RSI\-Exam666[https://github\.com/aiming\-lab/RSI\-Exam](https://github.com/aiming-lab/RSI-Exam)case studies to understand how terminal\-task training transfers to sustained autonomous research\. The cases span combinatorial optimization, physical inverse problems, game strategy, and geometric reconstruction\. Their shared challenge is not merely to produce an executable solution, but to identify opportunities for further improvement, design informative experiments, and preserve effective changes in the final submission\. These cases complement the aggregate benchmark results by showing how agents organize their work around an ongoing objective\.

For each case, we compare Qwen3\.5\-27B and TerminalHorizon\-27B using the same task, research instructions, decoding settings, and evaluation procedure\. Both models operate in an E2B environment with 8 GiB of memory through a Terminus\-2\-based research harness, with a research budget of 12 hours\. Agents can inspect the supplied materials, revise their implementations, and run development experiments, but do not receive hidden evaluation results during research\. The task’s native verifier scores the final submission rather than a historical checkpoint selected afterward by the evaluator\. Agents may also finish voluntarily before the deadline\.

Table 5:RSI\-Exam results \(12\-hour budget; one run per model per case\)\. Normalized rewards×100\\times 100\. Time excludes setup and final verification\.Table[5](https://arxiv.org/html/2610.13166#A3.T5.fig1)summarizes the results for all cases\. Each result corresponds to one research run and is based on the final submission’s performance on the hidden test set\. We convert each task’s native normalized reward to a 0–100 scale, representing an optimization score rather than a task success rate\. We use the original action–observation traces, experiment records, saved implementations, and final evaluation outputs to analyze how models sustain research and preserve effective improvements\.

### C\.1Warehouse Robot Routing and Macro Optimization

Figure 10:Robot routing and macro optimization\. \(a\) Best mean button cost on 100 public instances\. Rings mark final submissions\. \(b\) All complete public trials, including regressions\. \(c\) Paired relative scores \(reference length / solver cost\) on all 200 hidden instances\. Crosses mark missing raw scores, mapped to zero by the grader\. \(d\) Final normalized scores\.#### Task and source of difficulty\.

A robot must collect colored balls in a warehouse with obstacles and deliver each ball to its matching basket\. The controller supports movement, turning, swapping, and the recording and replay of macros\. The goal is to complete all deliveries with as few button presses as possible, subject to a limit on the number of primitive operations after macro expansion\. This couples route planning with program compression: a shorter geometric route need not yield a shorter control program, and macros must remain valid as the robot’s position, orientation, and carried object change\. The public evaluator provides 100 instances, while the final verifier uses 200 unseen instances and penalizes incomplete or invalid solutions\. Figure[10](https://arxiv.org/html/2610.13166#A3.F10)connects method revisions with public\-set progress and final hidden\-set results\.

#### From local improvements to a joint objective\.

TerminalHorizon\-27B first builds an orientation\-aware route planner, then adds single\-macro compression and sequential macro replacement\. Later experiments expand the route search with alternative initializations, route\-segment reversals, and pairwise swaps\. On the full public test set, mean cost falls from 651\.42 in the initial measured version to 281\.92 after pairwise swaps are introduced\. The agent does not accept a candidate merely because it is more complex: it reverts a C\+\+ local\-search variant that takes longer and yields a slightly worse cost of 281\.96\. In contrast, it retains an exact dynamic\-programming route optimizer for smaller instances as an additional candidate\. The final method selects routes by their compressed button count, aligning search with the actual objective rather than uncompressed path length\. The submitted implementation achieves a public mean cost of 281\.11\.

#### Preserving progress through final delivery\.

The base model also conducts substantial search, reaching a best recorded cost of 286\.05 on the full public set\. However, later revisions remove macro compression, and its actual submission has a cost of 466\.35\. It voluntarily stops after 11\.42 hours, whereas TerminalHorizon\-27B retains its stronger compressed solution through the research deadline\. Their final hidden\-set normalized scores are 14\.63 and 39\.72, respectively\. Both agents discover competitive intermediate solutions, but only TerminalHorizon\-27B preserves that progress in the evaluated implementation\. Maintaining a reliable best\-so\-far solution and checking the final submission are part of long\-horizon problem solving, not administrative steps after the substantive work is complete\.

### C\.2Tidal Seabed Friction Field Inversion

![Refer to caption](https://arxiv.org/html/2610.13166v1/appendix-tidal.png)Figure 11:Tidal friction inversion\. \(a\) Best mean public RMSE \(six basins\)\. \(b\) Unsmoothed24×2424\\times 24complex\-elevation errors with a shared scale\. Basin 02 is selected post hoc for the largest relative gauge\-RMSE reduction\. \(c\) Gauge RMSE on all eight hidden basins\.#### Task and source of difficulty\.

The agent must estimate a spatially varying seabed friction field from bathymetry, boundary forcing, and sparse observations of complex tidal elevation\. Some gauges contain large, unmarked observation errors\. Because the forward simulator smooths the effect of friction changes on tidal elevation, the inverse problem is ill\-posed: fitting the observed gauges does not guarantee accurate predictions elsewhere\. The submitted solver must return a bounded24×2424\\times 24log\-friction field\. Quality is measured by tidal\-elevation root\-mean\-square error \(RMSE\) at separate gauges, rather than by direct agreement between the estimated and true friction fields\. Development uses six public basins, and final evaluation uses eight hidden cases\. Figure[11](https://arxiv.org/html/2610.13166#A3.F11)shows the research process, spatial error comparisons, and results on all eight hidden basins\.

Figure 12:2048 strategy optimization\. \(a\) Best valid mean score on eight public seeds\. Crosses mark invalid trials and rings mark submissions\. \(b–c\) Scores and maximum tiles for all 16 hidden games in seed order\. Each grid cell represents one game\.
#### Revising the model of the inverse problem\.

The base model recognizes the need for spatial regularization and outlier handling, adopting a4×44\\times 4bilinear parameterization, coordinate descent, and iterative residual\-based observation rejection\. After achieving a public mean RMSE of 0\.023616, it voluntarily stops after 1\.12 hours\. Before stopping, it judges the task complete because the solver has improved significantly over the initial implementation and is ready for evaluation\. TerminalHorizon\-27B instead continues to compare spatial bases, robust losses, and regularization methods rather than treating the initial parameterization as fixed\. Its final method combines blockwise spatial coefficients with depth and log\-depth features, penalizes differences between adjacent coefficients, and fits the complex\-valued observations with a Huber loss\. It then removes the two gauges with the largest residuals and refits\. These choices address different sources of error, including limited spatial representation, unstable variation in the friction field, and corrupted observations\.

#### Generalization beyond the fitted observations\.

The trajectory includes comparisons on reserved public cases and additional synthetic basins, allowing the agent to test whether a configuration’s improvements extend beyond the cases used for tuning\. The final submission achieves a public mean RMSE of 0\.011118, compared with 0\.023616 for the base model\. On hidden cases, mean RMSE decreases from 0\.021873 to 0\.009386, a reduction of approximately 57\.1%, while the normalized score rises from 27\.41 to 48\.15\. This case shows how sustained research goes beyond additional optimization iterations by using experimental feedback to revise the friction\-field representation and outlier handling, then checking whether those changes generalize to cases not used for tuning\.

### C\.32048 Strategy Optimization

#### Task and source of difficulty\.

The agent must improve a deterministic policy for the stochastic game 2048\. Given a board, the policy must select a legal move using only the Python standard library while meeting a per\-move latency limit and a shared CPU time budget\. Development uses eight public game seeds, and the final policy is evaluated on 16 additional, non\-overlapping seeds\. These requirements create competing objectives: deeper search may improve decisions but increases computational cost, while heuristics that work well on a few seeds may not generalize to other random tile sequences\. Figure[12](https://arxiv.org/html/2610.13166#A3.F12)shows key search revisions and compares the final policies on each hidden game\.

#### Search, evaluation, and selective revision\.

Both models improve on the weak initial implementation by introducing expectimax search and revising the board evaluation function\. The base model explores lookahead search that accounts for random tile generation, adaptive search depth, and corner preferences, then restores its best public\-set policy and voluntarily stops after 1\.28 hours\. It cites the improvement over the initial policy and the valid completion of all eight public games as grounds for submission, concluding that the task is complete and the policy is ready to submit\. TerminalHorizon\-27B continues to introduce an immediate merge reward and selective memoization, while adjusting the relative influence of empty\-cell count, tile values, smoothness, and monotonicity\. The development record also shows recovery from failed implementations: a version with unbounded cache growth fails to complete the full public evaluation, prompting a more selective caching design\. Later, changing the maximum\-tile feature to a logarithmic form raises the mean score on the full public set from 59,509\.0 to 65,084\.5\.

#### Improvement includes rejecting attractive candidates\.

Several later configurations perform well on smaller development subsets but regress on the full public test set\. Rather than replacing its best\-so\-far solution with the latest candidate, TerminalHorizon\-27B reverts these changes and submits the stronger evaluated policy at the deadline\. The final public mean scores are 30,257\.0 for the base model and 65,084\.5 for TerminalHorizon\-27B\. On hidden games, mean score increases from 23,183\.75 to 38,626\.25, while the normalized score rises from 37\.54 to 45\.25\. Both final policies achieve a valid\-run fraction of 1\.0 on the hidden set, so the difference mainly concerns policy quality rather than avoidance of execution failures\. This trajectory illustrates how sustained experimentation combines algorithmic improvement with careful selection: failed attempts provide evidence for retaining, revising, or discarding a candidate\.

### C\.4Multi\-View Point\-Cloud Fusion

![Refer to caption](https://arxiv.org/html/2610.13166v1/appendix-pointcloud.png)Figure 13:Additional point\-cloud reconstructions for five scenes beyond Figure[7](https://arxiv.org/html/2610.13166#S4.F7)\. Each row uses the same camera, scale, and point size, without post\-hoc alignment, smoothing, or point removal\. Colors indicate point\-to\-reference distance, saturated at 0\.05 scene units\. Scale bars represent 0\.5 scene units, and F\-scores are multiplied by 100\.#### Task and source of difficulty\.

The agent must reconstruct a complete scene by fusing noisy point clouds from partially overlapping views\. The first view defines the reference coordinate frame, while the remaining views contain unknown small rigid transformations; each observed point also has a confidence value\. The agent must align the views, suppress unreliable points, and preserve surface coverage within a fixed output\-size limit\. The public self\-check only verifies compliance with the output interface and provides neither ground\-truth geometry nor reconstruction quality scores\. Final evaluation uses nine unseen scenes and averages symmetric precision–recall F\-scores over three distance tolerances, penalizing both inaccurate points and missing surface regions\. Figure[13](https://arxiv.org/html/2610.13166#A3.F13)shows the five remaining scenes \(02, 04, 06, 07, and 08\), complementing scenes 01, 03, 05, and 09 in Figure[7](https://arxiv.org/html/2610.13166#S4.F7)\. These visualizations compare final submissions rather than intermediate research versions\.

#### Questioning what a proxy actually measures\.

After trying iterative closest point alignment, the base model settles on a conservative approach: it translates the other views toward the reference view’s centroid and retains only points close to that view\. It obtains a high F\-score on a self\-designed proxy metric and voluntarily stops after 12\.1 minutes\. Specifically, it describes the results as excellent based on a mean proxy F\-score of 0\.8994 and a proxy F\-score of 1\.0 at the 0\.05 distance threshold for every case, concluding that the solver is ready to submit\. However, agreement with the reference observation is not equivalent to agreement with the complete scene\. Selecting points close to a single view can raise this proxy score while omitting surfaces visible only in other views\. TerminalHorizon\-27B encounters a similar issue in early experiments\. A variant that selects points by nearest distance to the reference view achieves a proxy score of about 0\.989, but the agent inspects which views contribute the selected points and questions whether the metric rewards reconstruction or merely copying the reference view\. It then introduces a leave\-one\-view\-out diagnostic, identifies poor coverage of the excluded view, and revises its fusion strategy accordingly\.

#### Aligning the method with geometric coverage\.

TerminalHorizon\-27B’s final solver filters nearest\-point correspondences by a distance threshold, estimates rotation and translation through rigid alignment, and jointly refines each non\-reference view against the other aligned views\. It performs two rounds of global refinement and selects high\-confidence points from the merged cloud, rather than restricting added points to the area near the first view\. In the official hidden evaluation, the mean F\-score across distance tolerances, expressed on a 0–100 scale, increases from 48\.04 to 77\.68; the separately calibrated normalized score rises from 21\.93 to 48\.96\. The key behavioral difference is the agent’s willingness to revise not only the solver but also the experiments used to assess progress\. Interface validity and high proxy scores provide only intermediate evidence, while cross\-view diagnostics help align the method with the actual reconstruction objective\.

Together, these four cases illustrate complementary aspects of sustained autonomous research: jointly optimizing coupled objectives, revising scientific models, testing and reverting search heuristics, and identifying misleading proxy metrics\. They share a close connection between observations, subsequent decisions, and the implementation ultimately submitted for evaluation\. Longer interaction is valuable when it supports these connections, rather than serving as an objective in itself\.

## Appendix DProfessional Domain Coverage

Our 1,535 tasks cover 25 primary professional domains\. As illustrated in Figure[14](https://arxiv.org/html/2610.13166#A4.F14), this coverage extends beyond software and infrastructure to education, agriculture, healthcare, finance, and scientific research\.

![Refer to caption](https://arxiv.org/html/2610.13166v1/figures/professional-domain-coverage.png)Figure 14:Overview of TerminalHorizon’s 25 professional domains\.The terminal provides a shared interaction interface rather than defining the scope of the work\. Tasks such as educational assessment, payroll reconciliation, and radio\-interferometric calibration bring different materials, constraints, and verifiable outputs into executable environments\. Domain coverage describes what agents work on, while the behavioral patterns in Appendix[E](https://arxiv.org/html/2610.13166#A5)describe how they organize and advance that work\.

Table 6:Agentic behavioral patterns \(1/2\): exploration and diagnosis\.Table 7:Agentic behavioral patterns \(2/2\): construction, verification, and coordination\.
## Appendix EAgentic Behavioral Patterns

### E\.1Definitions and Taxonomy

We define an*agentic behavioral pattern*as the structure connecting actions, observations, and subsequent decisions around a specific goal during problem solving\. Unlike classifications by task domain or tool, behavioral patterns describe how agents gather information, address problems, construct solutions, and verify their correctness, rather than characterizing individual commands or isolated operations\.

We group 27 behavioral patterns into five categories: information exploration and judgment, diagnosis and error correction, construction and work progress, verification and assurance, and strategy and execution coordination\. Tables[6](https://arxiv.org/html/2610.13166#A4.T6)and[7](https://arxiv.org/html/2610.13166#A4.T7)define each pattern\. These categories describe different aspects of problem\-solving behavior rather than mutually exclusive task types or fixed execution stages: a trajectory may contain multiple patterns, and tasks from different domains may exhibit the same patterns\.

Figure 15:Behavioral\-pattern organization in three trajectories\. Columns show selected episodes in order\. Dots mark supporting episodes, linked by pattern within each family\. Horizontal spacing indicates order, not duration\.
### E\.2Organization of Behavioral Patterns within Trajectories

To examine how agentic behavioral patterns connect within a trajectory, we select three annotated cases with traceable links between observations, decisions, and subsequent work\. Figure[15](https://arxiv.org/html/2610.13166#A5.F15)presents a TLS gateway repair, a synthetic neutron\-diffraction study, and an event\-driven staffing task\. The figure links selected episodes to observed patterns from the five categories above\. These are qualitative examples of behavioral organization, rather than estimates of pattern frequency or duration\.

#### TLS gateway repair: diagnosis returns as implementation progresses\.

The agent first distinguishes a working direct handshake from a failing retry path and corrects the route handling\. Backend logs then expose a missing client identity, which requires a separate repair\. Even after that repair, the downstream client receives no response body despite 84 bytes being recorded in the gateway log, a discrepancy that redirects the investigation toward request consumption and connection closure\. After modifying the request\-reading path and recovering from a failed test launch, the agent reruns the end\-to\-end checks, including invalid\-client rejection\. Relational tracing, diagnosis, and modification–recheck iteration thus support incremental construction rather than occurring as isolated stages\. The final evidence is a passing local regression suite, not an exhaustive check of every TLS requirement\.

#### Neutron diffraction: observations guide sampling and model selection\.

The agent combines instrument calibration with raw pilot measurements to locate a drop in the signal\. New warming measurements narrow the temperature range, while cooling measurements provide a comparison near the transition\. These observations support a test of thermal\-path dependence and a BIC comparison between continuous and hysteretic models\. The selected fit is committed with all 13 run identifiers before the campaign is closed\. Problem\-driven exploration, hypothesis\-driven diagnosis, and dependency\-driven progression are connected through the measured data\. The native interface records the fit and closure, but the trajectory does not expose the independent verifier’s refit results\.

#### Care staffing: changing conditions connect planning, correction, and delivery\.

In the synthetic staffing environment, six consecutive windows require updates for resident transfers, changing care needs, admissions, and staff availability\. Each committed window contributes to the cumulative schedule and constrains later assignments\. For the final window, validation reports two panel loads of 19 and 17 against a capacity of 15, along with a missing licensed task\. A separate SQL calculation confirms the loads before the agent redistributes residents, adds the task, and revalidates the plan\. The final status records all six windows as committed\. This case connects dynamic decision\-making and incremental construction with a local correction loop and final delivery checks\. The SQL calculation and validator use different checking paths but share the same database inputs\.

Across these cases, a single episode can support several patterns, and one pattern can connect work across multiple episodes\. The resulting experience lies in how evidence is used, partial results are extended, and checks determine the next action, rather than in a fixed sequence of behavioral stages\.

## Appendix FTrajectory Filtering Criteria

Final task success alone does not determine a trajectory’s value for supervised learning\. Successful trajectories may rely on answer leakage or circumvent task constraints, whereas unsuccessful ones may still demonstrate useful diagnosis, implementation, and error recovery\. We therefore adopt process\-oriented, trajectory\-level filtering based on trajectory validity, environment\-grounded progress, and multi\-turn training value to assess whether a teacher trajectory provides a suitable interaction demonstration for the student model\. We usegpt\-5\.6\-lunawith reasoning effort set tohighas the reviewer\. It reads the complete conversation without receiving the final reward or a success/failure label as additional input, and must ground its judgments in the actions and observations recorded in the trajectory\.

#### Trajectory validity\.

A valid trajectory should maintain coherent context and traceable action–observation correspondences, allowing decisions to be connected to their execution outcomes\. We exclude trajectories whose core problem\-solving process cannot be reliably interpreted because of severe truncation, persistent protocol corruption, or an incorrect execution environment\. We also exclude trajectories that rely on leakage of private answers, unauthorized manipulation of internal state, or circumvention of prescribed interfaces\. Local interaction errors do not, by themselves, invalidate a trajectory: if the model recognizes a parsing or command error, restores valid interaction, and continues making progress, the sequence can still provide a useful demonstration of error correction\. This criterion distinguishes recoverable mistakes from substantive defects that compromise trajectory integrity or violate task constraints\.

Table 8:Benchmark text used for decontamination\. Paths are relative to each benchmark distribution\.
#### Environment\-grounded progress\.

High\-quality trajectories should demonstrate that actions are informed by evidence from the environment\. We examine whether the model uses file contents, logs, command outputs, error messages, and test results to guide its decisions and, when necessary, revise its hypotheses or plans\. Meaningful progress need not immediately produce a correct result: ruling out an infeasible approach, identifying a root cause, or uncovering a new constraint can also provide valuable learning signals\. Conversely, we exclude trajectories dominated by persistent disregard for feedback, ungrounded trial and error, repeated ineffective actions, or unsupported adherence to incorrect conclusions\. The assessment concerns the reliability of the overall action sequence, rather than requiring every attempt to be correct\.

#### Multi\-turn training value\.

We further assess whether a trajectory demonstrates substantively connected, multi\-turn terminal work, including evidence gathering, implementation, verification, hypothesis revision, and error recovery\. Its value lies in how interactions inform subsequent decisions, not in trajectory length, command count, or output volume\. Waiting, repeated polling, and mechanical loops receive no additional credit merely for increasing the number of turns\. Infrastructure operations used solely to connect to or manage the execution environment likewise do not count toward problem\-solving depth\. Rather than imposing a fixed turn\-count threshold, we assess whether the trajectory provides a reliable, nonredundant interaction process worth learning from\.

#### Overall decision\.

We retain trajectories that satisfy these criteria even if they do not complete the task or end at an unresolved obstacle\. In particular, feedback\-driven diagnosis, revision, and recovery following a failure should not be discarded simply because they contain mistakes\. Local errors are likewise insufficient grounds for rejection when they do not compromise the main action sequence\. We instead reject a trajectory when its core solution relies on prohibited shortcuts, incorrect assumptions persist throughout the main problem\-solving process, or interactions remain unproductive and fail to provide reliable learning signals\. These process\-oriented criteria preserve exploration and error correction in realistic problem solving while excluding systematic errors and ineffective interactions from supervised demonstrations\.

## Appendix GDetailed Benchmark Decontamination

Direct reuse or close paraphrasing of evaluation problems in training tasks can make it difficult to distinguish capability gains from memorization\. To assess this risk, we compare all 1,535 training tasks with the evaluation benchmarks at the task level, combining exact\-span matching, near\-duplicate retrieval, and semantic assessment to identify potential task overlap\.

### G\.1Comparison Corpora

The comparison corpora cover 3,251 evaluation instances across 12 benchmark groups: Terminal\-Bench 1\.0, 2\.0, and 2\.1; AutomationBench; the English Cross\-domain tasks in VitaBench;τ2\\tau^\{2\}\-bench Airline and Retail; MATH\-500; GSM8K; AIME 2024; AIME 2025; and KOR\-Bench Cipher\. Each training task is represented by its fullinstruction\.md, while each evaluation instance is represented by its problem statement or user request\. Table[8](https://arxiv.org/html/2610.13166#A6.T8)lists the sources and fields used\.

Table 9:Decontamination against 1,535 training tasks\.NN: benchmark instances,EnE\_\{n\}/M8M\_\{8\}: exact/math\-aware overlap pairs, Contam\./Reviewed: contaminated/reviewed pairs\.The comparison texts retain the task objectives and necessary context\. For KOR\-Bench Cipher, we combine the cipher rules with the question\. For VitaBench andτ2\\tau^\{2\}\-bench, we use the full user\-request scenario, preserving its goals, known information, and constraints, including requirements that may be disclosed gradually during interaction\. No text is summarized or truncated, and reference answers, private scoring criteria, and expected execution outcomes are excluded from the comparison\.

### G\.2Text Overlap and Near\-Duplicate Retrieval

We apply Unicode NFKC normalization and lowercasing to the task descriptions, then tokenize them into contiguous sequences of Unicode letters, digits, and underscores\. Exact matching covers both the full normalized text and contiguous 13\-token and 14\-token windows with a stride of 1\. LetGn​\(x\)G\_\{n\}\(x\)denote the set of contiguousnn\-grams in task descriptionxx\. Exact\-span overlap between a training descriptionxxand an evaluation descriptionyyis defined as

En\(x,y\)=𝕀\[Gn\(x\)∩Gn\(y\)≠∅\],n∈\{13,14\}\.E\_\{n\}\(x,y\)=\\mathbb\{I\}\\\!\\left\[G\_\{n\}\(x\)\\cap G\_\{n\}\(y\)\\neq\\varnothing\\right\],\\qquad n\\in\\\{13,14\\\}\.\(9\)
To retrieve near\-duplicate tasks that do not share long verbatim spans, we also compute the Jaccard similarity between their 5\-gram sets,

J5​\(x,y\)=\|G5​\(x\)∩G5​\(y\)\|\|G5​\(x\)∪G5​\(y\)\|,J\_\{5\}\(x,y\)=\\frac\{\|G\_\{5\}\(x\)\\cap G\_\{5\}\(y\)\|\}\{\|G\_\{5\}\(x\)\\cup G\_\{5\}\(y\)\|\},\(10\)and the cosine similaritySTF​\(x,y\)S\_\{\\mathrm\{TF\}\}\(x,y\)between their unigram/bigram TF–IDF representations\. The former captures local phrase reuse, while the latter captures lexical similarity under changes in word order\. TF–IDF is fitted on the combined corpus of training tasks and the benchmark being compared, using logarithmic term frequency and smoothed inverse document frequency\. For mathematical and symbolic expressions, we additionally retrieve contiguous 8\-gram overlaps using a tokenizer that preservesLaTeXcommands, numbers, and operators\. Because these short spans may represent common formulas or interfaces, they supplement candidate retrieval rather than directly establish contamination\. We also report base\-2 unigram Jensen–Shannon divergence \(JSD\) to characterize differences in word distributions between the training corpus and each benchmark; this metric is not used to determine contamination\.

### G\.3Semantic Assessment of Candidate Pairs

Lexical similarity does not necessarily indicate task reuse, and a paraphrase of the same problem may not share long text spans\. We therefore combine multiple retrieval methods to select candidate pairs and assess whether they are substantive near\-duplicates based on the complete task descriptions\. For each benchmark group, the candidate set includes all full\-text and exact 13/14\-gram matches, the top 10 pairs by TF–IDF similarity, the top 5 by 5\-gram Jaccard similarity, and the top 5 by the number of shared math\-aware 8\-grams\. Each retrieval method contributes only pairs with a nonzero score, and the combined set is deduplicated before semantic review\.

Semantic assessment is performed bygpt\-5\.6\-lunawith reasoning effort set tohigh\. The reviewer reads both task descriptions in full and compares their core objectives, initial conditions, key objects or data, distinctive combinations of constraints, required transformations, and completion criteria\. A pair is classified as contaminated when one task is a direct copy or minor paraphrase of the other, or when renamed entities leave the distinctive instance structure and solution requirements unchanged\. Shared tools, domain knowledge, terminology, or common work patterns alone do not constitute contamination\. Each pair is labeled as non\-contaminated, contaminated, or uncertain, with supporting comparisons drawn from the task descriptions\.

### G\.4Decontamination Results

Table[9](https://arxiv.org/html/2610.13166#A7.T9)summarizes text similarity and semantic assessment results for each benchmark\. None of the 12 benchmark groups contains an exact match to normalized full text or a contiguous 13/14\-token window\. The maximum 5\-gram Jaccard similarity is 0\.006024, and the maximum TF–IDF cosine similarity is 0\.083445\. Math\-aware 8\-gram retrieval identifies 405 pairs with short\-span overlap, which are used for candidate selection alongside lexical nearest neighbors\. After combining and deduplicating the retrieval results, 190 candidate pairs undergo semantic review; none is classified as contaminated or uncertain\. These comparisons of task descriptions and semantic assessments find no evidence of evaluation\-task reuse in the training tasks, so all 1,535 training tasks are retained\.

## Appendix HCase Studies of Challenge\-Guided Reconstruction

We examine three cases of numerical calibration, distributed\-service recovery, and household benefits administration in which independent challenges exposed work lost during environment construction\. Each traces the initial execution, the resulting reconstruction, and the work observed in a subsequent independent challenge\.

### H\.1Radio\-Interferometric Calibration

The agent must calibrate a synthetic Northstar\-10 radio observation stored as a native MeasurementSet while preserving the raw measurements and metadata\. Calibration is evaluated on holdout and target data excluded from fitting\. The environment uses casacore, NumPy, and SciPy for data access and numerical computation\.

Case 1 \| Restoring numerical calibration work01 Initial constructionThe publicmscaltool includedsolve\-bandpassandsolve\-gain, which performed numerical fitting and wrote native calibration tables, so core implementation work was already packaged into the environment\.02 Independent challenge: successful, but compressedAfter identifying the fields, the challenger invoked the bundled solvers, applied the calibration, and checked residuals\. It adjusted the fitted field selection after a failed check, but did not need to implement the numerical calibration\.03 Reconstruction: leave the fit to the agentReconstruction removed the fitting routines but retained inspection, calibration application, and residual feedback\. It introduced distinct time\-varying responses for the two spectral windows and made the required solution axes and table conventions public\.04 Independent re\-challenge: feedback changes the modelThe fresh challenger inspected the data axes and public interfaces, implemented a fitting workflow, and revised its spectral\-window\-dependent parameters after observing high residuals\. It wrote and applied native calibration tables, checked that the raw data remained unchanged, and evaluated holdout and target data without fitting them\.Final weighted RMS was0\.8960\.896on the fitted calibrators,1\.7841\.784on holdout, and1\.9441\.944on target, all below the public threshold of2\.82\.8\. The independent run passed the verifier\. These scores describe the reconstructed task, not a comparison between task versions\.

#### What reconstruction restores\.

The initial challenger also passed, showing that task success alone does not reveal work completed in advance\. Reconstruction moved numerical modeling and implementation from the supplied tool to the agent while retaining the interfaces and feedback needed to complete the task\. The resulting trajectory connects model construction, residual\-driven revision, and independent validation\.

### H\.2RabbitMQ Recovery Across Broker and Application State

The agent must recover a three\-node RabbitMQ service from a network partition while preserving confirmed messages, resolving failed or uncertain publications, and preventing duplicate business effects\. The synthetic incident runs on real RabbitMQ brokers and AMQP clients, with firewall rules and persistent application state\. Five reconstruction rounds and six independent challenges turned application recovery from a possible branch into work required by the running environment\.

Case 2 \| From broker recovery to application recovery01 Initial challenge: recovery is largely prebuiltThe challenger used the suppliedpartitionctl heal, restarted one broker, and let the clients finish\. Automatic retry and idempotent consumption handled much of the application recovery, leaving a short operational path\.02 Rounds 1–2: reconstruct the live recovery stateThe redesigns removed the healing command and introduced three queues with different missing voting replicas\. Missing members and network faults were selected from live broker state rather than a fixed repair map\. Unresolved publications were kept in a durable outbox, and recovery had to preserve unrelated firewall policy\.03 Round 3: restore dependencies within application workThe workload changed from independent messages to 27 workflows of eight ordered operations\. Publishers retained event identities for reconciliation and resumption; consumers tracked predecessor completion and prevented duplicate business effects\. The intended recovery now depended on both broker health and the completion of earlier workflow steps\.04 Repeated challenges: the new work still does not occurIntermediate challenges still finished without the intended reconciliation work\. One run encountered no uncertain publications; in a later run, the client could reach its local queue leader despite the partition\. The recovery branch existed but was not needed in either execution\.05 Rounds 4–5: connect the fault to its application consequenceThe redesigns moved fault installation before client startup and connected the orders client to a runtime\-selected follower whose leader was across the partition\. The actual AMQP path now exposed the application failure that earlier versions could avoid\.06 Final independent challenge: recover the missing predecessorAfter restoring connectivity and queue voters, the challenger found 71 confirmed orders rows and onenackedfirst\-step event, with downstream consumer errors\. It retrieved the stored message body and original event ID, then republished with AMQP publisher confirms\. All 216 outbox rows became confirmed, every workflow reached step 8, and no duplicate business effects were observed\. The independent run passed\.

#### What reconstruction restores\.

Reconstruction linked network and replica repair to unfinished application work\. Repeated challenges showed that a recovery branch adds no workload unless the running environment actually triggers it\. The final run had to recover a specific missing event before dependent workflow steps could finish\.

### H\.3Family Enrollment Changes and Payroll Reconciliation

This case concerns a household coverage change following the loss of other insurance\. The agent must assess dependent eligibility and keep benefits enrollment, payroll deductions, and insurer records consistent\. The household, rules, and service are synthetic, modeling an employer’s benefits workflow through stateful public interfaces\. Four reconstruction rounds and five independent challenges developed a simple record\-update task into evidence\-based review and coordinated updates across systems\.

Case 3 \| From enrollment edits to evidence\-based reconciliation01 Initial challenge: a fixed update sequenceAfter inspecting the case, the challenger amended three plans, denied one dependent, and synchronized payroll and insurer records\. Most extra interactions came from discovering command syntax, not from analyzing evidence or revising decisions\.02 Rounds 1–2: connect coverage dates to downstream recordsPreviously posted deductions now required retroactive payroll adjustments\. A dependent’s age limit split coverage into consecutive periods, changing pay\-period calculations and insurer payloads\. Legacy insurer plan codes also had to be updated before the new records could be accepted\.03 Round 3: revise an already accepted caseThe starting state now contained committed enrollment, applied payroll, and an accepted insurer transaction, followed by a corrected dependent document\. The agent had to reopen the case, create a replacement version, and update both downstream systems without erasing the earlier records\.04 Re\-challenge: the evidence decision is still suppliedThe corrected document was already marked verified, the affected person was obvious, and each downstream issue had one clear remedy\. The challenger could still follow a fixed sequence once it had read the case\. Versioned updates alone had not restored the intended evidence analysis\.05 Round 4: make review outcomes change the decisionReconstruction introduced conflicting document claims and their source records\. One dependent had both a mismatching document and a corroborating alternative; another had an authentic document whose loss date failed the event\-date rule\. Public review and validation returned feedback that determined which people could be included in the revised coverage\.06 Final independent challenge: revise and propagate the decisionThe challenger rejected mismatching evidence, found the corroborating source, and revised its provisional enrollment after validation exposed the ineligible loss date\. It approved D\-4, denied D\-3 and D\-5, and preserved the age\-bounded coverage for D\-2\. It then committed version 6, applied a $312 payroll adjustment, and obtained insurer acceptance while retaining version 5\. The independent run passed\.

#### What reconstruction restores\.

The key change is that document review now determines the next action rather than confirming a decision already supplied by the environment\. An authentic document can still fail the eligibility rule, and an unsupported claim requires another source\. Once the household decision changes, its effective dates and source version must remain consistent across enrollment, payroll, and insurer acceptance\. The final trajectory therefore connects evidence comparison, feedback\-driven revision, and verified updates across systems\.

## Appendix IQualitative Analysis of Progressive Task Evolution

We examine three evolution lineages from two original tasks: two branches of photo\-library reconciliation and one hotel event\-planning lineage\. For each generation, we examine what changes from its immediate parent, why the previous approach is no longer sufficient, and which additional operations and checks are needed\. The photo branches show how one task can develop in different directions, while the hotel lineage shows how new constraints change earlier planning decisions\.

### I\.1Two Branches from the Same Photo\-Library Task

The shared parent asks the agent to reconstruct a curated PhotoPrism library from media exports, catalogs, and sidecars\. The work includes preserving distinct media files, organizing related representations, restoring curation and albums, and checking the native library after a complete rescan\. Table[10](https://arxiv.org/html/2610.13166#A9.T10)compares two three\-generation branches that start from identical parent packages\.

Table 10:Two photo\-library evolution branches from the same parent task\. Numbers indicate successive generations within each branch\.#### Branch A: reconciling changes in library state\.

This branch extends reconciliation from metadata edits to retirement and restoration, then to file grouping and primary\-rendition selection\. Each generation adds decisions that must precede ordinary updates\. For example, later destination edits may prevent the agent from applying a source retirement directly\. Likewise, splitting a file group in PhotoPrism can change file ownership and paths, so files must be re\-identified before their curation and sidecars are assigned to the resulting groups\.

#### Branch B: recovering identity across systems\.

This branch first requires the agent to infer file relationships from media evidence, then combines identity recovery with incremental synchronization into an independently edited destination\. The final generation extends identity reasoning to both systems when transformed destination files no longer match the checkpoint bytes\. The agent must establish which files represent the same photo before deciding which edits to merge\. Native indexing and rescanning then test whether these relationships and edits remain stable in the reconstructed library\.

### I\.2Hotel Event Scheduling

The original task asks the agent to coordinate lodging, activities, venues, catering, resources, and billing in a terminal\-accessible hotel management system\. All four versions retain the same ten activities, while three successive extensions introduce attendee flows, incident recovery, and resource logistics \(Table[11](https://arxiv.org/html/2610.13166#A9.T11)\)\.

Table 11:Three generations of hotel event\-planning evolution, retaining the same ten activities\.#### A local disruption requires coordinated recovery\.

In the second generation, Harbor Hall’s closure directly affects lunch and Workshop A\. Moving lunch to the Grand Ballroom, however, conflicts with the plenary session’s occupancy, including setup and teardown buffers\. In the independent run, the agent moves the plenary to Seaview, lunch to the Ballroom, and Workshop A to Maple\. Thus, two directly affected activities lead to three venue changes, which are committed in one atomic revision without changing any activity times\.

#### Resource feedback changes the recovery plan\.

In the third generation, two complete candidates are rejected because shared equipment cannot serve the proposed activity sequence\. A mobile display, for example, is released at 16:30 but needs another 15 minutes for teardown, 20 for transfer, and 20 for installation\. Its earliest ready time of 17:25 cannot support Workshop A’s original 17:15 start\. The accepted plan moves the activity to Oak, combines its installed whiteboard with the mobile display, and shifts the start to 17:30 on the public 15\-minute planning grid\.

Across these cases, evolution changes both what the agent must determine and how those decisions depend on earlier work\. New requirements connect identity recovery to metadata merging, venue changes to attendee flows, and resource availability to schedule revision, making dependency tracing, feedback\-driven revision, and integrated verification part of completing the original task\.

## Appendix JPrompt Templates

### J\.1Trajectory Filtering Prompt

The following prompt implements the three filtering criteria in Appendix[F](https://arxiv.org/html/2610.13166#A6)by reviewing complete trajectories and returning an evidence\-backedKEEP/DROPdecision for each input record\.

Trajectory Filtering PromptYou are an expert reviewer of terminal\-agent trajectories for supervised fine\-tuning\. Your task is to determine whether each complete multi\-turn trajectory provides a reliable and useful training example\.Read the entire conversation\. Do not substitute excerpts, keyword counts, command counts, or programmatic summaries for the original trajectory\. Base your judgment exclusively on the trajectory itself\. Do not access task packages, private verifiers, external benchmarks, or the internet\.Understanding the trajectory\-The initial user message typically contains the task description and the agent interaction protocol\.\-Subsequent user messages usually contain terminal observations produced by preceding commands, rather than new user requests\.\-Assistant messages contain reasoning, plans, and terminal actions\. One assistant turn may contain multiple commands\.\-Reasoning, including<think\>, analysis, and plan content, is not itself evidence of execution\. Evaluate it together with the actual actions and subsequent observations\.\-A Terminus\-2 trajectory may end with the terminal observation from its final command batch\. This is a normal ending and does not require an additional assistant confirmation\.\-Final success or failure is not sufficient to determine training value\. An incomplete trajectory or an honest stopping point at an unresolved obstacle may still provide a useful demonstration\.Evaluate only the following three dimensions\.1\. Trajectory validityIs the trajectory coherent and correctly ordered? Can actions be reliably associated with their terminal observations? Check for genuine context truncation, severe format corruption, execution in the wrong container, infrastructure failures, explicit refusal, or private\-answer leakage that compromises the demonstration\.Do not reject an entire trajectory because of one or two isolated invalid JSON responses, malformed commands, or parser errors\. If the agent recognizes the problem, restores valid interaction, and continues with a clear action–observation chain, this constitutes a learnable recovery process\. Treat protocol errors as an overall validity defect when they recur without reliable recovery or make action–observation correspondence uninterpretable\.Protocol recovery does not excuse independent integrity violations\. Reject trajectories whose core solution relies on private answers or hidden\-test leakage, internal\-state tampering, deleting runtime or database state to reset the task, or bypassing required task interfaces\.Distinguish failure to finish from lack of training value\. An unfinished trajectory can be retained when its main content demonstrates reliable environment understanding, root\-cause diagnosis, justified implementation, feedback\-based elimination of alternatives, correction of assumptions, or identification of unresolved obstacles\.An isolated incorrect final judgment or unsupported completion claim does not automatically invalidate all preceding work\. Determine whether the error compromises the core action chain\. Retention is possible when the main process remains reliable and useful\. Reject the trajectory when an incorrect strategy dominates the solution, central conclusions contradict observations, or the overall example primarily demonstrates an invalid way to complete the task\.2\. Environment\-grounded progressAre important actions supported by actual terminal feedback? Does the agent use files, logs, command outputs, errors, and test results to advance the task and adjust its approach when necessary?Identify persistent disregard of feedback, repeated ineffective commands, random attempts, unmotivated minor edits, and unsupported completion claims\. Evaluate these behaviors in context: unsuccessful attempts can be valuable when their observations inform subsequent diagnosis, revision, or recovery\.3\. Multi\-turn training valueDoes the trajectory demonstrate a multi\-turn terminal problem\-solving process worth learning? Do interactions contribute meaningful evidence, implementation, state changes, decisions, verification, or recovery?Consider whether the apparent interaction could be trivially replaced by one obvious edit, a fixed script, or a mechanical loop\. Do not count SSH, Docker, or Harbor infrastructure operations, waiting, repeated polling, or irrelevant directory browsing as evidence of task difficulty\.Do not judge training value solely from trajectory length, command count, the presence of mistakes, or final task success\.DecisionKEEP:The trajectory is valid, grounded in the environment, and provides sufficient multi\-turn training value\. Final failure, incomplete execution, or an honest stopping point does not preclude KEEP when the main process is reliable and instructive\.DROP:The trajectory is globally invalid; its core solution relies on leakage, state tampering, or interface bypass; its behavior substantially degenerates or lacks environmental grounding; or errors dominate the main action chain with little reliable multi\-turn learning value\.Do not assign DROP solely because the task was not completed\.Disputed casesIf prior review claims are provided, treat them as hypotheses to verify, not as facts or votes\. Return to the original conversation to establish whether the relevant commands were executed, whether observations support the claims, whether the issue was subsequently repaired, and whether it compromises the core solution\. Explain how the trajectory evidence resolves the disagreement\.OutputReturn exactly one review for each input record:[⬇](data:text/plain;base64,ewogICJyZWNvcmRfaWQiOiAiPGlucHV0IHJlY29yZCBJRD4iLAogICJ2ZXJkaWN0IjogIktFRVAgb3IgRFJPUCIsCiAgInJlYXNvbiI6ICI8Y29uY2lzZSBqdXN0aWZpY2F0aW9uPiIsCiAgImV2aWRlbmNlIjogWwogICAgIjxzcGVjaWZpYyBldmlkZW5jZSBmcm9tIHRoZSB0cmFqZWN0b3J5PiIsCiAgICAiPHNwZWNpZmljIGV2aWRlbmNlIGZyb20gdGhlIHRyYWplY3Rvcnk+IgogIF0KfQ==)\{"record\_id":"<inputrecordID\>","verdict":"KEEPorDROP","reason":"<concisejustification\>","evidence":\["<specificevidencefromthetrajectory\>","<specificevidencefromthetrajectory\>"\]\}Copyrecord\_idexactly\. Provide two to four concrete pieces of evidence\. Do not omit, duplicate, or invent records\.

### J\.2Benchmark Decontamination Prompt

The following prompt implements the candidate\-pair assessment in Appendix[G](https://arxiv.org/html/2610.13166#A7)by comparing complete task descriptions and returning an evidence\-backedCLEAN,CONTAMINATED, orUNCERTAINverdict\.

Benchmark Decontamination PromptRole and objectiveYou are an expert reviewer of contamination between training data and evaluation benchmarks\. Compare each candidate Terminal/CLI task with its paired public evaluation problem to determine whether the candidate leaks, copies, or substantially reproduces that problem\.Read the complete descriptions of every pair inassigned\-pairs\.jsonl\. Similarity scores are retrieval signals, not conclusions\.Assessment criteriaDetermine whether exposure to the training candidate would make the evaluation problem substantially easier because the two are the same or nearly the same task\. Compare their core objectives, initial problems, key objects or data, required transformations, distinctive constraints, key solution paths, and final completion criteria\.\-CONTAMINATED:A direct copy or minor rewording, or a renamed task that retains sufficiently distinctive instance details, constraint combinations, and solution structure to remain substantially the same problem\.\-CLEAN:The tasks share only a domain, tools, general terminology, or common professional work patterns; their specific instances, states, constraints, and required work are independent\.\-UNCERTAIN:The evidence is genuinely close, but the public descriptions alone do not permit a reliable distinction\. Do not classify ordinary topical similarity as UNCERTAIN\.Phrase overlap arising only from templates, common interfaces, mathematical notation, or standard industry expressions does not constitute contamination\. Conversely, the absence of long n\-gram overlap does not rule out a systematic rewrite of the same instance\.OutputWrite exactly one record for eachpair\_idtoreviews\.jsonl:[⬇](data:text/plain;base64,ewogICJwYWlyX2lkIjogInBhaXItLi4uIiwKICAidmVyZGljdCI6ICJDTEVBTiIsCiAgInJlYXNvbiI6ICI8Y29yZSBqdXN0aWZpY2F0aW9uPiIsCiAgImV2aWRlbmNlIjogWwogICAgIjxzcGVjaWZpYyBjb21wYXJhdGl2ZSBldmlkZW5jZT4iLAogICAgIjxzcGVjaWZpYyBjb21wYXJhdGl2ZSBldmlkZW5jZT4iCiAgXQp9)\{"pair\_id":"pair\-\.\.\.","verdict":"CLEAN","reason":"<corejustification\>","evidence":\["<specificcomparativeevidence\>","<specificcomparativeevidence\>"\]\}Copypair\_idexactly\. The verdict must beCLEAN,CONTAMINATED, orUNCERTAIN\. Write the complete output to a temporary file, then rename it atomically\. Check that the JSONL is parseable and that no records are missing or duplicated\.Now readassigned\-pairs\.jsonland complete the review\.

Similar Articles

Terminal-World: Scaling Terminal-Agent Environments via Agent Skills

arXiv cs.CL

Terminal-World introduces a fully automated pipeline that uses agent skills to synthesize high-quality training data for terminal agents, enabling models to outperform baselines with only 1.2% of the training data. The method co-derives task instructions, environments, and teacher trajectories from skill primitives.

CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agents

Hugging Face Daily Papers

CLI-Universe is a synthesis engine that generates verifiable terminal-agent tasks via multi-dimensional capability taxonomy and evidence-guided research, producing a distilled dataset of 6,000 trajectories. Fine-tuning Qwen3-32B on this dataset achieves 33.4% on Terminal-Bench 2.0, setting a new state-of-the-art for open-source models at or below 32B parameters.