Manuscript Offprint
arXiv:2611.01927Is Your Long-Horizon Benchmark Really Deep? Measuring and Synthesizing Depth in Terminal Tasks
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 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 is the number of operations needed to complete the task when the state of the environment is known; the depth 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 by the number of lines of the reference solution, and by turn-capped evaluation: the smallest cap under which the task passes is recorded as . 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.
-
Measurement and audit. We describe terminal-task length by work and depth , estimate per task by turn-capped evaluation, and use it to audit six existing datasets, finding that synthesis methods mainly add work.
-
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.
-
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.
The agent sees only and the container, never or .
A PREPRINT
Turns and runs. The agent acts through a harness that relays commands and outputs between the model and the container (terminus-2 (Merrill et al., 2026) in this paper). In turn , the agent writes one reply containing a batch of commands , possibly a script with branches and loops; the harness executes and returns the terminal output . The harness limits the length of a reply, truncates long outputs and stops waiting for a command after a time limit. A run has turns, counted over all segments. Let be the state in which the agent ends segment , with if the run stops earlier. A run passes if
In turn-capped evaluation with cap , the agent is told that at most turns are available, and the harness stops the run after turn , so .
Work and depth. A strategy chooses each batch from what the agent has seen, in segment , with general knowledge built into . Let be the number of turns needs to pass from initial state ( if it never passes), and let be the set of initial states that differ from only in details the instruction leaves open, such as file contents, versions and default settings, and that solves once adapted to these details; before acting, the agent cannot tell them apart, as in a partially observable environment. The depth of is
the fewest turns that suffice whichever state in the agent faces. thus counts rounds of interaction between the model and the terminal, as adaptive complexity counts rounds of queries (Balkanski & Singer, 2018), rather than dependencies between operations: a dependency that a batch can resolve by branching on the output of its own commands adds no turn, and two turns can be merged only if the later commands, branches included, can be written within one reply without reading the earlier output. Merging is limited because a reply has bounded length and the model takes no part while a batch runs: a batch can branch only on outcomes the model lists in advance, and a step that depends on an output it could not anticipate, such as an unfamiliar error or code to be patched, needs a turn of its own. Turns spent reading long outputs or waiting for slow commands also count. Let be the set of command sequences, written in any number of turns, that pass from when is known and the harness limits on reply length and waiting time are lifted; contains . The work of is
where counts lines, one command per line and each line of file content written by counted separately, summed over segments. Unlike , is taken at alone, so that the cost of not knowing the state falls entirely on : when is known, nothing needs to be observed, so exploration and error recovery count toward but not .
Given a set of models and a set of caps , let if a run of a model in passes from under cap . We use , the smallest cap under which a model in passes in our evaluation protocol, as an empirical estimate of . Unlike the idealized , depends on the models, the harness and the single state , so it is an estimate rather than a bound. We use the number of non-blank, non-comment lines of , summed over segments, as an estimate of .
3 Method
As shown in Figure 2, DEPTH has two parts. The first measures depth by turn-capped evaluation over a set of models; we apply it to existing datasets and to our own tasks. The second builds tasks whose depth comes from the environment rather than from how the instruction is written: a generation agent
A PREPRINT

Figure 2. Overview of DEPTH. Audit measures depth by runs of two models under stated turn caps and work by the lines of the reference solution. Pipeline builds multi-segment tasks from real software environments: for each segment, the generation agent writes the instruction, carries the segment out in the container, and then writes the solution and the checks. Train keeps the segments a run passes in a row and cuts runs where the context is compressed. The turn caps, the solution length and the commands are illustrative.
carries out each segment in a real software environment before writing it down. Runs on these tasks also serve as training data.
3.1 Measuring Depth
The number of turns a model takes under a loose limit reflects how the model works as much as what the task requires (Meng et al., 2026; Desai et al., 2026). We use a stated cap to measure the task: the agent is told the cap and stopped once it is reached, and the smallest cap under which the task passes serves as an estimate of .
Caps. All datasets share the caps . For a model , let if passes the task under cap . The estimate from is
A task that passes only without a cap is recorded as above the largest cap, and a task that never passes gives no estimate.
Model set. Once told the cap, models differ widely in how far they merge commands into fewer turns, and a model that merges poorly overestimates the depth. We therefore measure every task with a set of models and take the smallest estimate,
over the models that give one. In this paper, consists of DeepSeek-V4.1-Flash (DeepSeek-AI et al., 2026) and GLM-5.3-Flash (Z.ai, 2026a). We show more details in Appendix B.
A PREPRINT
3.2 Seed Environments
We draw seed environments from public terminal-task packages, mostly the 1,530 packages of Terminal-World (Chu et al., 2026); each package comes with a software environment built from a Dockerfile. After filtering by rules, an LLM judge rates each environment on whether its components are real software rather than stand-ins, whether several of them work together, whether the software is uncommon, and whether it can support several segments of work. Keeping at most one environment for each kind of system, we collected 136 seed environments. Generation and evaluation both run without network access, so the generation agent meets the problems the evaluated agent will meet, and reference solutions can be replayed later.
3.3 Segmented Generation
When a whole task is generated in one pass, it is hard to ensure that the intermediate states reached while completing it depend on one another. We instead generate a task segment by segment inside the container: a generation agent, an LLM agent working in the seed environment, carries out each segment and writes the next one from the state it leaves.
Carrying out before writing. The agent first explores the environment and plans one overall goal that a user of this software would pursue, split into segments. For segment , it writes , carries out the segment in the container, and then writes and from what the software actually did. states the goal, the deliverables that will be checked and the constraints, and refers to earlier results by name; it does not say how to do the work or what will go wrong. As generation proceeds, a clean container replays for , where is the state reached by running from state , so that does not rely on changes the agent made by hand.
Key steps from observed problems. Each segment has at least one key step: a step where the usual way of doing it goes wrong in this environment, with an error or silently, and only running the commands reveals it. We write for with its key step removed.
Dependence between segments. Let be the results of segments, such as data, files, accounts or configuration, that hold in state . Segment must use a result in
which exists only once the key step of segment is done; the evaluated agent thus has to read the output and change course at the key step. The last segment performs one operation on the whole system, such as moving it to a new data directory, after which earlier results must still hold, .
3.4 Verifier Design and Acceptance
The verifier decides what counts as completing a segment, and thus which steps an agent cannot skip: weak tests accept invalid solutions (Yu et al., 2025), and a key step that the verifier does not see adds no depth. The agent writes each under three rules, using a fixed library of comparison functions.
Outcomes observed through the software. A check asks the running system with its own tools: a client gets an answer from the service, the software's validator accepts the configuration, a query returns the right rows. Checks do not look for particular settings or commands, so any correct way of reaching the goal passes. The checks of the last segment, , examine the results of all earlier segments again.
Tied to the key step. The agent writes so that it fails both on the state before segment and on the state that leaves, that is, at least one of its checks fails in each case:
A PREPRINT
The first condition, common in task verification (Jimenez et al., 2024), makes the checks test the work of segment ; the second makes them see its key step.
Stated in the instruction. Every name a check of relies on, such as a path, a port or an account, must appear verbatim in , while the fixes of key steps must not. An agent therefore knows what will be checked but not how to get there.
Acceptance. A task is accepted if replaying from in a fresh offline container passes every segment:
Acceptance rests on this replay. The conditions in (8) guide how the agent writes the checks, and we record how often they hold by replaying accepted tasks with parts of removed, such as a key step. We show more details in Appendix F.
3.5 Training Data
We turn runs on our tasks into data for supervised fine-tuning (SFT). We collect runs without a turn cap from the six models we evaluate, and from each run we keep the segments that pass in a row from the first one. These runs often exceed the context window of the model being trained, and at evaluation terminus-2 then compresses the context into a summary of the work so far and questions and answers about it. We therefore cut each run where terminus-2 would compress it and start the next sample from this summary and these questions and answers, so that the trained model also learns to continue after a compression. We fine-tune Qwen3-8B on the resulting samples.
4 Experiments
We first audit existing datasets with and test whether tracks difficulty, then measure our tasks, evaluate six models on them, and fine-tune a small model on their runs.
4.1 Setup
Datasets. We audit four synthetic datasets, TMax (Ivison et al., 2026), FACET (Shi et al., 2026b), SETA (Shen et al., 2026) and RST (Li et al., 2026b), and two human-curated ones, TB2 (Merrill et al., 2026) and TW (Chu et al., 2026), sampling 734 tasks in total. Due to the implementation of the measurement method, a task that no model passes yields no estimate of . Tasks that need GPUs, large downloads or privileged containers are excluded. We show more details in Appendix C. Our dataset contains 105 tasks.
Measuring . Every task is measured with the two models in , both running in terminus-2 (Harbor Framework Team, 2026); adding GLM-5.3-Flash lowers for 25% of the existing tasks it was run on and 7% of our solved tasks. We show more details in Appendix E. A task counts as solved if DeepSeek-V4.1-Flash passes at least one of two runs without a cap, and statistics of are taken over solved tasks. We also record , the number of turns in a passing run of DeepSeek-V4.1-Flash without a cap, which is the kind of turn count existing work reports.
Evaluated models. We evaluate DeepSeek-V4.1-Flash, GLM-5.3-Flash, MiMo-V2.6-Flash (Xiaomi LLM-Core Team et al., 2026), GPT-6 Luna (OpenAI, 2026c), GPT-6.1 Sol (OpenAI, 2026b) and Claude Sonnet 5.5 (Anthropic, 2026b) on our tasks, all in terminus-2. Each model runs every task twice without a cap, and a run stops at the first segment it fails.
Metrics. pass@1 (Chen et al., 2021) is the share of runs that pass, averaged within each task and then over tasks. The fraction of segments completed is the number of segments a run passes in a row divided by .
A PREPRINT

