# Terminal-Bench (2026)

> Hard, expert-written tasks that an agent must finish inside a real terminal, graded by testing the state it leaves behind.

Page: https://mralbu.github.io/ai-datasets/p/terminal-bench

## Key facts

- Title: Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces
- Authors: Mike A. Merrill, Alexander G. Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, et al.
- Venue: ICLR 2026
- Category: LLMs
- Paper: https://www.alphaxiv.org/abs/2601.11868

## Why it matters

Coding agents like Claude Code and Codex CLI work in terminals, and their work is much more than writing patches. Terminal-Bench measures that broader job, and since its first release in 2025 it has become, with SWE-bench, one of the two agent scores most model reports include.

## The idea

Each task is an instruction, a Docker container, a human-written reference solution and tests. The agent can do anything in the container (build software, configure servers, train a model, reimplement a COBOL program in Python), and the tests check only the final files and processes, not the commands it ran. Of 229 crowd-sourced tasks from 93 contributors, 89 survived three human reviews and an agent that tried to cheat them, forming Terminal-Bench 2.0.

## The result

Across 16 models and six agents (over 32,000 runs), the best, GPT-5.2 in Codex CLI, resolved 62.9% of tasks; the best open-weight model, Kimi K2 Thinking, 35.7%. Some tasks were solved by no agent at all. The state of the art nearly doubled in the eight months between Gemini 2.5 Pro and GPT-5.2.

## The data

- [Terminal-Bench (2025)](https://mralbu.github.io/ai-datasets/d/terminal-bench.md): Compile, debug, train, configure servers or crack a puzzle in a Docker container; tests check the result.

## Builds on

- [SWE-bench (2023)](https://mralbu.github.io/ai-datasets/p/swe-bench.md)

## Part of

- [Coding agents](https://mralbu.github.io/ai-datasets/t/coding-agents.md) (step 8 of 8)
