Academic

Terminal-Bench 4.0

Updated 10/24/2026

Frontier-difficulty terminal tasks across software, science, ML, operations, hardware, security, and media

As of October 24, 2026, Claude Opus 5.5 (Mini-SWE-agent) ranks first on Terminal-Bench 4.0 with 65.15%, followed by Claude Sonnet 5.5 (Mini-SWE-agent) at 64.14% and Kimi K3.1 Pro (Mini-SWE-agent) at 63.64%.

Terminal-Bench 4.0Frontier-difficulty terminal tasks
ACCURACY
Pinch or Ctrl/Cmd + scroll to zoom. Once zoomed, scroll or swipe with two fingers to pan, or drag to pan. Shift + drag draws a box to zoom into; turn on box zoom to draw one without Shift. Plus and minus keys zoom, arrow keys pan, 0 resets.

Terminal-Bench 4.0 leaderboard

Rank Model Harness Score Cost / Test Input / Output Cost Duration
1 Claude Opus 5.5 Mini-SWE-agent 65.15% $13.20 $4 / $20 1h04m
2 Claude Sonnet 5.5 Mini-SWE-agent 64.14% $16.51 $2 / $10 1h22m
3 Kimi K3.1 Pro Mini-SWE-agent 63.64% $4.57 $2 / $10 49m21s
4 GPT-6 Astra Mini-SWE-agent 59.60% $9.58 $10 / $50 35m42s
5 Claude Fable 5.1 Mini-SWE-agent 58.08% $17.18 $10 / $50 1h00m
6 Wonder Full Mini-SWE-agent 58.08% $10.53 $4 / $20 1h12m
7 Gemini 4 Argon Mini-SWE-agent 57.58% $17.64 $4 / $20 53m35s
8 GPT-6.1 Sol Mini-SWE-agent 55.05% $1.72 $2 / $10 45m12s
9 Claude Opus 5 Mini-SWE-agent 53.53% $18.60 $5 / $25 1h07m
10 Wonder Mini-SWE-agent 49.49% $14.66 $4 / $20 54m41s
11 GPT-6 Sol Mini-SWE-agent 44.44% $5.79 $2 / $10 34m56s
12 Claude Fable 5 Mini-SWE-agent 41.41% $30.34 $10 / $50 1h08m
13 GLM 5.3 Mini-SWE-agent 38.89% $9.37 $1.4 / $4.4 1h23m
14 Qwen 3.8 Max 0902 Mini-SWE-agent 38.89% $12.15 $2 / $6 2h23m
15 GPT-5.6 Sol Mini-SWE-agent 37.88% $7.98 $4 / $20 33m46s
16 GLM 5.3 Flash Mini-SWE-agent 37.37% $1.22 $0.075 / $0.25 1h01m
17 Claude Haiku 5.5 Mini-SWE-agent 36.36% $3.12 $0.1 / $0.5 51m56s
18 Qwen 3.8 Max Mini-SWE-agent 34.34% $10.63 $2 / $6 2h28m
19 DeepSeek V4.1 Flash 1017 Mini-SWE-agent 31.82% $0.54 $0.3 / $1.2 41m10s
20 Step 5 Preview Mini-SWE-agent 31.82% $3.11 $1 / $2.7 1h58m
21 MiMo V2.6 Pro Mini-SWE-agent 31.31% $0.50 $0.435 / $0.87 2h42m
22 Grok 4.7 Mini-SWE-agent 28.79% $18.01 $2 / $6 50m08s
23 Mistral Large 4 Mini-SWE-agent 27.78% $10.25 $1.36 / $4.18 1h40m
24 MiniMax-M3.1-Flash Mini-SWE-agent 25.25% $0.73 $0.15 / $0.6 50m31s
25 Muse Spark 1.3 Max Mini-SWE-agent 24.75% $6.65 $1.25 / $4.25 52m56s
26 MiMo V2.6 Flash Mini-SWE-agent 24.24% $0.22 $0.14 / $0.28 2h25m
27 Claude Opus 4.8 Mini-SWE-agent 23.23% $17.14 $5 / $25 1h11m
28 GPT-5.6 Terra Mini-SWE-agent 22.73% $5.60 $2 / $12 31m29s
29 Ember-1 Mini-SWE-agent 20.71% $19.48 $3 / $15 1h55m
30 DeepSeek V4.1 Flash Mini-SWE-agent 19.70% $0.50 $0.3 / $1.2 48m22s
31 Gemini 3.8 Flash Mini-SWE-agent 19.70% $8.65 $1.5 / $7.5 1h47m
32 DeepSeek V4 Flash 0731 Mini-SWE-agent 18.69% $0.77 $0.44 / $1.32 1h46m
33 Grok 4.6 Mini-SWE-agent 17.17% $5.06 $2 / $6 29m25s
34 Kimi K3 Mini-SWE-agent 17.17% $12.48 $3 / $15 3h09m
35 DeepSeek V4 Pro 0813 Mini-SWE-agent 14.14% $3.31 $1.32 / $3.96 1h32m
36 GPT-6 Luna Mini-SWE-agent 13.64% $0.35 $0.1 / $0.5 32m46s
37 Gemini 3.7 Flash Mini-SWE-agent 12.12% $8.71 $1.5 / $7.5 1h24m
38 GPT-5.6 Luna Mini-SWE-agent 11.62% $0.73 $0.2 / $1.2 35m55s
39 DeepSeek V4 Mini-SWE-agent 11.11% $3.45 $1.32 / $3.96 1h26m
40 Claude Sonnet 5 Mini-SWE-agent 10.61% $26.05 $2 / $10 1h45m
41 Muse Spark 1.3 Mini-SWE-agent 10.61% $7.04 $1.25 / $4.25 1h59m
42 Grok 4.5 Mini-SWE-agent 8.59% $5.52 $2 / $6 33m43s
43 Hy4 Preview Mini-SWE-agent 8.08% $2.10 $0.834 / $2.501 2h10m
44 Muse Spark Open Mini-SWE-agent 6.57% $7.26 $1.25 / $4.25 2h04m
45 Gemini 3.5 Flash Mini-SWE-agent 6.06% $5.98 $1.5 / $9 1h11m
46 Muse Spark 1.2 Mini-SWE-agent 6.06% $4.14 $1.25 / $4.25 1h18m
47 Beam 1.0 Mini-SWE-agent 4.04% N/A N/A 19m15s
48 Mercury 3 Mini-SWE-agent 3.03% $0.42 $0.1 / $0.35 33m07s
49 Gemini 3.1 Pro Preview (02/26) Mini-SWE-agent 2.52% $4.11 $2 / $12 18m44s
50 GPT 5.4 Mini Mini-SWE-agent 2.52% $1.44 $0.75 / $4.5 29m30s
51 MiniMax-M3 Mini-SWE-agent 1.01% $7.23 $0.6 / $2.4 1h16m
52 Inkling Mini-SWE-agent 0.51% $2.50 $1 / $4.05 22m59s
53 MiMo V2.5 Pro Mini-SWE-agent 0.51% $0.23 $0.435 / $0.87 2h07m
54 Inkling Small Mini-SWE-agent 0.00% $0.32 $0.3 / $1.2 11m45s
55 Mercury 2.5 Mini-SWE-agent 0.00% $0.37 $0.2 / $0.75 15m14s