Figure 3. Depth and work of the solved tasks of seven datasets. Left: one dot per task, on log scales and jittered horizontally; grey dots are synthetic datasets, slate ones human-curated datasets and clay ones ours; > 80 means passed only without a cap. Right: distributions of and per dataset; boxes span the 25th to 75th percentiles and whiskers the 10th to 90th. Dashed lines mark the 90th percentiles over the four existing synthetic datasets ().
Table 1. Audit of six existing datasets and ours. Solved: passed by DeepSeek-V4.1-Flash in at least one of two runs without a cap. Reported: length reported by the original paper (mean turns). : shares of solved tasks. : fewest turns among passing runs without a cap. and are medians over solved tasks, and is the mean of . Minutes: time the agent runs in the container (median). Tokens: tokens (thousands) in the context at the end of the run (mean). Minutes and Tokens are from the run that gives .
| Dataset | Sampled | Solved | Reported | Minutes | Tokens | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Synthetic | |||||||||||
| TMax | 100 | 94 | 16.3 | 100% | 0% | 1 | 5 | 58 | 5.8 | 0.9 | 6.6 |
| FACET | 210 | 53 | 11.86 | 92% | 8% | 2 | 7 | 204 | 8.2 | 2.1 | 19.3 |
| SETA | 100 | 91 | – | 98% | 2% | 1 | 5 | 25 | 7.0 | 0.8 | 8.4 |
| RST | 200 | 58 | – | 79% | 21% | 2 | 7 | 119 | 8.2 | 1.2 | 11.0 |
| Human-curated | |||||||||||
| TB2 | 39 | 37 | – | 89% | 11% | 1 | 8 | 44 | 10.9 | 2.2 | 16.3 |
| TW | 85 | 68 | – | 90% | 10% | 1 | 9 | 11 | 11.6 | 1.5 | 14.4 |
| Ours | 105 | 54 | – | 0% | 100% | 40 | 45 | 315 | 52.8 | 12.7 | 67.0 |
4.2 Auditing Existing Datasets
Synthetic datasets are mostly shallow. Figure 3 places the solved tasks of each dataset on the depth-work plane and shows how their and are distributed, and Table 1 summarizes each dataset. Of the 296 solved synthetic tasks, 278 (94%) have . In TMax and SETA, nearly nine in ten tasks have : a model passes them by issuing every command in the first turn, without reading any output.
Turn counts overstate depth. The number of turns a model takes without a cap is several times . TMax and FACET report 16.3 and 11.86 turns on average, while the median of their solved tasks is 1 to 2 (Table 1). On the 88 solved TMax tasks with Gemini runs released alongside the dataset, Gemini takes a median of 8 turns while the median is 1. Across the six datasets, 96 of the 170 tasks with between 6 and 10 have .
A PREPRINT


Figure 4. Depth against the pass rates of other models and the difficulty ratings of task authors. Left: rank partial correlation of the pass rate with D controlling for W (filled) and with N controlling for D (open), with 95% CIs; pass rates are public ones for TB2 and TW and the mean of four evaluated models for ours. Right: distribution of D among the sampled TB2 tasks, by the rating their authors gave (easy merged into medium); numbers are task counts.
Synthesis adds work rather than depth. The median W of solved tasks is 68 lines for the synthetic datasets and 17 for the human-curated ones, yet the share with is no higher for the synthetic datasets (6% versus 10%). RST, which extends tasks over recursive rounds, has the deepest synthetic tasks and a median W of 119 lines, and 79% of its solved tasks still have . The human-curated sets hold a small deep tail: 11 of their 105 solved tasks have , and runs on these tasks spend their turns waiting for slow commands, reading long outputs and recovering after version defaults, old command-line interfaces or truncated files mislead the model.
4.3 Depth Predicts Difficulty
Public pass rates. TB2 and TW release per-task results of other models: the mean pass rate over 15 leaderboard submissions for TB2, and the share of eight models that solve each task for TW. We call these public pass rates. We relate them to D by rank partial correlation (Conover & Iman, 1981), which replaces each variable by its rank and correlates two of them after removing the linear effect of a third, such as W.
Depth predicts difficulty beyond work. The left panel of Figure 4 shows that, once W is controlled, tasks with larger D have lower public pass rates: the rank partial correlation is -0.31 on the 105 solved TB2 and TW tasks and -0.49 on TB2 alone. On our tasks, the same test uses the mean pass rate of GLM-5.3-Flash, GPT-6 Luna, MiMo-V2.6-Flash and GPT-6.1 Sol; because GLM-5.3-Flash is one of them, D here comes from DeepSeek-V4.1-Flash alone. Over the 52 solved tasks with results from all four, the correlation is -0.29 (95% CI -0.53 to -0.02), close to that of the human-curated sets, and -0.31 when the two are pooled.
Turn counts do not predict difficulty once depth is known. Controlling for , is unrelated to the public pass rate on TB2 and TW (+0.06, 95% CI -0.18 to +0.26; open circle in Figure 4).
Difficulty labels from generation barely track pass rates. As Figure 8 shows, the labels set during generation correlate with the released pass rates at only -0.07 to -0.11, and those in the task files of TW not at all, while the ratings of TB2 authors reach -0.46.
Depth agrees with the ratings of task authors. Of the six datasets, only TB2 states that its difficulty labels are written by people: each task author rates the task as easy, medium or hard. Nine of the 11 sampled tasks rated hard have , against 8 of the 28 rated easy or medium (right panel of Figure 4). On the 37 solved tasks, the rank partial correlation of the rating with D controlling for W is +0.55 (95% CI +0.29 to +0.75), while those of W and N with the rating, each controlling for D, are not significant (+0.16 and -0.28, both CIs containing zero).
A PREPRINT

Figure 5. D after the segments of a task are merged into one instruction, measured from the original D downward. Numbers are task counts.
Only tasks large in both are harder. Splitting the TB2 and TW tasks at and at the median , the tasks large in both have a mean within-dataset percentile of the public pass rate of 0.29 (lower is harder), against 0.53 to 0.59 for the other three groups; a task large in only one of the two is not harder.
4.4 Our Tasks
Our tasks are deep and large. Each of the 105 tasks comes from a different seed environment and has three to six segments, six for most. DeepSeek-V4.1-Flash solves 54 of them, and 44 of these have (Figure 3). Their median is 315 lines, above the 90th percentile of over solved tasks of the existing synthetic datasets (226 lines), and their median is 45 turns, against 5 to 9 for the existing datasets (Table 1).
Depth does not come from delivering segments. Each segment takes at least one turn, so is at least the number of segments, at most six, while 44 tasks have . To remove this bound, we merge the segments of 25 randomly sampled tasks into one instruction and measure again. As shown in Figure 5, does not decrease for 68% of them. Of the tasks whose drops, most drop by only one cap, suggesting that depth comes mainly from what the tasks require.
Depth does not come from the seed environments. Of the 54 seed environments of our solved tasks, 35 are released with an original task whose can be measured. Paired with our tasks from the same environments, these original tasks have in 34 pairs and in 26, while ours have and the higher in all 35 (sign test, ).
Checks see key steps and the dependence between segments. When we replay reference solutions with parts removed, the checks of a segment fail before the segment is done in 601 of 602 segments (99.8%) and fail when its key step is removed in 598 of 604 (99.0%). With the key step removed, the next segment also fails in 421 of 500 cases (84.2%), so later segments build on what the key step produces. We show more details in Appendix F.
Cost. Generation cost 1.08 per accepted task, excluding evaluation and the measurement of .
4.5 Evaluating Models
Our tasks separate models, and frontier models pass fewer than half. In Table 2, pass@1 ranges from 17% for GLM-5.3-Flash to 47% for Claude Sonnet 5.5, a spread of 30 points, with GPT-6.1 Sol at 44%. Of the 90 tasks with results from all six models, 29 are passed by none.
Long horizons amplify per-segment gaps. Figure 6 follows runs segment by segment. We summarize how reliably a model completes one segment by the geometric mean of its conditional pass rates, the share of runs reaching a segment that pass it, which ranges from 0.88 for Claude Sonnet 5.5 to 0.74 for GLM-5.3-Flash. A gap of at most 0.14 per segment compounds over six segments into a nearly threefold gap in the share of runs that pass them all (47% versus 16%), consistent with how small differences in per-step reliability compound over long tasks (Sinha et al., 2026).
5 Conclusion
A PREPRINT

