arXiv:2611.01927cs.AINov 2026

Manuscript Offprint

arXiv:2611.01927

Is Your Long-Horizon Benchmark Really Deep? Measuring and Synthesizing Depth in Terminal Tasks

Yu Jiang, Yue Huang, Hang Hua, Yuyang Wu, Zixuan Weng, Olexandr Isayev, Yue Zhao, Zinan Lin, Xiangliang Zhang

Abstract

Long-horizon terminal tasks are used to evaluate and train agents. Human-curated datasets are scarce, so many synthesis methods have emerged. They usually measure the length of a task by the turns a model needs to pass it, and its difficulty by labels the LLM sets during generation. We find, however, that the turn count largely reflects the habits of the model, not only the demands of the task, and that the labels barely track how often models pass. We describe a terminal task by its work, the number of operations it requires, and its depth, the number of turns that must happen in sequence because the commands of each turn can only be chosen after reading the output of the previous one. Estimating depth as the smallest turn cap, stated to the agent, under which the task passes, we audit 734 tasks from six existing datasets. Synthesis has mostly added work, not depth: 94% of the solved synthetic tasks pass within three turns, yet depth, unlike the turn count, predicts difficulty beyond work. We propose DEPTH, in which a generation agent writes each task one segment at a time in a real software environment, carrying out each segment before writing it and starting the next from the state it leaves. Our 105 tasks exceed every audited dataset in depth and work, and none of six current models passes half of them. Fine-tuning Qwen3-8B on runs from these tasks improves it on two terminal benchmarks.

Code

Dataset

1 Introduction

An agent working in a terminal issues shell commands in each turn, reads their output and decides what to run next, which lets it install software, configure services and debug programs (Merrill et al., 2026). Completing long tasks reliably, however, remains a challenge (Kwa et al., 2025; Sinha et al., 2026): the agent must keep track of what it has learned about the environment over many turns, and an early mistake can derail every later step.

Long-horizon terminal tasks are therefore needed both to evaluate agents and to train them. Each task bundles an instruction, an environment and an automatic verifier (Merrill et al., 2026; Harbor Framework Team, 2026), and training needs such tasks in large numbers (Pi et al., 2026; Raoof et al.,

1 Introduction

A PREPRINT

Figure

Figure 1. Work W and depth D, as exchanges between the model and a terminal; time runs downward. High W: many independent operations that fit in one turn. High D: a chain of steps, each decided only after reading the output of the previous one. The commands are illustrative.

2026; Peng et al., 2026). Two kinds of methods provide them. Human-curated sets are written or reviewed by people: Terminal-Bench 2.0 (TB2; Merrill et al., 2026) consists of tasks written by people, and TerminalWorld-Verified (TW; Chu et al., 2026) builds tasks from real terminal recordings and has people review them. Synthesis methods generate tasks automatically (Cheng et al., 2026): TMax (Ivison et al., 2026) and SETA (Shen et al., 2026) generate tasks in bulk with controlled difficulty, CLI-Gym (Lin et al., 2026) derives repair tasks by breaking Dockerfiles, FACET (Shi et al., 2026b) composes skill packages into scenarios, and RST (Li et al., 2026b) extends verified tasks over recursive rounds, each perturbing the environment and rewriting the instruction and verifier.

Both kinds have limitations. Human-curated sets are reliable but small and costly to extend, far from the numbers that training needs. Synthesis methods produce tasks in any number, but it is unclear whether these tasks are long in the sense that matters. They, like recent long-horizon benchmarks (Li et al., 2026a), report length as the number of turns or steps a model takes under a loose turn limit (Ivison et al., 2026; Shi et al., 2026b; Li et al., 2026b; Zou et al., 2026), a count that reflects the habits of the model as much as the demands of the task (Meng et al., 2026; Desai et al., 2026). Difficulty is given by labels set during generation (Ivison et al., 2026; Shen et al., 2026), which record what was requested rather than what models find hard. Most of these pipelines verify only that each new task is solvable. Pipelines that aim for later steps to build on earlier ones obtain this by construction, such as chaining subtasks, adding hops or following dependency graphs (Xie et al., 2026; Shi et al., 2026a; Fan et al., 2026; Deng et al., 2026), or check it with an LLM that reads the task or a trajectory (Zou et al., 2026; Wu et al., 2026). Neither measures whether a later step requires the agent to read the output of an earlier one, so a step can add operations without requiring the agent to look at the environment. When we state a turn cap in the instruction and stop the agent once it is reached (turn-capped evaluation), most synthetic tasks pass within a few turns; in many of them the agent issues every command in its first turn and never reads any output, so the task reduces to single-turn generation. Solving these problems matters for both uses: a benchmark should test whether an agent can sustain a long interaction, and training data should contain such interactions.

What makes a terminal task long? Many operations alone do not: a task whose operations are independent can be completed by one script in one turn. A task is long when the agent must, again and again, read the output of one command before it can decide the next. In the human-curated tasks that take many turns under a cap, this need arises from details of real software that the agent

2 Preliminaries

A PREPRINT

does not know in advance, such as the default configuration of a specific version, the interface of an old release or a truncated file in a real format; in systems with several components, fixing one such problem often exposes the next. Configuration and version details are a common cause of failures in deployed systems (Yin et al., 2011), and language models handle rarely documented and version-specific knowledge poorly (Kandpal et al., 2023; Misra et al., 2026). Task length thus has two separate dimensions, the amount of work and the number of turns that must happen in sequence, and the second largely comes from environments the agent cannot predict.

Based on this observation, we describe a terminal task by two quantities used in parallel computing, its work and its depth (Blelloch, 1996). As illustrated in Figure 1, the work W∗W^* is the number of operations needed to complete the task when the state of the environment is known; the depth D∗D^* is the number of turns that must happen in sequence, because the commands of each turn can only be chosen after reading the output of the previous one. We estimate W∗W^* by the number of lines WW of the reference solution, and D∗D^* by turn-capped evaluation: the smallest cap under which the task passes is recorded as DD. With these estimates we audit six existing datasets and find that existing synthesis methods primarily increase work rather than depth. We also find that tasks with both high work and high depth are substantially more challenging for current models.

To obtain tasks that are large in both, we propose DEPTH, in which a generation agent Derives Each segment of a task by Performing and Testing it in a real software environment, Handing the state it leaves to the next segment. Each task consists of segments delivered one at a time in the same session, so later segments depend on what earlier ones changed. The resulting tasks exhibit greater work and depth than any of the six audited datasets, while providing meaningful discrimination across models with different capabilities. As shown in Table 2, even frontier models achieve pass rates below 50%, highlighting the difficulty of these tasks. Beyond evaluation, trajectories collected from these tasks also serve as training data: fine-tuning a small open model on them improves its performance on existing single-instruction terminal benchmarks (Merrill et al., 2026; The Terminal-Bench Team, 2026; OpenThoughts Agent team et al., 2026).

Our contributions are as follows.

  1. Measurement and audit. We describe terminal-task length by work W∗W^* and depth D∗D^*, estimate DD per task by turn-capped evaluation, and use it to audit six existing datasets, finding that synthesis methods mainly add work.

  2. Construction and evaluation. We build deep terminal tasks from real software environments by segmented generation, and show that they are substantially deeper than existing datasets and challenging for current models.

  3. Training. We show that fine-tuning Qwen3-8B (Yang et al., 2025a) on trajectories from our tasks improves its performance on two existing terminal benchmarks.

We discuss related work in Appendix A.