How Terminal-Bench 2.0 Scores an AI Model, Shown in Motion

  1. Home
  2. Blog
  3. How Terminal-Bench 2.0 Scores an AI Model, Shown in Motion

How Terminal-Bench 2.0 Scores an AI Model, Shown in Motion

When a model card says “Terminal-Bench 2.0: 58%”, that number is more specific than it looks. It is not a percentage of questions answered correctly, and it is not a grade from a judge model. It is the share of attempts in which an AI agent, working alone in a real Linux shell, left a computer in a state that passed every check a human wrote for it. This post takes the score apart: what one task is, what one attempt (a trial) does, how 445 pass/fail results become one number, and why that number always carries a ± next to it. Each step has a motion figure. Press Replay on any figure to watch it again.

The benchmark in one paragraph

Terminal-Bench 2.0 was released by the Terminal-Bench team (85 authors are listed on the paper) alongside a new harness called Harbor. It has 89 tasks drawn from real command-line work: building and debugging software, configuring services, data wrangling, security, scientific computing and so on. Most tasks would take an expert somewhere between an hour and a day. The paper, published in January 2026, reported that frontier models and agents scored below 65%, while smaller models scored around 15%.

1. What a single task is

A task is a folder, not a prompt. The agent sees only the instruction and the machine. The tests stay hidden until the agent has finished. The reference solution never reaches the agent. It exists so the maintainers can prove that the task can be solved at all.

my-task/instruction.mdwhat to do, in plain Englishenvironment/Dockerfilethe machine the agent starts intests/test.shhidden checks on the end statesolution/solve.sha human-written reference answertask.tomltime limits and metadataContainerboots from the Dockerfile; the agentreads the instruction and works hereVerifierruns only after the agent stopsOracle checkproves the task is solvable before releasetask.toml sets the agent and verifier time limits
Figure 1. Anatomy of a Harbor task. The Dockerfile builds the starting machine, the instruction is given to the agent, and the tests are kept back for the verifier. The human-written solution is run only by the maintainers, to prove the task is solvable.

2. What happens in one trial

A trial is one agent attempting one task once. Harbor boots a fresh container, gives the agent the instruction, and lets it run shell commands until it declares that it is done or hits the time limit set in task.toml. Then the verifier copies the tests into the container, runs them, and writes a number to /logs/verifier/reward.txt.

The important detail is that the tests inspect the final state of the container, not the transcript. It does not matter how elegant the agent’s commands were, or whether it explained itself well. Only whether the files, services and outputs end up the way the task requires.

1 Boot container2 Agent loop3 Verifier4 Rewardagent shell inside the container$ cat /app/instruction.md$ ls /app; python3 -V$ pip install -r requirements.txt$ sed -i ‘s/split()/split(“,”)/’ parse.py$ python3 -m pytest -q 12 passed$ exit # agent says it is doneagent time limitstopped well before the limit (illustrative)tests/test.shcopied in after the agent exitsparse.py splits on commasCSV fixture parses to 4 rowsservice starts on port 8080original data file unchanged/logs/verifier/reward.txt1
Figure 2. One trial from start to finish. The agent’s shell session is ungraded. The grading happens afterwards, when hidden tests check the end state and write the reward. The commands and checks shown here are illustrative.

3. Passing means every test passes

Scoring is all-or-nothing. If a task ships six tests and the agent’s final state passes five, the trial is recorded as a fail. There is no partial credit. This is deliberate. In real terminal work a migration that is “mostly done” or a server that “almost starts” is a broken system, and partial credit would reward agents for doing work that looks plausible but is useless.

test_output_file_existstest_schema_matchestest_row_counttest_no_duplicatestest_sorted_by_datetest_totals_match_ledgerpartial credit would say5 / 6 = 83%Terminal-Bench records0One failing check fails the whole trial. A nearly-rightanswer scores the same as doing nothing.
Figure 3. All-or-nothing scoring. One red check turns a nearly-correct attempt into a 0, the same score as running out of time.