Figure 6. Runs segment by segment. Left: share of runs that pass segment , among runs on tasks with at least segments. Right: the per-segment pass rate, the geometric mean of the conditional pass rates, next to the share of runs that pass all six segments, on one scale. Values are pooled over runs rather than averaged per task as in Table 2.
Table 2. Results of six models on our tasks. Effort: reasoning effort (–: not configurable). pass@1: share of passing runs, averaged within each task and then over tasks. Segments: mean fraction of segments passed. Minutes: time the agent runs in the container. Tokens: tokens (thousands) in the context at the end of a run.
| Model | Effort | pass@1 (%) | Segments | All runs | Passing runs | ||||
|---|---|---|---|---|---|---|---|---|---|
| Turns | Minutes | Tokens (K) | Turns | Minutes | |||||
| Proprietary | |||||||||
| Claude Sonnet 5.5 | high | 47 | 0.70 | 36 | 10.4 | 40.3 | 38 | 11.1 | |
| GPT-6.1 Sol | medium | 44 | 0.69 | 32 | 5.7 | 29.0 | 34 | 6.1 | |
| GPT-6 Luna | medium | 20 | 0.43 | 35 | 6.9 | 32.5 | 38 | 7.0 | |
| Open-weight | |||||||||
| DeepSeek-V4.1-Flash | high | 40 | 0.64 | 46 | 13.5 | 58.5 | 53 | 14.9 | |
| MiMo-V2.6-Flash | – | 30 | 0.50 | 48 | 39.5 | 50.0 | 62 | 45.8 | |
| GLM-5.3-Flash | max | 17 | 0.38 | 26 | 24.6 | 37.3 | 43 | 32.6 | |
4.6 Fine-Tuning
Setup. We fine-tune Qwen3-8B (Yang et al., 2025a) on 4,941 samples built from 1,272 runs on our tasks and evaluate it in terminus-2 on Terminal-Bench 2.1 (TB2.1; The Terminal-Bench Team, 2026) and OpenThoughts-TBLite (TBLite; OpenThoughts Agent team et al., 2026), with three runs per task. None of the tasks used for training is built from either benchmark. Both benchmarks give all requirements in one instruction. The baseline is the base model in the same non-thinking mode with the same sampling parameters.
Fine-tuning improves performance on both TB2.1 and TBLite. As Figure 7 shows, pass@1 rises from 2.6% to 4.9% on TB2.1 and from 3.4% to 9.1% on TBLite, and the fine-tuned model also exceeds the thinking mode of the base model on both. Runs on tasks delivered in segments thus carry over to tasks given in one instruction.
5 Conclusion
We presented DEPTH, which measures the depth of a terminal task, the number of turns that must happen in sequence, by turn-capped evaluation, and builds tasks that are large in both work and depth. The measurement shows that existing synthesis methods have mostly added work rather than depth,
A PREPRINT

