Skip to main content
Terminal-Bench 2.0 is the official benchmark for evaluating AI coding agents, and Harbor is its official harness. This guide shows you how to run Terminal-Bench evaluations locally and in the cloud.

What is Terminal-Bench?

Terminal-Bench 2.0 is a comprehensive benchmark that evaluates AI agents’ ability to:
  • Complete real-world coding tasks
  • Navigate complex software environments
  • Use command-line tools effectively
  • Debug and fix issues autonomously
The benchmark includes diverse tasks across multiple programming languages and domains.

Quick Start

1

Set up your API key

Export your Anthropic API key (or other provider):
2

Run the evaluation

Execute Terminal-Bench with Claude Code:
This runs the benchmark locally using Docker with 4 parallel tasks.
3

Monitor progress

Harbor displays real-time progress:
4

View results

When complete, results are saved to jobs/<job-id>/:

Cloud Execution

For faster evaluation at scale, run on cloud providers like Daytona:
Cloud execution allows you to run 100+ tasks in parallel, dramatically reducing evaluation time.

Configuration Options

Agent Selection

Evaluate different agents on Terminal-Bench:

Task Filtering

Run a subset of tasks:

Timeout Configuration

Multiple Attempts

Run multiple attempts per task for statistical significance:

Understanding Results

After evaluation completes, Harbor generates comprehensive results:

Job Summary

Per-Task Results

Each task generates a trial_result.json:

Viewing Traces

View agent trajectories in the web UI:
Or export to ATIF format for analysis:

Performance Benchmarks

Typical execution times for Terminal-Bench 2.0 (250 tasks):
Start with a small subset (10-20 tasks) to validate your setup before running the full benchmark.

Troubleshooting

Increase build timeout:
Reduce concurrency or add delays:
Clean up Docker resources:

Next Steps

SWE-Bench

Run software engineering benchmarks

Custom Benchmark

Create your own benchmark

RL Optimization

Generate rollouts for RL training

Parameter Sweeps

Optimize agent parameters