# Terminal-Bench (2025)

> Compile, debug, train, configure servers or crack a puzzle in a Docker container; tests check the result.

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

## Key facts

- Category: LLMs
- Task: End-to-end tasks for agents working in a real Linux terminal
- Creators: Mike A. Merrill, Alexander G. Shaw, Nicholas Carlini et al. (Stanford, Laude Institute)
- Size: 112 tasks in this copy (the original repository); 89 in Terminal-Bench 2.0
- Splits: test 112
- Input: A task instruction and a container (Dockerfile) with the files and tools it needs
- Labels: A human-written reference solution, and pytest checks run on the container's final state
- License: MIT (this copy); the Terminal-Bench repository is Apache 2.0
- Paper: [Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces](https://arxiv.org/abs/2601.11868)
- Homepage: https://www.tbench.ai/
- Hugging Face: [ia03/terminal-bench](https://huggingface.co/datasets/ia03/terminal-bench)
- Sampled at Hub revision 2e9f4a8195789dea113eba0fc4a02aa5eaf35b15 (2026-11-08)

## Why it matters

Coding agents do much more than write patches: they install packages, read logs, build software and fix broken systems. Terminal-Bench gives an agent a shell inside a container and a task such as "build a Linux kernel and boot it in QEMU" or "recover the rows of a truncated SQLite database", then checks the container's final state with tests. It does not grade a diff. Within months of its May 2025 release it became, next to SWE-bench, one of the two coding-agent scores most labs report. Terminal-Bench 2.0 (late 2025) replaced the task set with 89 harder tasks, each checked by three reviewers. Frontier agents solved under 65% of them.

## Worth knowing

- Every task file carries a canary string so that training pipelines can find and drop it.
- Each task has a time limit, usually 6 minutes and up to 30 or more for heavy ones such as kernel builds, after which the tests run.
- The tasks range from cryptanalysis and installing Windows XP in an emulator to playing Zork, besides everyday jobs like fixing git or resolving conda conflicts.
- The tests never see the agent's transcript, only the files and processes it leaves behind, so any approach that works counts.

## Get the data

```bash
# pip install -U huggingface_hub
hf download ia03/terminal-bench --repo-type dataset \
  --local-dir terminal-bench
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("ia03/terminal-bench")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/ia03/terminal-bench@~parquet/default/test/*.parquet")
print(df.shape)
```

## Related datasets

- [Terminal-Bench 2.0](https://www.tbench.ai/): 2025, 89 harder, triple-reviewed tasks
- [SWE-bench Pro](https://huggingface.co/datasets/ScaleAI/SWE-bench_Pro): 2025, long-horizon patches in real repositories (on this site: https://mralbu.github.io/ai-datasets/d/swe-bench-pro)
- [SWE-bench](https://huggingface.co/datasets/princeton-nlp/SWE-bench): 2023, GitHub issues graded by hidden tests (on this site: https://mralbu.github.io/ai-datasets/d/swe-bench)

## Papers on this site that use it

- [Terminal-Bench (2026)](https://mralbu.github.io/ai-datasets/p/terminal-bench.md): Hard, expert-written tasks that an agent must finish inside a real terminal, graded by testing the state it leaves behind.