Figure 7. Qwen3-8B before and after fine-tuning on runs from our tasks. We fine-tune and evaluate in the non-thinking mode; the thinking mode of the base model is shown for reference. Bars are the mean pass@1 over three runs, and error bars one standard deviation.
and that once work is controlled, deeper tasks are harder for other models. By having a generation agent carry out each segment in a real software environment and start the next segment from the state it leaves, DERTH builds 105 tasks that are deeper and larger than those of every audited dataset; frontier models pass fewer than half of them, and fine-tuning a small open model on runs from these tasks improves it on two existing terminal benchmarks. These results suggest that the length of a task should be measured rather than assumed, and we recommend that builders of benchmarks and training data report depth alongside work.
References
Anthropic. Introducing Claude Opus 5. https://www.anthropic.com/news/claude-opus-5, 2026a. Accessed 2026-10-17.
Anthropic. System card: Claude Sonnet 5.5. https://www.anthropic.com/claude-sonnet-5-5-system-card, 2026b. Accessed 2026-10-13.
Balkanski, E. and Singer, Y. The adaptive complexity of maximizing a submodular function. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pp. 1138–1151, 2018. doi: 10.1145/3188745.3188752.
Blelloch, G. E. Programming parallel algorithms. Communications of the ACM, 39(3):85–97, 1996. doi: 10.1145/227234.227246.
Chen, M., Tworek, J., Jun, H., Yuan, Q., de Oliveira Pinto, H. P., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
Cheng, Z., Wang, H., Liu, Z., Wang, X., Zhu, X., Guo, Y., Lin, W., Pan, J. Z., and Wang, Y. Terminal-World: Scaling Terminal-Agent Environments via Agent Skills. arXiv preprint arXiv:2605.20876, 2026.
Chu, Z., Hu, J., Jiang, X., Zou, P., Li, H., Peng, C., O'Hearn, P., Barr, E. T., Harman, M., Sarro, F., and Ye, H. TerminalWorld: Benchmarking Agents on Real-World Terminal Tasks. arXiv preprint arXiv:2605.22535, 2026.
Conover, W. J. and Iman, R. L. Rank transformations as a bridge between parametric and nonparametric statistics. The American Statistician, 35(3):124–129, 1981.
DeepSeek. Models and pricing. https://api-docs.deepseek.com/quick_start/pricing, 2026. Accessed 2026-10-17.
DeepSeek-AI, Xu, A., Li, B., Lin, B., Xue, B., Xian, B., Xu, B., Wu, B., Zhang, B., Deng, B., et al. DeepSeek-V4.1-Flash: pushing the limits of KV cache compression. arXiv preprint arXiv:2609.19969, 2026.
Deng, G., Chen, Z., Yu, Z., Fan, H., Liu, Y., Yang, Y., Parikh, D., Kannan, R., Cong, L., Wang, M., et al. SWE-Milestone: Evaluating AI Agents on Continuous Software Evolution. In International Conference on Machine Learning (ICML), 2026.
Desai, R., Hu, J., Cabezas, J., Harsola, N., Shukla, P., Chaim, R. B., Assadi, A. E., Kamath, O. M., Faldu, F., Hebbar, P., et al. SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work? arXiv preprint arXiv:2606.07682, 2026.
A PREPRINT
Fan, Z., Yu, T., Cai, Y., Guan, J., Yang, Y., Hu, D., Zhou, J., Wu, X., Han, Z., Zhang, F., and Wang, L. Toward Scalable Terminal Task Synthesis via Skill Graphs. arXiv preprint arXiv:2604.25727, 2026.
Harbor Framework Team. Harbor: A framework for evaluating and optimizing agents and models in container environments, 2026. URL https://github.com/harbor-framework/harbor.
Huang, Y., Jiang, Z., Luo, X., Guo, K., Zhuang, H., Zhou, Y., Yuan, Z., Sun, X., Schleinitz, J., Wang, Y., Zhang, S., Surve, M., Chawla, N., Wiest, O., and Zhang, X. ChemOrch: Empowering LLMs with Chemical Intelligence via Groundbreaking Synthetic Instructions. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, 2025a.
Huang, Y., Wu, S., Gao, C., Chen, D., Zhang, Q., Wan, Y., Zhou, T., Xiao, C., Gao, J., Sun, L., and Zhang, X. DataGen: Unified Synthetic Dataset Generation via Large Language Models. In International Conference on Learning Representations (ICLR), 2025b.
Huang, Y., Hua, H., Zhou, Y., Jing, P., Nagireddy, M., Padhi, I., Dolcetti, G., Xu, Z., Chaudhury, S., Rawat, A., Nedoshivina, L., Chen, P.-Y., Sattigeri, P., and Zhang, X. Building a Foundational Guardrail for General Agentic Systems via Synthetic Data. In International Conference on Learning Representations (ICLR), 2026.
Ivison, H., Yin, J. O., Shao, R., Xiao, T., Lambert, N., and Hajishirzi, H. Tmax: A simple recipe for terminal agents. arXiv preprint arXiv:2606.23321, 2026.
Jimenez, C. E., Yang, J., Wettig, A., Yao, S., Pei, K., Press, O., and Narasimhan, K. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? In International Conference on Learning Representations (ICLR), 2024. URL https://openreview.net/forum?id=VTF8yNQM66.
Kandpal, N., Deng, H., Roberts, A., Wallace, E., and Raffel, C. Large Language Models Struggle to Learn Long-Tail Knowledge. In International Conference on Machine Learning (ICML), volume 202 of Proceedings of Machine Learning Research, pp. 15696–15707, 2023.
Kwa, T., West, B., Becker, J., Deng, A., Garcia, K., Hasin, M., Jawhar, S., Kinniment, M., Rush, N., Von Arx, S., et al. Measuring AI Ability to Complete Long Software Tasks. arXiv preprint arXiv:2503.14499, 2025.
Li, Z., Li, Z., Shi, Y., Wang, R., Yang, J., Liu, Z., Wu, X., Li, A., Huang, C., Shang, E., et al. Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Grading. arXiv preprint arXiv:2607.08964, 2026a.
Li, Z., Shi, Y., Li, Z., Wang, R., Li, A., Huang, Z., Yang, J., Ke, L., Liu, N., Mi, H., and Liang, L. Recursive Synthesis for Long-Horizon Terminal Tasks. arXiv preprint arXiv:2608.05466, 2026b.
Lin, Y., Wang, H., Wu, S., Fan, L., Pan, F., Zhao, S., and Tu, D. CLI-Gym: Scalable CLI Task Generation via Agentic Environment Inversion. arXiv preprint arXiv:2602.10999, 2026.
Luo, X., Huang, Y., Guo, K., He, P., Zou, C., Gao, C., Li, L., Ma, Y., Xu, Z., Chen, Z., Han, Y., and Zhang, X. SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilities. arXiv preprint arXiv:2609.33763, 2026.
Ma, Y., Huang, Y., Bao, H., Zhuang, H., Shukla, S., Galley, M., Zhang, X., and Feuerriegel, S. SkillGen: Verified Inference-Time Agent Skill Synthesis. In Advances in Neural Information Processing Systems (NeurIPS), 2026a.
Ma, Y., Huang, Y., Wang, W., Luo, X., Zhang, X., and Feuerriegel, S. Synthetic Interaction Data for Scalable Personalization in Large Language Models. arXiv preprint arXiv:2602.12394, 2026b.
Meng, F., Chen, G., Zhao, J., Sun, S., Lin, Z., Zhao, W. X., Song, R., Wen, J.-R., and Jia, K. CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks. arXiv preprint arXiv:2608.06352, 2026.
Merrill, M. A., Shaw, A. G., Carlini, N., Li, B., Raj, H., Bercovich, I., Shi, L., Shin, J. Y., Walshe, T., Buchanan, E. K., et al. Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces. arXiv preprint arXiv:2601.11868, 2026.
Misra, D., Islah, N., May, V., Rauby, B., Wang, Z., Gehring, J., Orvieto, A., Chaudhary, M. S., Muller, E. B., Rish, I., Kahou, S. E., and Caccia, M. GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 46792–46831, 2026. doi: 10.18653/v1/2026.acl-long.2170.
OpenAI. GPT-5.6: frontier intelligence that scales with your ambition. https://openai.com/index/gpt-5-6/, 2026a. Accessed 2026-10-17.
OpenAI. Addendum to GPT-6 Astra system card: GPT-6.1 Sol. https://deploymentsafety.openai.com/gpt-6-1-sol, 2026b. Accessed 2026-10-13.
A PREPRINT
OpenAI. GPT-6 Astra system card. https://deploymentsafety.openai.com/gpt-6-astra, 2026c. Includes an appendix on GPT-6 Sol and GPT-6 Luna. Accessed 2026-10-13.
OpenThoughts Agent team, Snorkel AI, and Bespoke Labs. OpenThoughts-TBLite: A Difficulty-Calibrated Benchmark for Building Terminal Agents. OpenThoughts blog, 2026. URL https://www.openthoughts.ai/blog/openthoughts-tblite.
Peng, X., Zhang, K., Lu, X., Cao, B., Lu, Y., Lin, H., Han, X., and Sun, L. LiteCoder-Terminal: scaling Long-Horizon terminal environments for learning language agents. arXiv preprint arXiv:2605.29559, 2026.
Pi, R., Lam, G., Shoeybi, M., Jannaty, P., Catanzaro, B., and Ping, W. On Data Engineering for Scaling LLM Terminal Capabilities. arXiv preprint arXiv:2602.21193, 2026.
Raoof, N., Zhuang, R., Nezhurina, M., Guha, E., Tejaswi, A., Marten, R., Ruan, C. F., Griggs, T., Shaw, A. G., Bansal, H., et al. OpenThoughts-Agent: Data Recipes for Agentic Models. arXiv preprint arXiv:2606.24855, 2026.
Shen, Q., Huang, Z., Kamanuru, V., Aliev, A., Rainton, J., Awelkair, A., Zeng, Z., Li, J., Dong, S., Yuan, Y., et al. SETA: Scaling Environments for Terminal Agents. arXiv preprint arXiv:2607.10891, 2026.
Shi, D., Cao, J., Chen, Q., Sun, W., Li, W., Lu, H., Dong, F., Qin, T., Zhu, K., Liu, M., et al. TaskCraft: Automated Generation of Agentic Tasks. In International Conference on Learning Representations (ICLR), 2026a.
Shi, K., Wang, Z., Su, Q., Huang, S., Zhang, Z., Fang, Z., Ren, Q., Liu, J., Zeng, Y., Zhao, Y., et al. FACET: Preserving Source Intent and Executable State in Terminal Task Synthesis. arXiv preprint arXiv:2608.18580, 2026b.
Sinha, A., Arun, A., Goel, S., Staab, S., and Geiping, J. The illusion of diminishing returns: Measuring long horizon execution in LLMs. In International Conference on Learning Representations (ICLR), 2026.
The Terminal-Bench Team. Terminal-Bench 2.1. Terminal-Bench blog, 2026. URL https://www.tbench.ai/news/terminal-bench-2-1.
Wang, W., Huang, Y., Yuan, Z., Bao, H., Du, S., Ma, Y., Zhao, Y., Ye, Y., and Zhang, X. SpecAlign: Efficient Specification-Grounded Alignment of Large Language Models via Synthetic Data. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2026.
Wu, J., Zhang, Z., Zhang, B., Wang, X., Su, Y., Chen, M., Wang, P., Wang, Z., Shen, Q., Zhou, H., et al. Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environments. arXiv preprint arXiv:2609.04148, 2026.
Xiaomi LLM-Core Team, Qiao, Z., Hua, Z., Ou, Z., Yue, Z., Jiang, Z., Huang, Z., Chen, Z., Zheng, Z., Xu, Z., et al. MiMo-V2.6: scaling reinforcement learning towards Self-Improvement. arXiv preprint arXiv:2610.11959, 2026.
Xie, J., Xu, D., Zhao, X., and Song, D. AgentSynth: Scalable Task Generation for Generalist Computer-Use Agents. In International Conference on Learning Representations (ICLR), 2026.
Yang, A., Li, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Gao, C., Huang, C., Lv, C., et al. Qwen3 Technical Report. arXiv preprint arXiv:2505.09388, 2025a.
Yang, J., Lieret, K., Jimenez, C. E., Wettig, A., Khandpur, K., Zhang, Y., Hui, B., Press, O., Schmidt, L., and Yang, D. SWE-smith: scaling data for software engineering agents. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2025b.
Yin, Z., Ma, X., Zheng, J., Zhou, Y., Bairavasundaram, L. N., and Pasupathy, S. An Empirical Study on Configuration Errors in Commercial and Open Source Systems. In Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles (SOSP), pp. 159–172, 2011. doi: 10.1145/2043556.2043572.
Yu, B., Zhu, Y., He, P., and Kang, D. UTBoost: Rigorous Evaluation of Coding Agents on SWE-Bench. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3762–3774, 2025. doi: 10.18653/v1/2025.acl-long.189.
Z.ai. GLM-5.3-Flash. Model card, https://huggingface.co/zai-org/GLM-5.3-Flash, 2026a. Accessed 2026-10-13.
Z.ai. Pricing. https://docs.z.ai/guides/overview/pricing, 2026b. Accessed 2026-10-17.
Zou, S., Ma, Z., Zou, Y., Wang, Y., Chen, L., Chen, Z., Chen, G., Chu, X., and Zhao, F. Scaling Agentic Data for Long-Horizon Terminal Intelligence. arXiv preprint arXiv:2610.13166, 2026.
B Measurement Details
A PREPRINT
A Related Work
Benchmarks for long-horizon agents. Agents that act in computer environments are evaluated on resolving repository issues (Jimenez et al., 2024), on terminal tasks (Merrill et al., 2026; Chu et al., 2026) and on security vulnerabilities, where SecProbe (Luo et al., 2026) synthesizes repository-scale repair tasks on demand and chooses them adaptively with item response theory. Benchmarks that target long horizons report the length of a task as the time a human expert needs (Kwa et al., 2025) or as the turns or steps a model takes (Li et al., 2026a; Desai et al., 2026), or make tasks long by chaining milestones on one codebase (Deng et al., 2026). Related studies examine how reliability declines as tasks get longer (Sinha et al., 2026). These measures describe what a model does under a loose limit. We instead state a turn cap and record the smallest cap under which a task passes, which estimates the turns that must happen in sequence rather than the turns a model happens to take.
Synthesizing tasks for agents. Training agents requires verifiable tasks and trajectories in large numbers (Pi et al., 2026; Raoof et al., 2026; Zou et al., 2026), and many pipelines synthesize them. Software-engineering tasks are built by injecting bugs into real repositories (Yang et al., 2025b), and tool-use and computer-use tasks are generated automatically (Shi et al., 2026a; Xie et al., 2026). For the terminal, pipelines derive tasks from agent skills, skill graphs and agent trajectories (Cheng et al., 2026; Fan et al., 2026; Wu et al., 2026), break environments (Lin et al., 2026), and scale environments for reinforcement learning (Peng et al., 2026); the synthetic datasets we audit, TMax (Ivison et al., 2026), SETA (Shen et al., 2026), FACET (Shi et al., 2026b) and RST (Li et al., 2026b), belong to this line. Synthetic trajectories also train components other than the agent, as in AuraGen (Huang et al., 2026), which injects risks of calibrated difficulty into agent trajectories to train a guardrail that checks plans before they are executed. Pipelines that aim for later steps to build on earlier ones obtain this by construction or check it with an LLM (Xie et al., 2026; Shi et al., 2026a; Wu et al., 2026). We instead let a generation agent carry out each segment in the container before writing the next, and measure the depth of the resulting tasks.
Synthetic data generated by LLMs. Beyond agent tasks, LLMs generate training and evaluation data across domains, and recent pipelines control what is generated and verify it before use. DataGen (Huang et al., 2025b) is a unified framework for generating text datasets that uses attribute-guided generation for diversity, code-based checks for label correctness and retrieval for factual accuracy. ChemOrch (Huang et al., 2025a) synthesizes chemistry instructions with controlled diversity and difficulty and builds the responses with tools, repairing them from tool feedback. SpecAlign (Wang et al., 2026) turns model specifications written by providers into preference data through rule annotation and adversarial multi-agent synthesis. Ma et al. (2026b) simulate multi-turn interactions among user, assistant and distractor agents to synthesize data for personalization, and SkillGen (Ma et al., 2026a) induces reusable skills from successful and failed agent trajectories and verifies each skill by comparing outcomes on the same instances with and without it. Our pipeline likewise verifies what it generates, but by execution in the environment itself: the reference solution is replayed in a fresh container, and the checks of each segment are written to fail when its key step is removed.
B Measurement Details
Order of runs. DeepSeek-V4.1-Flash first runs every task twice without a cap. If neither run passes, it gives no estimate for the task. Otherwise, let be the fewest turns among its passing runs; the reported in the main text is that of DeepSeek-V4.1-Flash. Caps at or above count as passed without being run, since a run has already passed within turns. The caps below are tried in increasing order with up to two runs each, the second run being skipped once the first passes, and the first cap with a passing run gives . If no cap below passes, is the smallest cap at or above , or above the largest cap if exceeds it.
B Measurement Details
A PREPRINT
Second model. GLM-5.3-Flash runs only at the caps below the estimate of DeepSeek-V4.1-Flash, with up to two runs per cap and no runs without a cap. It can therefore only lower , and it is not run on tasks with or on tasks that DeepSeek-V4.1-Flash does not solve.
Stating the cap. Under cap , the following text is appended to the instruction of an existing task:
Turn limit appended to the instruction
Turn limit: you have at most turns for this task. One turn is one of your responses; a response may contain several commands. The session is cut off after turn and whatever state the environment is in will be graded. Plan for this limit: batch commands where you can, and do not spend turns on steps that are not needed.
In multi-segment tasks the cap covers all segments together, the text says so ("for the whole task, all parts together") and adds that parts not finished by turn fail, and every new segment reports the turns used so far. The harness stops the run after turn .
Harness. Existing tasks and ours run in the same harness, terminus-2, and Table 3 compares its settings with those in the papers of the audited datasets, four of which also use terminus-2. After each turn, the agent sees the output produced since the previous turn, cut to 10,000 bytes by keeping the first and last 5,000. Commands do not block: for each command, the agent states how long to wait before the output is read, at most 60 seconds, and a command still running after that is waited for in a later turn. Both are defaults of terminus-2 and apply to all tasks alike. Without a cap, a run may take up to 150 turns. An existing task has 30 minutes, which replaces the agent time limit set by its dataset; this is longer than that limit for 477 of the 631 sampled tasks that set one, equal for 88 and shorter for 66, mostly SETA tasks with 60 minutes. Our tasks have 3 hours, or 2.5 and 1.5 hours for the 4 tasks with five segments and the 3 with three. All other parts of existing tasks are used as released.
Delivering segments. We extend terminus-2 to run the segments of a task in one conversation and one container; everything else, including its prompt templates and context compression, is unchanged. The first message announces the number of parts and explains the protocol:
Start of the first message of a multi-segment task
This task is handed to you in parts, one at a time, in this same terminal session. Below is part 1. When a part is done, set "task_complete": true; the next part is then sent to you. Later parts build on what earlier parts left in the environment. Each part is graded when you mark it complete, and you are not told the grade; the task passes only if every part does.
When the agent marks a segment complete, its checks run, and the harness sends "Part is marked complete. Here is part of " with the next instruction and the current terminal screen as a new message. Later instructions are never placed in the container, and the checks of a segment are removed from the container before the next segment starts, so the agent can read neither in advance. A run stops at the first segment that fails. terminus-2 asks the agent once to confirm that it is done; we keep this confirmation only in the last segment, since in earlier segments it would add one turn per segment and inflate .
Choice of models. A model used to measure depth must merge commands into fewer turns once told the cap; otherwise it measures work. We test this on calibration tasks in which every step is solved by one short command. In the parallel tasks, ten independent steps are listed in one file. In the static-chain tasks, each of ten steps needs the answer to the previous one, but every step is written in a plain file from the start. Both can be completed in two or three turns by writing a script. In the control task, the instruction and data of each step are encrypted with the answer to the previous step, so every step
C Dataset Selection and Sampling
A PREPRINT
Table 3. Settings of the harness in the papers of the audited datasets and in ours. Time limit: agent time limit per task in the released tasks, averaged over all tasks of a dataset; for our tasks, that of the 98 with six segments. Output: the most output shown after a command, keeping its beginning and end. Wait: how long the harness waits before returning the output of a command; in terminus-2 the agent sets it, and in SETA a command still running after 20 s is polled for up to 10 s at a time. Turns: limit on the turns of a run. TMax and SETA give the settings of their RL rollouts; settings a paper does not state are the defaults of its released code. −: none reported.
| Dataset | Harness | Time limit | Output | Wait per command | Turns |
|---|---|---|---|---|---|
| Synthetic | |||||
| TMax | mini-SWE-agent based | – | 10,000 characters | Blocks up to 120 s | 64 |
| FACET | terminus-2 | 2 min | 10,000 bytes | Up to 60 s, not blocking | No limit |
| SETA | CAMEL | 48 min | 1,000 characters | Blocks up to 20 s, then polls | 30 |
| RST | terminus-2 | 18 min | 10,000 bytes | Up to 60 s, not blocking | – |
| Human-curated | |||||
| TB2 | terminus-2 | 28 min | 10,000 bytes | Up to 60 s, not blocking | No limit |
| TW | terminus-2 | 22 min | 10,000 bytes | Up to 60 s, not blocking | No limit |
| This paper | |||||
| Ours on existing tasks | terminus-2 | 30 min | 10,000 bytes | Up to 60 s, not blocking | 150 |
| Ours | terminus-2 | 3 h | 10,000 bytes | Up to 60 s, not blocking | 150 |
needs a turn of its own. Under a cap of 3, DeepSeek-V4.1-Flash and GLM-5.3-Flash pass all 12 runs on the parallel and static-chain tasks, while DeepSeek-V4-Flash, which works through the steps one or two turns at a time, passes none. No model passes the six-step control under this cap. On three TMax tasks that DeepSeek-V4.1-Flash passes under a cap of 1, GLM-5.3-Flash also passes all three under that cap, so it writes working single-turn scripts on real tasks as well. Both models are also strong and inexpensive. On Terminal-Bench 2.1 (The Terminal-Bench Team, 2026), DeepSeek-V4.1-Flash scores 90.6 and GLM-5.3-Flash 84.3 as reported by their developers (DeepSeek-AI et al., 2026; Z.ai, 2026a), against 88.8 for GPT-5.6 Sol reported by OpenAI (OpenAI, 2026a) and 89.1 for Claude Opus 5 in the report of DeepSeek-V4.1-Flash. Per million input and output tokens, DeepSeek-V4.1-Flash costs 1.20 and GLM-5.3-Flash 0.50 (DeepSeek, 2026; Z.ai, 2026b), against 30 for GPT-5.6 Sol and 25 for Claude Opus 5 (Anthropic, 2026a).
C Dataset Selection and Sampling
Datasets. We audit datasets of terminal tasks that release runnable task packages, each with an instruction, a Docker environment and a verifier. We evaluate four synthetic datasets: TMax, FACET, RST, and SETA. Among human-curated sets, TB2 consists of tasks written and verified by people, and TW is the subset of TerminalWorld that people reviewed, built from real terminal recordings.
Sampling rules. The same rules apply to every dataset.
C Dataset Selection and Sampling
A PREPRINT
-
Only tasks that at least one model passes in the released results are drawn, since a task that no model passes gives no estimate of ; in the hardest level of TMax, only 1 of the 59 tasks with released Gemini runs was ever passed. FACET and part of SETA release no per-task results and are drawn at random.
-
Tasks are split into groups by the length or difficulty the dataset reports (Table 4), drawn within each group with a fixed seed, and interleaved across groups, so that every prefix of the list is balanced across groups.
-
Only tasks with light dependencies are kept: they run in an ordinary Docker container without GPUs, privileged mode or systemd, use no external services, and need neither downloads above 200 MB nor builds above 1 GB or 10 minutes. We decide by reading the instruction, Dockerfile, reference solution and verifier of each task, and build the image once when unsure.
-
Once the image is built, the reference solution must get full marks and doing nothing must get zero; tasks that fail this check are replaced by the next ones in the list.
-
Tasks are used as released, without changing their instructions, environments or verifiers.
TB2 and TW are small, so all their tasks that meet the rules and pass the check are included. FACET and RST have low shares of solved tasks, so their lists are extended under the same rules until about 50 tasks are solved, which is why they have the most sampled tasks.
Table 4. Groups and evidence of a passing model used to sample each dataset.
| Dataset | Groups | Evidence that a model passed | Sampled |
|---|---|---|---|
| Synthetic | |||
| TMax | Three complexity levels, each split into three groups by the fewest turns of a passing Gemini run; the hardest level as one group | Gemini-3-Flash passes at least 2 of 8 runs | 100 |
| FACET | Three groups by number of checks | None released | 210 |
| SETA | Synth: hard level, drawn at random; Evolve: three groups by the fewest iterations of a passing Qwen3-30B run | Evolve: Qwen3-30B passes at least 2 of 8 runs in the authors' intermediate data; Synth: none | 100 |
| RST | Four groups by lines of the reference solution | Qwen3.5-27B runs, matched only to lineages (the tasks derived from one seed); lineages with no passed task are excluded | 200 |
| Human-curated | |||
| TB2 | Passes of DeepSeek-V3.2 in its 5 leaderboard runs (5, 3–4, 1–2) | Per-run leaderboard results | 39 |
| TW | Empirical difficulty on the official site | Per-task results of DeepSeek-V4-Pro on the official site | 85 |
Sampling does not change the audit. Sampling favors tasks that some model has passed and tasks with light dependencies, so a sample need not follow its original dataset. Table 5 compares each sample with its original dataset over the labels the dataset releases, and reweights the share of solved tasks with to the original proportions of the labels. The synthetic samples lean toward harder labels, so reweighting lowers their share with (SETA from 2.2% to 1.5%, RST from 20.7% to 14.9%), while the shares of the human-curated sets rise by about one point. The hardest level of TMax is underrepresented because few of its tasks have ever been passed, and its 7 solved tasks all have .
D Additional Audit Results
A PREPRINT
Table 5. Samples against the original datasets, by the labels each dataset releases. Reweighted: share of solved tasks with when each label takes its original proportion. †Over the labels present in the sample, which cover 42% (SETA) and 78% (TW) of the original tasks.
| Dataset | Labels | Sample against original | : sample → reweighted |
|---|---|---|---|
| Synthetic | |||
| TMax | Four complexity levels | First three about 30% each (original 25%); hardest 9% (original 26%) | 0% → 0% |
| FACET | None (all “medium”) | Three groups by number of checks, close to the original | 7.5% (not reweighted) |
| SETA | Synth and Evolve, three levels each | Synth hard 52% (original 14%); Synth medium (original 57%) not sampled | 2.2% → 1.5%‡ |
| RST | Seed difficulty | Medium 27% (original 18%) | 20.7% → 14.9% |
| Human-curated | |||
| TB2 | Author rating | Hard 28% (original 34%) | 10.8% → 11.9% |
| TW | Empirical difficulty | Very hard (original 22%) not sampled | 10.3% → 11.8%‡ |
D Additional Audit Results
Difficulty labels. Figure 8 gives the full comparison of difficulty labels with pass rates. It uses every task with a released pass rate rather than only the sampled ones: Gemini-3-Flash runs for TMax, runs of Qwen3-8B and Qwen3-30B for SETA, runs of Qwen3.5-27B for RST, released per lineage and counted once per lineage, the share of eight models on the TW website, and the mean over 15 leaderboard submissions for TB2. For TW we use the difficulty in the task files, since the difficulty on its website is computed from pass rates. In the synthetic datasets, the mean pass rate drops mainly at the hardest level, which holds few tasks.


