Benchmarks · Coding & software engineering

Terminal-Bench

also: Terminal Bench, TBench, Terminal-Bench 2.0, Terminal-Bench 2.1

Can an AI agent actually operate a computer through a real command-line shell — issuing commands, reading their output, and adapting — to finish a multi-step task, rather than just producing plausible-looking commands?

Stanford University & Laude InstituteReleased 19 May 2025Live

Most coding benchmarks hand a model a finished snippet of context and ask for one answer back. Terminal-Bench, released in 2025 by Stanford researchers and the Laude Institute, asks something more demanding: put an agent in front of a real, disposable command-line environment and see whether it can actually drive it — running commands, reading their output, and adjusting — until a task like compiling a repository, training a small model, or fixing a broken server configuration is genuinely done. Success is judged by an automated check on the final state of the sandbox, not by how convincing the agent’s commands look.

Early results exposed a real gap between talking about terminal work and doing it: general commercial coding agents beat the benchmark’s own minimal reference scaffold, but even the strongest systems finished well under half the tasks at launch. That gap closed fast as agentic coding models matured through 2025 and 2026 — OpenAI’s Codex-tuned models climbed from the low 50s to the high 70s on Terminal-Bench 2.0 within a few months, and by mid-2026 leading models from Anthropic, Zhipu and xAI were clearing 80%.

The benchmark has kept pace with that progress by getting harder, moving from an 80–100 task 1.0 release through a tougher 2.0 and then a 2.1 revision. It has also become one of the clearer illustrations of a recurring pattern in this record: a vendor’s self-reported launch score and the same model’s result under Terminal-Bench’s own leaderboard scaffold don’t always match, since the agent harness wrapped around a model can matter almost as much as the model itself.

The set

Each task runs inside an isolated Docker sandbox and is graded by an automated script that checks the final state of the environment, not the agent's transcript. Tasks span compiling code repositories, training small machine-learning models, configuring servers and debugging broken systems. The original 2025 release covered roughly 80–100 beta tasks; harder successor versions (2.0, then 2.1) followed the same year and into 2026.

Example

Task 'broken-python', instruction verbatim: 'There's something wrong with my system-wide python installation - I can't seem to install packages with pip.' The agent gets a live shell inside a disposable Docker container and must diagnose and fix it; success is checked by an automated pytest script against the final container state.github.com

Where it stands

Moved quickly from 1.0 to a harder 2.0 and then 2.1 revision as scores rose; self-reported launch-day figures from model vendors have sometimes run a few points above what the same model scores under Terminal-Bench's own leaderboard scaffold, a gap the site's maintainers attribute to differences in agent harness rather than the underlying model.

How the top score changed hands

  1. November 2025GPT-5.1-Codex-Max58.1%Terminal-Bench 2.0, up from 52.8% for GPT-5.1-Codex a week earlier; OpenAI's own figure.
  2. December 2025GPT-5.2-Codex64.0%Terminal-Bench 2.0, OpenAI's own figure.
  3. February 2026GPT-5.3-Codex77.3%Terminal-Bench 2.0, OpenAI's own figure.
  4. June 2026GLM-5.281.0Terminal-Bench 2.1, Zhipu's own figure; the version had shifted from 2.0 to 2.1 by this point.
  5. July 2026Grok 4.583.3%Terminal-Bench 2.1, xAI's own figure, not independently confirmed at launch; the model scored lower (79.3%, via the Cursor CLI scaffold) on Terminal-Bench's own leaderboard.

Current best: Claude Fable 5 (via Claude Code scaffold) — 83.8% Top of Terminal-Bench's own live 2.1 leaderboard, run with the Claude Code agent scaffold rather than a vendor's self-reported figure.

In the timeline · 12 entries

More coding & software engineering benchmarks