Benchmark CodeAF Published

Terminal-Bench 2.1 results: thirteen coding harnesses on one model (2026)

On this page
  1. Results and ranking
  2. Consistency across attempts
  3. Setup
  4. Scoring rules
  5. How the runs differ
  6. How to reproduce

In short. CodeAF is #1 on Terminal-Bench 2.1: the highest pass rate and the lowest cost per attempt of 13 commercial and open-source harnesses on the same model.

CodeAF is #1 on Terminal-Bench 2.1. On the same model it beats all twelve commercial and open-source harnesses, Claude Code and Codex among them, at the lowest cost: Kimi Code and Grok Build cost about twice as much per attempt. It also solves the most tasks on every attempt.

Every harness is scored by the Harness Leaderboard’s rules. The other twelve rows are the leaderboard’s published results as of 24 November 2026; CodeAF ran on 25 November 2026.

Results and ranking

Every row uses DeepSeek V4.1 Flash at high reasoning effort, on DeepInfra through OpenRouter. Each harness had 3 attempts on each of the same 87 tasks.

DeepSeek V4.1 Flash, high effort · 87 tasks · 3 attempts per task
Rank Harness Mean of 3 95% interval Pass@3 All 3 Cost per attempt
1 CodeAF senior-dev 82.0% 75.1%–88.5% 89.7% 72.4% $0.026
2 Kimi Code 78.2% 70.5%–85.4% 88.5% 66.7% $0.047
3 Grok Build 77.8% 70.1%–85.1% 87.4% 66.7% $0.047
4 Codex 74.7% 67.0%–82.0% 86.2% 59.8% $0.032
4 OpenCode 74.7% 66.7%–82.4% 87.4% 64.4% $0.033
4 Claude Code 74.7% 67.0%–82.0% 87.4% 60.9% $0.043
4 fx 74.7% 66.7%–82.4% 83.9% 62.1% $0.054
8 DeepSeek Harness 74.3% 66.3%–82.0% 85.1% 62.1% $0.041
9 Pi 73.2% 65.1%–80.8% 85.1% 58.6% $0.028
10 Qwen Code 72.8% 64.8%–80.5% 85.1% 60.9% $0.048
11 mini-swe-agent 72.4% 64.4%–80.1% 85.1% 56.3% $0.051
12 OpenClaw 65.5% 56.7%–74.3% 73.6% 54.0% $0.047
13 Hermes 64.8% 56.3%–73.2% 79.3% 48.3% $0.043

The mean of three is the share of attempts that passed for each task, averaged across tasks. Pass@3 is the share of tasks solved at least once. All 3 is the share solved on every attempt. The 95% intervals come from resampling tasks.

Pass rate vs. cost per attempt

CodeAF averaged 82.0% at $0.026 per attempt. On the same model, that was about 10% more passing attempts than Claude Code, Codex or OpenCode, which tied for fourth at 74.7%. The CodeAF run cost $6.66 across 261 attempts. The median attempt took 6.3 minutes.

Mean pass rate with 95% intervals

On the same model, CodeAF leads Kimi Code by 3.8 points and Claude Code, Codex and OpenCode by 7.3.

Consistency across attempts

On the same model, CodeAF solved 72.4% of tasks in all three attempts, the most of the thirteen harnesses. It solved 89.7% of tasks at least once.

Share of tasks solved across three attempts
  • All 3
  • 1 or 2
  • None

Setup

Modeldeepseek/deepseek-v4.1-flash through OpenRouter, pinned to DeepInfra with fallback disabled and reasoning effort set to high.
AgentCodeAF built from tag bench/terminal-bench-2.1, commit 3bb12ba332. Each attempt ran codeaf senior-dev run once and passed the task instruction verbatim.
RunnerHarbor 0.24.0 with Docker, using Terminal-Bench 2.1 at the leaderboard’s pin, d49e28f. The leaderboard excludes qemu-startup and qemu-alpine-ssh.
BudgetThe task’s time limit was the only cap. CodeAF received 90% of it to leave time to hand in its work.
ExecutionUp to 40 attempts ran at once. The grader produced a result on the first try for every attempt.

The adapter leaves services running for tasks that grade a live process. It merges the agent’s branch into the task checkout before grading. A metering proxy outside the task containers enforces the provider and effort and records costs from the provider’s own usage accounting. See the job config.

Scoring rules

  • Pass. The task grader must award a reward of 1. An attempt that ends without a reward counts as a fail.
  • Answer lookups count as fails. An attempt fails if it obtains the answer from an outside source, such as hidden tests, a reference solution or upstream code containing the required fix. We ran the leaderboard’s answer-key detection on the transcript of what the model saw and reviewed every passing attempt that fetched web content under the leaderboard’s confirmation rule. We counted 3 rewarded attempts as fails, including a borderline case.
  • Unreviewed attempts count as fails. The transcript reviewer declined to read 5 rewarded attempts on biology tasks that fetched web content. Counting those attempts as passes would put the mean at 83.9% and pass@3 at 93.1%.
  • Reward only. Using the grader’s reward alone, the mean was 85.1%. The comparison CSV includes both scoring methods for every harness.

How the runs differ

The Harness Leaderboard runs tasks in its own sandboxes. AgentField used Docker on one cloud machine with the same task images, time limits and grader. Each row represents one run with three attempts per task.

How to reproduce

The benchmark repository publishes the per-attempt results, scoring script and run configuration. To recompute the comparison, clone the repository and run the following in terminal-bench-2.1.

Shell
curl -LO https://huggingface.co/buckets/joelniklaus/harness-leaderboard/resolve/results/trials.csv.gz
python3 scripts/score.py trials.csv.gz
python3 scripts/chart.py

For a fresh run, use Docker, Go 1.26, Python 3.11 or later and an OpenRouter key. Build CodeAF from the benchmark tag, then follow the run instructions to install Harbor, pin the tasks and start the job. The published run took about two hours at 40 concurrent attempts.

Read next