Figure 8. Mean pass rate at each difficulty level, from easiest to hardest, over all tasks with released pass rates (lineages for RST), with the number of tasks beside each level, and the rank correlation of the pass rate with the label. Labels: complexity level (TMax), difficulty level (SETA), seed difficulty (RST), difficulty in the task files (TW) and author rating (TB2).
Shallow tasks test reasoning rather than observation. A run that passes at cap issues about as many command lines as a passing run without a cap (1.06 times), while on tasks with the output at
D Additional Audit Results
A PREPRINT
T = 1 has 1.98 times as many tokens. The work stays the same, and the model replaces looking at the environment with reasoning about it.
Runs on existing tasks stay short when unsolved tasks are included. The statistics of N in Table 1 are taken over solved tasks. Table 6 also covers the tasks that DeepSeek-V4.1-Flash does not solve, averaging each sampled task over its two runs without a cap, whether or not they pass. Over all sampled tasks, runs take 6 to 13 turns, 1.0 to 3.3 minutes and 7 to 24 thousand tokens on the existing datasets, against 45 turns, 8.9 minutes and 57 thousand tokens on ours. On our tasks these values are lower than over solved tasks, because a run stops at the first segment it fails.
Table 6. Runs of DeepSeek-V4.1-Flash without a cap. Solved tasks: , Minutes and Tokens as in Table 1. All sampled tasks: each task is averaged over its two runs without a cap, whether or not they pass; Turns and Tokens are means over tasks and Minutes is the median.
| Dataset | Solved tasks | All sampled tasks | ||||
|---|---|---|---|---|---|---|
| Minutes | Tokens | Turns | Minutes | Tokens | ||
| Synthetic | ||||||
| TMax | 5.8 | 0.9 | 6.6 | 6.4 | 1.0 | 6.9 |
| FACET | 8.2 | 2.1 | 19.3 | 10.1 | 3.3 | 24.2 |
| SETA | 7.0 | 0.8 | 8.4 | 8.3 | 1.0 | 10.1 |
| RST | 8.2 | 1.2 | 11.0 | 12.0 | 2.1 | 15.2 |
| Human-curated | ||||||
| TB2 | 10.9 | 2.2 | 16.3 | 13.4 | 2.6 | 19.2 |
| TW | 11.6 | 1.5 | 14.4 | 12.7 | 1.6 | 14.9 |
| Ours | 52.8 | 12.7 | 67.0 | 44.7 | 8.9 | 57.1 |
Other measures of work. W counts the non-blank, non-comment lines of the reference solution, and lines depend on coding style. We therefore recount the same scripts in BPE tokens (the o200k_base tokenizer of tiktoken) and in characters, summing over segments for our tasks as for W. TMax releases no reference solutions, so its W instead counts the non-blank lines of the commands, file content included, that DeepSeek-V4.1-Flash sends in its passing run at the smallest cap it passes. TMax is left out here, which leaves 739 tasks, solved or not. Over these tasks, the Spearman correlation is 0.98 between lines and tokens and 0.97 between lines and characters. Figure 9 shows the medians: the six datasets fall in the same order under all three measures, and ours is the largest under each, above FACET by 41% in lines, 50% in tokens and 9% in characters.

