# Terminal-Bench

> Canonical: https://skillalmanac.com/glossary/terminal-bench | Last verified: 2026-11-24 | Index status: not offered to search engines

Terminal-Bench is a benchmark that tests AI agents on tasks done in a computer terminal. Each task has its own environment and tests that check whether the agent finished the work. It is used to compare agents and models.

Also called: terminal bench, terminalbench, Terminal-Bench 2.0, terminal-bench benchmark, tbench.

## In plain language

A benchmark is a fixed set of tests used to compare AI systems. Terminal-Bench gives an agent a job to do at a command line, such as setting something up or fixing something, and then checks the result with automated tests. It is like a driving test with a set route and an examiner who checks the outcome, not how the driver felt about it. A result on it describes how an agent and model did on that task set, under the settings used. It does not say how the same agent will do on your codebase.

## Technical definition

The Terminal-Bench paper (Merrill et al., arXiv 2601.11868, submitted 17 January 2026) describes Terminal-Bench 2.0 as a curated set of tasks in terminal environments drawn from real workflows, where each task has its own environment, a human-written reference solution and tests for verification. The authors release the dataset and an evaluation harness. The project repository describes a continuous benchmark with tagged releases, run through a framework called Harbor: a command selects the dataset, an agent such as claude-code and a model, and an oracle agent runs the reference solutions to validate tasks in your sandbox. Scores depend on the benchmark version, agent, model and settings, so a number is not comparable without them.

## How it shows up when you use agents

Terminal-Bench appears when someone compares coding agents or models. A model release or agent announcement may quote a result on it, and you may be asked to choose between tools on that basis. It is a benchmark for agents working at a command line, which is where tools such as Claude Code and Codex CLI do much of their work, so the task style resembles agent use more closely than a question-and-answer test does.

A benchmark result describes one combination: a benchmark version, an agent, a model and the settings used. Change one and the result can change. The repository's own example shows the agent and the model chosen separately, which is why "a score for the model" is incomplete. Read how a published number was produced before comparing it with another. This entry quotes no scores or rankings, and they change as new runs are submitted.

What breaks when this is misunderstood: a team picks a tool because of a leaderboard position, then finds it behaves differently in their repository, with their permissions and their tests. Next action: treat a public result as one input, then try the candidates on a few real tasks from your own repo and check the outcome with your own tests. See [LLM benchmark](/glossary/llm-benchmark) and [Agent harness](/glossary/agent-harness).

## Common confusions

- **Terminal-Bench versus SWE-bench.** Both test coding-related agent work, but they use different task sets and environments. See [SWE-bench](/glossary/swe-bench) for that one; do not mix their results.
- **Benchmark versus agent.** Terminal-Bench is the test set and harness. An agent such as claude-code is what gets tested, together with a model.
- **Benchmark version versus benchmark name.** The paper describes Terminal-Bench 2.0, while the repository describes a continuous benchmark with tagged releases. Note which release a number refers to.
- **Myth.** A high result means an agent is safe or right for every job. A benchmark checks a fixed set of tasks with their tests; it does not measure your codebase, your permissions or the risks of letting an agent run commands.

## Worked examples in this catalogue

### [Agentic Coding Tools: What They Are and How to Choose One](https://skillalmanac.com/learn/choosing-an-agentic-coding-tool)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide to what an agentic coding tool is, the main types, how Claude Code, Codex CLI, Gemini CLI, Cursor and Copilot CLI differ, and a five-test way to pick one in your own repo.

Why it exercises the concept: A public benchmark covers a fixed task set; the guide's own tests run in your repository. Together they show the gap between a benchmark result and fit for your work.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code is an agentic coding tool that reads your codebase, edits files and runs commands, available in the terminal, IDE, desktop app and browser, according to its overview page.

Why it exercises the concept: The Terminal-Bench repository's example run names claude-code as an agent. The agent in a benchmark run is the tool plus a model and settings, not the benchmark itself.

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill builds and validates an eval dataset for an LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: The catalogue does not include a Terminal-Bench runner, so this is a contrast case. It is for building your own test set when a public benchmark does not match your task.

## Related terms

- [LLM benchmark](https://skillalmanac.com/glossary/llm-benchmark.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Coding agent](https://skillalmanac.com/glossary/coding-agent.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)
- [SWE-bench](https://skillalmanac.com/glossary/swe-bench.md)
- [Sandbox](https://skillalmanac.com/glossary/sandbox.md)

## Sources

- [Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces — Merrill et al.](https://arxiv.org/abs/2601.11868), arXiv (accessed 2026-11-24)
- [Terminal-Bench repository (README)](https://github.com/harbor-framework/terminal-bench), Harbor Framework on GitHub (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
