Positioning
Harbor is a Python framework for running any agent on any task in any sandbox, in parallel 1. It is built by the team behind Terminal-Bench, and the Terminal-Bench README tells new users to install Harbor to run the benchmark 2. The code lives at harbor-framework/harbor under Apache-2.0; the older laude-institute/harbor URL redirects there. As of November 2026 the repository has about 6,900 stars 3.
The unit of work is a task, and a task is a directory: instruction.md, task.toml, an environment/ (a Dockerfile or any spec the runner supports), an optional solution/, and a tests/ folder whose test.sh must write a numeric reward to /logs/verifier/reward.txt or reward.json 1. A trial is one agent attempt at one task; a job is a set of trials. Tasks have no dependency on Harbor itself, so the same directory can be consumed by another runner. Inspect Harbor is one: since its 1.0 release (September 23, 2026, MIT) it loads Harbor datasets into Inspect AI without depending on the harbor package 4 5.
That makes Harbor different from Inspect AI. Inspect is a Python program per eval: you write solvers and scorers. Harbor is a file format plus a runner: you write a Dockerfile and a test script, then point any of its built-in agents at it. If your eval is "did the agent leave the box in the right state," Harbor's shape fits. If it is a multi-sample QA eval with model-graded scoring, it does not. The format and the runner are now separate choices, though: a Harbor task can be graded by its own tests/test.sh under either runner 6.
Figure: Harbor trial mechanism: a task directory (instruction, environment spec, tests) is started in a sandbox such as Docker, Podman, Modal, or Daytona; the chosen agent works inside it; tests/test.sh then writes a numeric reward, and the trial keeps the reward and an agent trajectory. A job fans many trials out in parallel, with -k attempts per task.
Strengths
- Tasks are plain files. A task needs no Python SDK. Anyone who can write a Dockerfile and a shell test can contribute one, which is how Terminal-Bench takes community tasks 2.
- Many agents, many sandboxes, one flag each. In the v0.25.0 source, the agent registry has 48 entries, counting the
acp, terminus, and terminus-1 aliases (claude-code, codex, gemini-cli, openhands, terminus-2, mini-swe-agent, plus oracle and nop controls), and the EnvironmentType enum has 34 sandbox values, including docker, podman, kata, modal, daytona, e2b, gke, and vercel 7 8. 0.25.0 added Docker Sandboxes, Kernel, and Sail environments and a NeMo Fabric agent 9. Cloud sandboxes are optional extras, for example harbor[modal] 1.
- Separate verifier and regrade. A task can verify in a fresh sandbox that does not inherit the agent's filesystem changes. Since 0.25.0 (PR #3712, merged October 19, 2026), tasks created with
harbor task init or harbor init --task get that separate verifier by default 10 9. harbor job regrade then re-runs an updated verifier on recorded artifacts without starting the agent, so it needs no agent credentials and costs no agent tokens 1. Fixing a flaky test no longer means paying for the whole run again.
- Static task lint.
harbor lint, new in 0.25.0, checks a task without starting a sandbox. Default rules flag invalid config, unpinned Python dependencies, test or solution files copied into the agent image, privileged or writable Compose mounts, and a verifier that shares the agent sandbox (shared-verifier); root-agent and unpinned-image are opt-in 11. The release also ported Terminal-Bench's own lint checks 9. Run it in CI on any task directory you publish.
- Oracle runs as a task QA step. The Terminal-Bench README has you run the
oracle agent five times (-k 5) before trusting a sandbox setup, to catch tasks that flake on your infrastructure 2. Few eval tools have an equivalent; Inspect Harbor carries the same idea over as its oracle solver, which runs a task's reference solution instead of a model 12.
- Trajectories are first-class. Agents emit ATIF, a JSON trajectory format with messages, tool calls, observations, and metrics, and
harbor view browses jobs locally 1. This is the input you need for the trajectory vs outcome analysis.
- Multi-turn trials. v0.22.0 (August 22, 2026) added simulated-user trials over ACP, where a user agent holds the instruction and the agent under test learns the task by conversation; the same release added Vercel Sandbox. v0.23.0 (September 12) added Podman and Kata microVM isolation 9.
harbor run --diff previews what a job would reuse, regrade, or rerun against a prior job 1.
Limitations
- Pre-1.0 and fast. Tagged releases ran from v0.17.0 on July 3 to v0.25.0 on October 25, 2026 9, and the package requires Python 3.12 or newer: every release on PyPI declares
Requires-Python >=3.12 (the first two, >=3.13), so a Python 3.11 environment cannot install it 13. Pin the version in every report, as you would for Inspect AI, and expect CLI flags to move.
- Shared verification is still the fallback. The new-task default changed in 0.25.0, but a
task.toml that sets neither verifier.environment_mode nor [verifier.environment] still uses shared verification, so existing and hand-written tasks keep it: tests/ is uploaded into the same environment the agent just worked in 10. An agent that edits files the tests read, or the tests themselves, can pass without solving the task. The docs say a separate verifier "can improve the security boundary," which is a polite way of saying shared mode is weaker. Read reward hacking before you publish a number, run harbor lint so its shared-verifier rule catches these tasks 11, and treat any task without a separate verifier as suspect.
- Network is open unless the task closes it. The documented
network_mode baseline for the agent environment is public when omitted; no-network or allowlist must be set per task 1. A result earned with web access is a different measurement from one earned offline.
- Agents install at trial time. Many built-in agents are installed into the sandbox when the trial starts, and release notes show recurring fixes to installers for npm packages and curl bootstraps 9. An agent CLI that changes upstream between two runs changes your score. That is environmental drift you did not choose; record the agent version and, where you can, bake it into the image.
- Not a scoring toolkit. Reward is whatever your test script writes. There are no built-in LLM-judge metrics, dataset-level statistics beyond custom metrics, or CI assertions like Promptfoo has. Use
-k attempts and read pass@k and consistency rather than reporting one run.
- Docker is the default and cloud is a bill. Local runs need a container runtime. Terminal-Bench's own guidance runs hundreds of concurrent trials on Modal 2, so budget sandbox hours and model tokens together.
Best fit
Command-line and repository-level agent evals where success is checkable by a script: build the thing, fix the failing test, configure the server. It is the practical way to run Terminal-Bench and to build an internal Terminal-Bench-style suite for your own coding agent. See the autonomous coding task-type page for how these evals fit with SWE-bench-style suites. Strongest fit for research engineers and teams comparing agent scaffolds across models. If your team already runs Inspect and only needs Harbor-format tasks graded with Inspect agents, try Inspect Harbor before adding a second runner (see Alternatives).
A version note: the Harbor docs still show terminal-bench@2.0 in their examples, but the Terminal-Bench site now serves 4.0, a breaking release that removed 8 tasks, updated 19, and set a uniform 8-hour agent timeout, so scores do not carry over from earlier versions and trials must be rerun 14 15. State which dataset version you ran.
Getting started
# Harbor needs Python 3.12 or newer
uv tool install harbor # or: pip install harbor
harbor --version # 0.25.0 is the current release (October 25, 2026)
harbor run --help # every flag below is documented here
The quick start in the docs runs one task in the default Docker sandbox and needs Docker and a model key 1:
OPENAI_API_KEY="<your-key>" \
harbor run -t hello-world/hello-world \
-a codex -m openai/gpt-5.6-luna
harbor view ./jobs
To run Terminal-Bench 4.0 with five attempts per task on a cloud sandbox, follow the Terminal-Bench README and docs 2 14. The docs describe --print-config as a way to inspect the resolved config without running the job, so it doubles as an offline check before a paid run 1:
harbor run --print-config \
-d terminal-bench/terminal-bench@4.0.0 \
-a claude-code -m anthropic/claude-sonnet-5-5 \
-k 5 -n 8 -e daytona
Here -k sets attempts per task and -n the number of concurrent trials 1. Drop --print-config and set the provider key (for Daytona, DAYTONA_API_KEY, plus uv tool install "harbor[daytona]") to run it for real 1.
The Inspect route to the same task format, per the Inspect Harbor docs. It also needs Python 3.12, Docker, and a model key, and it runs Terminal-Bench 2.0 with an Inspect ReAct agent rather than a Harbor agent adapter 5 12:
pip install "inspect-harbor>=1.0"
inspect eval inspect_harbor/terminal_bench_2 --model anthropic/claude-sonnet-5-5
Both examples name claude-sonnet-5-5, which Anthropic lists as active with retirement not sooner than September 28, 2027; Claude Sonnet 5, used in earlier versions of this page, is now a legacy model 16 17.
Pricing notes
The framework is free under Apache-2.0 3. You pay for model calls and sandbox time. Harbor Hub offers hosted jobs (harbor run --launch) and result sharing. Remote rollouts are gated behind an access-request form, and the Hosted Harbor docs publish no rate card as of 2026-11-07, so check before relying on it 18. Agent runs on hard tasks are long and token-heavy, so sandbox hours at high concurrency are usually the surprise line item, not the framework.
Alternatives
Inspect AI is the closest alternative and the better choice when you want a Python-defined eval with solvers, scorers, a large prebuilt register, and a mature VS Code viewer; its sandboxing also covers Docker, Kubernetes, and Modal. Harbor wins when your tasks are self-contained directories graded by a script, when you want many off-the-shelf agent CLIs run side by side, or when you need to run Terminal-Bench itself. Inspect also has the larger prebuilt eval register; Harbor has the larger set of ready-made agent adapters.
Since September 2026 the two are not either/or. Inspect Harbor 1.0 maps each Harbor task to an Inspect Sample, its environment to an Inspect sandbox, and its tests/test.sh to a scorer that reads the same reward file, and its registry covers Terminal-Bench (current, plus 2.0 and 2.1), SWE-bench Verified, and Aider Polyglot among 166 datasets 6 19. The current Terminal-Bench entry loads the Harbor hub's latest revision, tagged 4.1.0 as of 2026-11-07, unless you pass ref=4.0.0 20 21. Use it when you want Harbor-format tasks inside an existing Inspect setup. Run Harbor directly when you need its built-in agent adapters (Inspect Harbor's documented agents are Inspect agents such as a ReAct scaffold or inspect_swe/claude_code), or multi-step tasks (which Inspect Harbor rejects) 12 6. For plain model benchmarks without agents, use lm-evaluation-harness. For CI regression on prompts, use Promptfoo.
Citations and last verified
Verified 2026-11-07 against the Harbor GitHub repository, PyPI metadata, the v0.25.0 release notes, the separate-verifier, lint, and Hosted Harbor docs, the Terminal-Bench site, and the Inspect Harbor docs, registry, and PyPI listing. Agent and sandbox counts come from the v0.25.0 source (AgentName and EnvironmentType), and model IDs from Anthropic's deprecations and models pages. The Terminal-Bench README and 4.0 announcement were last checked on 2026-10-17.