Figure 9. Median work of all sampled tasks, counted in lines, BPE tokens and characters of the reference solution. TMax releases no reference solutions.
E Robustness of
A PREPRINT
E Robustness of
E.1 The Model Set
GLM-5.3-Flash runs only at the caps below the estimate of DeepSeek-V4.1-Flash, so its own estimate is known only on the tasks where it is lower. We therefore compare with the estimate of DeepSeek-V4.1-Flash alone.
Effect of the second model. Figure 10 shows, for each existing dataset, the share of solved tasks with before and after taking the smaller estimate, together with the solved tasks on which GLM-5.3-Flash was run and those whose it lowers. The share falls in five of the six existing datasets and is unchanged in SETA. GLM-5.3-Flash lowers on 40 of the 160 existing tasks it was run on, 32 of them by one cap, and the two estimates order tasks alike: the Spearman correlation of with the estimate of DeepSeek-V4.1-Flash alone is 0.91 over the 401 solved existing tasks and between 0.79 and 0.93 within each dataset. The change concentrates in the deep tail of the existing datasets: of the 40 solved existing tasks whose estimate from DeepSeek-V4.1-Flash alone is at least 5, GLM-5.3-Flash brings 11 below 5. On our tasks, it was run on all 54 solved tasks and lowers on 4, each by one cap and none below 20, and the Spearman correlation is 0.95. Measuring with DeepSeek-V4.1-Flash alone would thus make the existing datasets look deeper, not shallower.

