terminus2.
How it works
- Load tasks. On its first run, AgentCompass shallow-clones the Terminal-Bench 2.0 repository from GitHub into the data directory. Each task supplies its instruction, container definition, and verifier.
- Run the agent. The task’s container image and resource requirements are applied by the environment recipe. The task instruction is passed to the harness, which operates in the prepared terminal workspace.
- Verify the result. The benchmark runs the task’s
tests/test.shthrough the Harbor verifier. A verifier reward of1is recorded ascorrect.
Parameters
Configure Terminal-Bench-specific options with--benchmark-params '{...}'.
Run examples
agentcompass run takes the benchmark id, harness id, and model id in that order. The default configuration uses the local docker environment; the recipe applies each task’s image automatically.
Run configuration is split into two JSON blocks: --benchmark-params carries Terminal-Bench configuration (the timeout multipliers above and optional task selection), and --harness-params carries the selected harness’s own configuration. The examples below use terminus2, whose relevant settings include max_turns and timeout. Both blocks can instead be written to benchmark.params and harness.params in --config; command-line values take precedence on shared keys.
Recommended harness
The recommended terminal agent isterminus2.
- Smoke test (single task end-to-end)
- Custom parameters
- AgentCompass recommended config
Verify the end-to-end flow works —
sample_ids selects which case to run, with all other parameters using their defaults.Other optional harnesses
codex and claude_code are two other harness options. Pass --recipe terminalbench2_docker_ac to use the AgentCompass prebuilt image. It includes download dependencies such as Node.js, npm, curl, and wget for Codex, Claude Code, and similar harnesses.
- Run with the official image
- AgentCompass recommended config
Omit
--recipe to use the official task image. Because it does not include the Node bootstrap dependencies, provide the matching installation command explicitly.Output
A run produces two kinds of results underresults/terminal_bench_2/<model>/<run>/: aggregate metrics in summary.md and one JSON record per task in details/.
Aggregate metrics (summary.md)
summary.md contains the run overview (Model, Total, Evaluated, and Error) and its headline metric, accuracy. accuracy is the share of evaluated tasks for which the Harbor verifier returns the full reward (1), so it is the task pass rate for Terminal-Bench.
Per-task details (details/)
Each task JSON recordscorrect, execution status, attempts, the agent trajectory and harness metrics, plus the raw verifier output used to determine the result. See Results.