4. From 445 coin flips to one number

A single trial is noisy. The same model can succeed on a task in one attempt and fail in the next, because sampling is random and long agent trajectories branch. So every model-and-agent pair is run on every task at least five times. Across all the entries in the paper, this came to 32,155 trials. For one entry with exactly five trials per task, the grid is 89 × 5 = 445 pass/fail cells.

each strip is one task; its 5 squares are 5 independent trials; sorted from easiest to hardestGreen trials: 237 of 445Resolution rate = 237 / 445 = 53.3%all tests passedat least one test failed or timed out
Figure 4. A simulated run of one entry. Each strip is a task and each square is a trial. The headline score is the share of green squares: 237 of 445, or 53.3%. The grid is randomly generated for illustration and is not any real model’s results.

The paper averages trials within each task-agent-model combination. When every task has the same number of trials, averaging the per-task averages gives exactly the same result as pooling all the trials:

resolution rate = (1 / (T × K)) × Σtasks t Σtrials k reward(t, k)
with reward ∈ {0, 1}, T = 89 tasks, K = trials per task (≥ 5)
here: 237 / 445 = 53.3%

Two consequences follow from this. First, every task carries equal weight. A tricky kernel build counts exactly as much as a small configuration fix. Second, a trial that runs out of time is simply a failure, so the time limit is part of what is being measured.

5. What the number is not

The same grid can be summarized in other ways that sound similar but measure different things. “Solved at least once in five tries” (pass@5) rewards a model that gets lucky occasionally. “Solved in all five tries” measures reliability. Terminal-Bench reports neither of these. It reports the mean over all trials, which you can read as the chance that a single attempt on a randomly chosen task succeeds.

Resolution rate: mean over all trialswhat the leaderboard reports53.3%Solved at least once in 5 tries (pass@5)not reported, flatters the model80.9%Solved in all 5 tries (pass^5)not reported, the reliability view21.3%
Figure 5. Three readings of the same 445 cells. Comparing a pass@k figure from one source with a resolution rate from another is comparing two different metrics.

6. Why every score has a ±

Eighty-nine tasks is a small sample, and every leaderboard entry is plotted with a 95% confidence interval. The more trials there are, the narrower the interval, but only up to a point. Repeating attempts on the same 89 tasks reduces the noise in each attempt. It does nothing about the fact that only 89 tasks were chosen. Secondary write-ups describe the method as a Wilson score interval on the trial-level proportion, and that is the interval drawn below.

40%50%60%70%80%1 trial per taskn = 89 trials43.0 to 63.35 trials per taskn = 445 trials48.6 to 57.810 trials per taskn = 890 trials50.0 to 56.5same observed rate (53.3%); 95% Wilson interval on the trial-level proportion
Figure 6. The same 53.3% with 1, 5 and 10 trials per task. At five trials per task the interval runs from 48.6% to 57.8%. Any two entries whose intervals overlap this much should not be ranked against each other with confidence.

A practical rule: if two entries are within about five points of each other, read them as tied unless the intervals clearly separate.

7. Easy, medium and hard are measured, not declared

Task authors estimate how long a task would take a junior engineer and an expert. However, the difficulty labels in the paper come from measurement: a task’s pass rate with the neutral Terminus 2 agent across frontier models. A task is easy at 66.7% or higher, medium from 33.3% to 66.7%, and hard below 33.3%.

Hard (below 33.3%)MediumEasy (66.7% and up)0/51/52/53/54/55/5each dot is one task, placed by how many of its 5 trials passed
Figure 7. The simulated tasks from Figure 4, sorted into bands by how many of their five trials passed. In the paper, the bands come from pass rates across many frontier models, not from a single run as shown here.

8. A score belongs to a model-agent pair

Terminal-Bench does not score a model in isolation. It scores a model running inside an agent harness. The harness decides the system prompt, which tools are available, how errors are retried and how the context is trimmed when it gets long. To make models comparable, the team built Terminus 2, a deliberately plain harness with a single tool, a headless terminal, that works only through Bash commands. Vendors can also submit their own agents, such as Codex CLI or Claude Code, so the same model can appear more than once with different scores.