Figure 10. Share of solved tasks with in each existing dataset when comes from DeepSeek-V4.1-Flash alone and from the smaller of its estimate and that of GLM-5.3-Flash. Run on: solved tasks with on which GLM-5.3-Flash was run below the estimate of DeepSeek-V4.1-Flash. D lowered: those whose it lowers. In SETA the two shares coincide.
Results with DeepSeek-V4.1-Flash alone. Figure 11 repeats the tests of depth against difficulty with each estimate. With DeepSeek-V4.1-Flash alone, the rank partial correlation of the public pass rate with controlling for is on TB2 and on TB2, against and with both models; controlling for stays unrelated to the pass rate (+0.04); and the ratings of TB2 authors keep a correlation of +0.55 with . On our tasks, the main text uses DeepSeek-V4.1-Flash alone, since GLM-5.3-Flash is one of the four models whose pass rates are averaged. With GLM-5.3-Flash left out of the average, the correlation is with DeepSeek-V4.1-Flash alone and with both models. The audit also changes little: with DeepSeek-V4.1-Flash alone, 92% of the solved synthetic tasks have (94% with both models), and the TB2 and TW tasks large in both and remain the hardest group, with a mean within-dataset percentile of the public pass rate of 0.34 against 0.54 to 0.57 for the other three groups.
E.2 Failed Runs
is the smallest cap at which at least one of two runs passes. When DeepSeek-V4.1-Flash rarely passes a task, both runs at a sufficient cap can fail and raise by a cap; such tasks may also be harder for other models, so this error could produce a correlation between and difficulty that does not come from
E Robustness of D
A PREPRINT

Figure 11. Rank partial correlations of the tests of depth against difficulty, with D from both models (filled) and from DeepSeek-V4.1-Flash alone (open), with the number of tasks. For ours and the pooled rows, the pass rate is the mean of GPT-6 Luna, MiMo-V2.6-Flash and GPT-6.1 Sol, leaving out GLM-5.3-Flash, which takes part in measuring D.
depth. Let be the share of the two runs of DeepSeek-V4.1-Flash without a cap that pass, which is 1 or 0.5 on solved tasks. We repeat the analyses on tasks with , where a sufficient cap rarely fails twice. We do not control for instead: a deep task has many steps that can each go wrong, so part of the variation in may come from depth itself.
Depth still predicts difficulty. On tasks with , the rank partial correlations of the pass rate with controlling for are -0.43, -0.39 and -0.40 for the human-curated sets, ours and both pooled. All three are larger in magnitude than over all solved tasks (left panel of Figure 12).
The depth distributions do not change. On tasks with , 95% of the synthetic tasks have , and all of ours have , 70% of them (right panel of Figure 12).

Figure 12. Robustness of to failed runs, over all solved tasks and over those with , with the number of tasks beside each row. Left: rank partial correlation of the pass rate with controlling for , computed as in Figure 4. Right: distribution of , with as in Table 1.
F Checks
A PREPRINT
F Checks
A check script is a bash file in which every check prints one line, PASS name or FAIL name: reason; the segment passes if every check passes, and a script that stops before its last line fails. The generation agent writes checks with the functions in Table 7, which also do the comparing, so the agent decides only what to ask the system and what the answer must be.
Table 7. Functions of the check library. NAME is a short check name, unique within the script.
| Function | Passes when |
|---|---|
| expect_ok NAME - CMD | CMD exits with status 0 |
| expect_out NAME PATTERN - CMD | a line of the output of CMD matches PATTERN, whatever the exit status |
| expect_no_out NAME PATTERN - CMD | CMD exits with status 0 and no line of its output matches PATTERN |
| expect_fail NAME PATTERN - CMD | CMD fails and its output matches PATTERN, for an access that must be refused |
| expect_eq NAME ACTUAL EXPECTED [KIND] | the two values are equal as KIND: text (default), int, num, version, bool, set, seq or exact |
| expect_file NAME PATH | PATH is a non-empty file or a directory |
| expect_port NAME HOST PORT | a TCP connection to HOST:PORT succeeds |
| expect_proc NAME PROGRAM | a process runs PROGRAM, started by any path, with any arguments, directly or through an interpreter |
| expect_proc_arg NAME PROGRAM ARG... | such a process has every ARG on its command line |
| pass NAME, fail NAME REASON | records a result the script decides itself |
| Reader | Prints |
| field FILE KEY | the value of KEY in a report file of name: value lines or JSON |
| column FILE NAME:POS | a column of a table, one value per line |
| cell FILE KEYNAME:POS KEYVALUE NAME:POS | column NAME of the row whose column KEYNAME is KEYVALUE |
| rows FILE NAME:POS | the number of data rows |
| proc_start PROGRAM | the start time of the newest process running PROGRAM, for events such as restarts |
Comparison. Letter case, runs of spaces, and spaces around : and = are ignored in patterns and outputs; key and column names ignore case and treat -, _ and spaces alike; values lose surrounding spaces and quotes. The kinds int, num and version compare the first number or dotted version in each value, so 5.7.21-log equals 5.7.21 as a version. bool maps yes, true, pass, ok, on and 1 to true and their opposites to false. set compares the items of two lists regardless of order and repeats, and seq compares them in order, for requirements such as "X before Y". An empty expected value fails, except that two empty sets are equal. Readers accept a missing header line, tabs, commas, | tables and aligned columns. Every command runs under a 120-second limit, and a check script must finish within 10 minutes.
Rules for writing checks. Besides the three rules in the main text, the generation agent follows these:
-
Expected values are computed from the live system when the checks run; counts, identifiers, versions or states seen during generation are never written into a check.
-
Report files are read only through the readers, by the field and column names the agent declares; the pipeline writes the exact format into the instruction.
G Our Dataset
A PREPRINT
-
An event the goal asks for, such as a restart or a failover, is checked through a trace the software itself keeps, such as a later start time than a component that was not restarted or a line in its own log. A file the agent writes about the event is not evidence, and an event that leaves no trace cannot be a deliverable.
-
A string looked for in the files of the solver must appear in the instruction or be printed by the software itself, not by a script the agent wrote.
-
A running service is checked by talking to it with its own client; processes are checked only when the instruction asks for a process.
-
When the message of a tool and the real state disagree, or two readings of a requirement are defensible, both are accepted.
-
Values that must be measured never appear among the names stated in the instruction, so checks cannot depend on them.
Replays with parts removed. The reference solution marks the commands of the key step of each segment, and those of events the goal asks for, with comments, so that they can be removed mechanically. For each of the 105 tasks, we replay the reference solution in a fresh offline container with one part changed and record whether the checks of the affected segment report a failure; a check script that crashes instead does not count. Table 8 lists the four changes. Segments whose replay did not run to a result, 2 to 15 for each change, are left out, and changes that involve the previous or next segment leave out the first or last segment of each task. These replays are not conditions for accepting a task and are not run during generation, so the generation agent never sees their results.
Table 8. Replays of the reference solutions of all 105 tasks with one part changed. Holds: the checks of the segment named in the second column report a failure. Counts are over segments, except for removed events, which are counted one event at a time.
| Change | Checks expected to fail | Holds | Share |
|---|---|---|---|
| Checks of segment s run before its work, on | 601 / 602 | 99.8% | |
| Previous segment skipped: run without | 462 / 501 | 92.2% | |
| One event of segment s removed from | 158 / 165 | 95.8% | |
| Key step of segment s removed: run instead of | 598 / 604 | 99.0% | |
| Key step of segment s removed, then run | 421 / 500 | 84.2% |
G Our Dataset
Statistics. Table 9 summarizes the 105 tasks. 98 have six segments, 4 have five and 3 have three. Instructions are longer after the first segment (median 244 words against 196), since they refer to earlier results by name and state which of them must be preserved. Of the 54 solved tasks, 2 have , 8 have , 23 have and 17 have , and 4 are not passed within 80 turns. By the labels of their original packages, the seed environments cover software engineering (18 tasks), environment setup (17), system administration (16), security (15) and 18 other categories (35 tasks); 4 carry no label.
Original tasks of the seed environments. The reference solution of our task is longer than that of the original task in all 35 pairs, with a median of 324 lines against 10, and at least twice as long in each pair (right panel of Figure 13).
An example task. Table 10 outlines a task built from an environment that holds the source of NetworkManager-l2tp 1.20.4, a VPN plugin for NetworkManager. Its is 40, is 37 and is 162 lines. Each segment works on the result of the previous one: segment 3 needs the plugin layout found in segment 2, segment 4 packages the corrected tree, and segment 6 relocates the package built in segment
G Our Dataset
A PREPRINT
Table 9. Statistics of our 105 tasks: median, with the 10th and 90th percentiles in brackets. Names: paths, ports, accounts and other names that the checks rely on, each stated verbatim in the instruction.
| Per segment | Per task | |
|---|---|---|
| Lines of the reference solution | 52 [18, 130] | 330 [134, 626] |
| Words of the instruction | 234 [171, 336] | 1,406 [1,153, 1,790] |
| Names stated in the instruction | 14 [6, 24] | 83 [50, 123] |