Background

Terminal-Bench is an open-source benchmark that measures how well an agent can complete long, realistic pieces of work in a sandboxed terminal. Version 4.0 is a fresh set of 66 community-contributed, maintainer-reviewed tasks, none of which appear in Terminal-Bench 2.1. Each task is built around a real deliverable — a working service, a proof, a CAD model, a trained kernel, a forensic report — and carries an expert time estimate: the median task is estimated at 4 hours of expert work, and the range runs from under an hour to 60 hours.

Where Terminal-Bench 2.x was mostly software engineering and system administration, 4.0 is deliberately wide. The tasks span seven categories:

  • Software (18 tasks): databases, distributed systems, frontend performance, data engineering, algorithms
  • Science (14 tasks): biology, chemistry, physics, formal mathematics, robotics, linguistics, earth science
  • ML (11 tasks): training runs, inference serving, GPU kernels, evaluation harnesses
  • Operations (9 tasks): logistics, finance, insurance claims, compliance, supply chain
  • Hardware (5 tasks): CAD modeling and RTL design
  • Security (5 tasks): cryptography, application security, forensics
  • Media (4 tasks): music theory, audio transcription, layout design

We include Terminal-Bench because it is widely reported by model providers, because it reflects the kind of end-to-end terminal work that agentic coding products (Claude Code, Codex, Cursor and others) are expected to do, and because 4.0 raises the ceiling considerably: the tasks are long, multi-step, and graded strictly on the final artifact.

Terminal-Bench is developed by the Terminal-Bench community and the Harbor team as an open-source effort. We thank the community for building the benchmark and for helping us integrate it into our evaluation suite. To learn more or contribute tasks, visit tbench.ai.

Below is an example task from the Operations category (you can find the full task on the Harbor Hub).

Speed up the worker startup for the financial transaction processing pipeline so overdraft notifications are correct, not missed or duplicated, and arrive within 5s during worker respawns and rolling deploys in fresh containers.

Add any extra Python packages to /app/src/worker/requirements.txt.


Methodology

All models were benchmarked using mini-swe-agent, a minimal, model-agnostic agent harness. The model is given the task instruction and a single tool, bash: each turn it issues one or more shell commands, which run in a fresh subshell inside the task sandbox, and it reads back their output. There is no step or cost limit; the agent works until it signals that it has finished or reaches the task’s time limit.

All results reported are avg@3: each model is run through the full benchmark three times, each run scored as pass@1 (one attempt per task), and the displayed score is the mean of the three run-level scores, with error bars showing the standard error across those three runs. Each task is graded by its own verifier, which runs after the agent finishes and inspects the final state of the environment or the artifact the agent produced. A model must pass the verifier’s full test suite to get any credit for a task — there is no partial credit.

Tasks are run in isolated sandboxes on Daytona, following the upstream Harbor setup, including the three tasks that require a GPU. Each task has an 8-hour agent time limit, and each verifier has its own task-specific timeout; an agent that exceeds the time limit, or a verifier that cannot produce a result from the agent’s submission, scores zero for that task, matching Harbor’s semantics.


Comparison to Terminal-Bench 2.1

Our Terminal-Bench 2.1 results used the Terminus 2 harness; Terminal-Bench 4.0 uses mini-swe-agent. The Daytona sandboxes and pass@1 scoring are the same. The task set also changed:

  • New tasks. All 66 tasks are new; there is no overlap with the 89 tasks in 2.1.
  • Categories instead of difficulty tiers. 2.1 tagged tasks as easy/medium/hard. 4.0 tags them by domain (the seven categories above) and by an expert time estimate. We report scores per category.
  • Long time limits. Every 4.0 task allows the agent 8 hours.
  • Broader scope. 2.1 was predominantly software engineering. Roughly three quarters of 4.0 is outside traditional software engineering — science, ML systems, operations, hardware, security, and media.

Because the task set is entirely different, scores are not comparable across versions.