LevelUpWith

Explore / Harness Engineering for AI Agents / Lesson 1

Lesson 1: Same Model, Different Scores: Why Harnesses Matter

Read benchmark results where the model stays fixed and only the harness changes, and see why the code around the model can move results by as much as switching models.

Free to read, no account needed. Part of Harness Engineering for AI Agents.

By the end of this level you'll be able to

  • Explain what a harness is, and why Terminal-Bench 2.0 results for one model differ across harnesses such as Terminus 2 and vendor agents
  • Read a leaderboard entry critically by checking which harness ran it and what it spent in tokens and turns
  • List three questions to ask before believing that one model beats another

The experiment nobody runs at home

You've called a model API and you've used a coding agent. Here's a question you probably haven't asked: when a coding agent fixes a bug, how much of that work did the model do, and how much did the code around it do?

That surrounding code is the harness. It's everything that isn't the model weights: the loop that keeps calling the model, the tools it can use (a shell, a file editor), the system prompt, how tool output is cut down before going back into context, when to stop, and how many turns and tokens it may spend. Think of the model as an engine and the harness as the rest of the car. Put the same engine in two different cars and you get two different lap times.

In this course you'll build, measure and cut back a harness. Before that, you need to be able to read the evidence that harnesses matter. That evidence comes from benchmarks where the model stays the same and only the harness changes.

Terminal-Bench 2.0 in one paragraph

Terminal-Bench 2.0 (released November 2025, paper accepted at ICLR 2026) is a set of 89 hard tasks done in a terminal. Each task has its own container, a solution written by a person and tests that check the result. Tasks run through Harbor, the benchmark team's framework, which can plug in different agents: Claude Code, Codex CLI, OpenHands, Mini-SWE-Agent and the team's own agent, Terminus 2. Terminus 2 is deliberately plain. It has one tool, a headless terminal, and works only through Bash commands. It was built as a neutral testbed for comparing models.

So the leaderboard has two columns that matter: MODEL and AGENT. Most people only read the first.

Walkthrough: one model, several harnesses

These are resolution rates from the Terminal-Bench paper's main results table (± is the standard error). Let's compute how far scores move when only the harness changes:

# Resolution rates (%) from the Terminal-Bench 2.0 paper, Table 2
results = {
    "GPT-5":             {"Terminus 2": 35.2, "OpenHands": 41.5, "Codex CLI": 49.6},
    "GPT-5.2":           {"Terminus 2": 54.0, "Codex CLI": 62.9},
    "Claude Opus 4.5":   {"Terminus 2": 57.8, "Claude Code": 52.1, "OpenHands": 51.9},
    "Claude Sonnet 4.5": {"Terminus 2": 42.8, "Mini-SWE-Agent": 42.5,
                          "OpenHands": 40.3, "Claude Code": 40.1},
}

for model, by_agent in results.items():
    best = max(by_agent, key=by_agent.get)   # harness with the highest score
    worst = min(by_agent, key=by_agent.get)  # harness with the lowest score
    spread = by_agent[best] - by_agent[worst]
    print(f"{model:18} {spread:5.1f} pts  ({worst} -> {best})")

Output:

GPT-5               14.4 pts  (Terminus 2 -> Codex CLI)
GPT-5.2              8.9 pts  (Terminus 2 -> Codex CLI)
Claude Opus 4.5      5.9 pts  (OpenHands -> Terminus 2)
Claude Sonnet 4.5    2.7 pts  (Claude Code -> Terminus 2)

Read those numbers carefully:

  • GPT-5 gains 14.4 points from Terminus 2 to OpenAI's own Codex CLI. That's about the gap between GPT-5 and GPT-5.2 on Terminus 2 (35.2 → 54.0 is 18.8 points). Changing the harness moved the score by close to what a new model generation did.
  • For Claude, the plain harness won. Opus 4.5 scored higher in Terminus 2 than in Claude Code. So a vendor's agent isn't automatically the best match for that vendor's model.
  • Sonnet 4.5's spread is within the error bars. With standard errors near ±2.8, a 2.7-point gap could be noise.

The leaderboard has since grown, with more submissions and newer models. A 2026 survey of it found that across 20 models with at least three harness results, the median spread between best and worst harness was 13.6 points, and 14 of the 20 varied by 10 points or more. Gemini 3.1 Pro ranged from 59.4% (Gemini CLI) to 80.2% (TongAgents).

Honest caveat. The leaderboard is observational. Submissions differ in prompts, versions and budgets, so these spreads aren't clean experiments. The Terminal-Bench authors themselves conclude that choosing the model usually matters more than the scaffold. The fair summary: the harness is a second big lever, sometimes as big as the model, and you can't know which until you measure.

What the score doesn't show: spend and infrastructure

The official leaderboard shows COST and TOKENS next to RESOLUTION RATE. Read them. The paper found that most trials used fewer than 25 model calls, but some ran for two hours and used close to 100 million tokens on a single task. Token use varies widely between agents running the same model. The authors also found essentially no correlation between average turns and success. A harness that buys 3 points with ten times the tokens is a different product from one that doesn't.

The machine a harness runs on matters too. Anthropic's engineering team kept the model, the harness and the tasks fixed, and changed only the container's resource limits. Terminal-Bench 2.0 scores moved by 6 points between the tightest and the uncapped setup (p < 0.01). Their advice: be wary of leaderboard gaps under 3 points until the setups are documented and matched.

Gotcha: versions. Terminal-Bench 2.1 fixes 28 of the 89 tasks. A 2.1 score can't be compared with a 2.0 score.

Three questions before you believe "Model A beats Model B"

  1. Which harness ran each score? Was it the same agent for both, or a tuned vendor agent against a neutral one?
  2. What did each run spend? Tokens, turns, cost, time limits and container resources.
  3. Is the gap bigger than the noise? Check the error bars, the benchmark version and whether the infrastructure matched.

Hands-on exercise

  1. Open the official leaderboard at tbench.ai/leaderboard/terminal-bench/2.0 (or the harborframework/terminal-bench-2-leaderboard dataset on Hugging Face).
  2. Pick two models that each have at least two AGENT entries. Add them to the results dict above and run it.
  3. For each model, write one line saying whether its spread is bigger than its error bars.
  4. Find the pair of rows with the largest score gap. Answer the three questions for it, and say whether you'd trust the claim that "the higher-ranked model is better."

Keep your notes. In later levels you'll build your own harness and measure it the same way.

Key takeaways

  • A harness is all the code around the model: loop, tools, prompts, context handling, stop rules and budgets.
  • On Terminal-Bench 2.0, the same model's score can move by 10+ points between harnesses. GPT-5 gained 14.4 points moving from Terminus 2 to Codex CLI.
  • A vendor's own agent isn't always best. Claude Opus 4.5 scored higher in the plain Terminus 2.
  • Leaderboard rows are observational. Spend, infrastructure (worth up to 6 points) and benchmark version all affect the score.
  • Always ask: which harness, what spend, is the gap bigger than the noise?

A 6-question knowledge check follows this lesson in the app, free and without an account.

More like this