Figure 13. Original task of each seed environment against our task from the same environment, over the 35 pairs. Left: , with the number of pairs in each cell; > 80 means passed only without a cap. Right: in lines of the reference solution, on log scales. Dashed lines mark equal values.
- GPT-6.1 Sol passes both of its runs, DeepSeek-V4.1-Flash and MiMo-V2.6-Flash one of two, and the other three models none. Below the table we show the instruction of segment 3 and part of its checks.
Instruction of segment 3
Goal. The staged installation under /app/nm-12tp-stage contains the NetworkManager-l2tp plugins prepared in earlier work. The host has pppd 2.4.9 installed, so the staged pppd plugin layout must match the pppd version that will load it while preserving the original 2.4.7 layout the user requested. The user also needs a manifest inventorying the staged shared-object plugins by path and checksum.
Deliverables.
-
The compiled pppd plugin shared object remains available under /app/nm-12tp-stage/usr/lib/pppd/2.4.7.
-
The staged pppd plugin is also present in the version-correct directory for the installed pppd, /app/nm-12tp-stage/usr/lib/pppd/2.4.9, and the installed pppd is able to load it from there.
-
The staged NetworkManager property plugin shared objects remain present in the build configured library plugin directory from /app/nm-12tp-stage.
-
/app/nm-12tp-stage/install-manifest.txt records each staged shared-object plugin's name, resolved staged path, and SHA-256 checksum.
Report files. /app/nm-12tp-stage/install-manifest.txt: a table with columns separated by a single tab character. The first line is the header artifact path sha256; then one line per plugin, in any order.
Constraints. Work only with the existing source checkout and staged installation from earlier segments. Preserve the original /app/nm-12tp-stage/usr/lib/pppd/2.4.7 plugin files. Do not install files into the live /usr tree. Do not modify /opt/network-manager-12tp.git or the configured build source.
H Merging Segments into One Instruction
A PREPRINT
Table 10. Segments of the example task and their key steps.
| Segment | The instruction asks to | Key step |
|---|---|---|
| 1 | Generate the build system of the source checkout and configure it for a given installation layout | The NetworkManager pkg-config module is absent; the configure script actually needs libnm, which is installed |
| 2 | Build and stage the installation under /app/nm-12tp-stage, leaving /usr untouched | The NetworkManager plugin libraries are staged under the multiarch library directory, not next to the service executable |
| 3 | Make the staged pppd plugin loadable by the installed pppd 2.4.9 while keeping the requested 2.4.7 layout, and write a manifest of the staged plugins | Copying the plugin into the 2.4.9 directory succeeds, but pppd looks up a bare plugin name in its own plugin directory; only loading it by its staged path shows that it works |
| 4 | Package the staged tree into one archive that can be unpacked elsewhere | The staged files record absolute paths of the stage, so a plain archive unpacks without error but works elsewhere only after these paths are made relative |
| 5 | Build a local Debian package from the archived payload | dpkg-deb rejects the tree until it has a control file, valid installation paths and executable permissions |
| 6 | Relocate the deployment to /opt/nm-12tp, keeping all earlier results | The relocated service file still points to paths under /usr |
Part of the checks of segment 3
STAGE=/app/nm-12tp-stage
PPPD_DIR_249="$STAGE/usr/lib/pppd/2.4.9"
PPPD Plugin=nm-12tp-pppd-plugin.so
MANIFEST="$STAGE/install-manifest.txt"
expect_file staged-pppd-plugin-249 "$PPPD_DIR_249/$PPPD Plugin"
pppd_load_249() {
timeout 6 /usr/sbin/pppd plugin "$PPPD_DIR_249/$PPPD Plugin" \
nodetach noauth notty debug 2>&1 || true
}
expect_out pppd-loads-staged-plugin \
"Plugin $PPPD_DIR_249/$PPPD Plugin loaded[.]" -- pppd_load_249
live_so_paths() {
find "$STAGE" -type f -name '*'.so' -exec readlink -f -- {} \; | sort
}
expect_eq manifest-paths "$(column "$MANIFEST" path:2 | sort)" \
"$(live_so_paths)" set
H Merging Segments into One Instruction
We draw 25 tasks at random from the solved tasks whose had been measured when we ran this experiment and turn each into a task with a single segment. The environment and the work stay the same: the instruction gives the requirements of all segments at once in their original order, the reference solution runs the scripts of all segments in order, and the checks of all segments run together on the final state. Checks of earlier segments that a later segment is meant to change, such as a port that the last segment moves, are found by running the merged reference solution and dropped. A merged task
I Evaluation Details
A PREPRINT
passes the quality check if the reference solution then passes all remaining checks, including every check of the last segment.
We measure the merged tasks with DeepSeek-V4.1-Flash alone and without runs without a cap. Only caps up to the original of DeepSeek-V4.1-Flash are tried, from the largest downward, with two runs per cap, stopping at the first cap where both runs fail. The of a merged task is the smallest cap passed, and a merged task that fails at the original is counted as not solved within it.
For 17 of the 25 tasks, does not decrease: 8 pass at the original cap and 9 are not solved within it. Of the remaining 8, 7 drop by one cap level and 1 by two.
I Evaluation Details
Setup. All models run in the multi-segment version of terminus-2 with the limits used to measure : 150 turns and the time limit of the task. The open-weight models and GPT-6 Luna are called through OpenRouter with the serving provider fixed: DeepSeek, Together or Wafer for DeepSeek-V4.1-Flash, Fireworks for GLM-5.3-Flash, Xiaomi for MiMo-V2.6-Flash and OpenAI for GPT-6 Luna. GPT-6.1 Sol and Claude Sonnet 5.5 are called through TokenRouter. We set the reasoning effort only for GPT-6 Luna (medium) and keep the default of the provider for the other models, which gives the levels in Table 2. The runs of DeepSeek-V4.1-Flash for evaluation are separate from those for measuring : it passes 52 tasks in its two evaluation runs, all among the 54 it solves when is measured.
Refusals. The provider of GPT-6.1 Sol refused requests on 7 tasks as a possible cybersecurity risk, and retries were refused as well. On 12 tasks, the safety classifier of Anthropic refused requests from Claude Sonnet 5.5 (Anthropic, 2026b), returning a refusal without content and ending the run. On 3 more tasks Claude Sonnet 5.5 returned empty responses and gave no valid result. The 7 tasks refused for GPT-6.1 Sol are all among these 15. The refused tasks mostly concern system security, although every task runs offline. A task without a valid result is left out of the denominator of that model; the other four models have valid runs on all 105 tasks.
Failure modes. Figure 14 classifies every run without a cap by how it ends. GPT-6 Luna and GLM-5.3-Flash often submit within three turns without verifying their work (18% and 20%), a failure that the taxonomy of agent failures in Terminal-Bench also lists (Merrill et al., 2026). GLM-5.3-Flash also breaks the terminal session in 13% of its runs. MiMo-V2.6-Flash rarely submits early but spends long on each turn and reaches the time limit of a segment or the turn limit in 33% of its runs.

Figure 14. Outcome of every run without a cap on our tasks, as a share of each model's runs. Failed runs are classed by how they stop.
The three cases below show how runs end early or run out of time.
J Training Data Details
A PREPRINT
Submitting without checking (Pacemaker, segment 1, GPT-6 Luna)
Pacemaker manages resources in Linux high-availability clusters. The instruction asks for five fault-injection operations in a given order, with their output saved to a log. GPT-6 Luna sent all five commands in one turn. The first lacked the flag for automatic confirmation and stopped to wait for input, which swallowed the commands after it, so the log recorded the operations in the wrong order. GPT-6 Luna ended the segment without reading the output.
Breaking the terminal (Laravel application, segment 3, GLM-5.3-Flash)
GLM-5.3-Flash had a complete plan but began a batch of commands with set -e, which makes the shell exit as soon as a command fails. In an interactive shell the setting persists: a later command returned a nonzero status, the shell exited, and the session ended together with the remaining segments. Most broken sessions of GLM-5.3-Flash and GPT-6 Luna come from set -e or exit.
Reaching the time limit (Spark with Spooq, segment 1, MiMo-V2.6-Flash)
The instruction asks to run a sample job in the Spark shell and save its output. Two problems stand in the way: the wrong entry point causes a null-pointer exception, and the job lowers the log level to WARN, which hides the line the output needs. MiMo-V2.6-Flash found the first cause, then kept reading bytecode to trace the second without first saving an output that would pass, and ran out of time.
J Training Data Details
At evaluation, terminus-2 compresses the context through three calls: the model summarizes the work so far, asks questions in a new context that holds the instruction, the summary and the current screen, and answers them from the old context. The runs we collect come from long-context models and contain no compression, so a model trained on them would never see what follows one; we therefore cut each run where terminus-2 would compress it. The sample after a cut starts with the messages terminus-2 would give the model, with the summary, questions and answers generated by an LLM and the instruction covering all segments delivered so far. The three calls also become samples with prose targets. Replies the harness cannot parse are kept with its error message but excluded from the loss.