One leaderboard entryAgent harnessprompts, tools, retries, context handlingModelthe LLM making decisionsTop of the paper’s results tableGPT-5.2with Codex CLI62.9% ± 3.0Claude Opus 4.5with Terminus 257.8% ± 2.5Gemini 3 Prowith Terminus 256.9% ± 2.5Terminus 2 is the neutral harness: one tool, a headless terminal.
Figure 8. A leaderboard row is a model inside a harness. The figures on the right are the top three entries in the paper’s main results table (January 2026). The leaderboard has moved on since then.

How the tasks earned their place

A benchmark score is only as good as its tests. If a test can be passed by deleting it, or a task depends on a website that changes, the number is measuring noise. Terminal-Bench 1.0 ran into exactly this problem: a task that downloaded a YouTube video broke when YouTube changed its anti-bot defences. For 2.0, each task went through several layers of checking:

  • Automated checks. The reference solution must pass every test, a do-nothing agent must fail, and an LLM-backed checker flags gaps in the specification.
  • Human review. Three reviewers audit each task, about three reviewer-hours of work per task.
  • Adversarial exploit agent. An agent is told to cheat, for example by editing the tests or faking outputs. Its trajectories are read by hand, and any loophole it finds is closed.
  • Removal. Tasks that could not be reproduced reliably, or that passed or failed on an arbitrary threshold, were cut.

Reading it as a search engineer

If you have run offline relevance evaluation, Terminal-Bench will feel familiar. The tasks are the query set. The hidden tests are strict, binary relevance judgments. Repeated trials are like repeated runs of a system that is not deterministic. The resolution rate is a macro-average over a small query set, with all the usual caveats: 89 queries cannot separate systems that are a couple of points apart, a single aggregate hides category-level regressions, and the score belongs to the whole pipeline (the harness) rather than to the ranking model alone. The habit that serves you well for search evaluation works here too: look at the interval and the per-task breakdown before you believe the headline.

A checklist for the next time you see “Terminal-Bench 2.0: X%”

  • Which agent harness was used, Terminus 2 or the vendor’s own?
  • How many trials per task? Fewer than five means it is not a leaderboard-style run.
  • Is it a resolution rate (mean over trials), or a pass@k figure presented under the same name?
  • Were the default time limits and resources kept? Longer limits change what is being measured.
  • What is the confidence interval, and does it overlap the model you are comparing against?
  • Was it run with Harbor on the official task set, or with a third-party framework (for example, an Inspect port with its own scaffold)?

Sources, and what is established versus my framing

ClaimStatusSource
89 tasks; hidden tests check the final container state; human-written reference solution; frontier models score below 65%EstablishedMerrill et al., Terminal-Bench (arXiv 2601.11868)
At least 5 runs per model-agent pair; 32,155 trials; averaged per task-agent-model; 95% intervals; Terminus 2 has a single headless-terminal tool; difficulty bands at 33.3% and 66.7%; three reviewers, about three reviewer-hours per task; adversarial exploit agent; top scores in Table 2EstablishedPaper, full text
Task folder layout (instruction.md, task.toml, environment/, solution/, tests/test.sh) and reward written to /logs/verifier/reward.txtEstablishedHarbor docs
2.0 is a harder, better-verified successor to 1.0; the YouTube-download task broke in 1.0; Harbor runs thousands of cloud containersEstablishedTerminal-Bench 2.0 announcement
All-or-nothing pass rule per trial; Wilson score method for the intervalReported in secondary summaries; I did not confirm the interval method in the paper textEmergent Mind topic summary
The 445-cell grid, its 53.3% score, the pass@5 and pass^5 comparison, the interval widths, and the example commands and testsMy illustration: simulated data, not any model’s real resultsThis post
The analogy to search evaluation and the reading checklistMy framingThis post
Let's Share
Show Buttons
Hide Buttons