---
title: "Coding agent harness: it sets your bill, not the score"
description: "A coding agent harness barely moves the score, but it can change the bill threefold. What an October 2026 study found, and how to compare harnesses fairly."
author: "Usman Masood, Software Developer"
published: 2026-11-19
updated: 2026-11-19
url: https://www.mantaq.co/blogs/coding-agent-harness-cost-not-score
---

# Coding agent harness: it sets your bill, not the score

A coding agent harness barely moves the score, but it can change the bill threefold. What an October 2026 study found, and how to compare harnesses fairly.

You run the same task twice with the same coding agent and get two different results. Then you read a ranking that crowns one harness the winner on a single run. A coding agent harness is the layer around the model: the system prompt, the tools and the context handling that let a chat model work inside a repository. An October 2026 study suggests the harness matters less for your score than the rankings imply, and more for your bill.

## What a harness is and why rankings crown one

The model gets the attention, but it does not work alone. The harness decides what instructions the model sees, which tools it can call and how much of the history it carries forward. Claude Code, OpenCode and mini-SWE-agent are all harnesses, and you can put the same model inside any of them.

That makes comparison tempting. Hold the model fixed, swap the harness, read off a score and name a winner. The trouble is that one run is a single draw, and rankings rarely say how much a score moves when nothing changes at all.

## Run it twice: the noise in the score

A paper by Yangze Liu and Zhongyi Han, [What Does a Harness Buy? Tokens, Mostly](https://arxiv.org/abs/2610.04433), measured exactly that. They ran five models through three production harnesses on SWE-bench Verified, a public set of real software bug-fix tasks, and then reran the same setups to see how much results drift on their own.

On 447 tasks, the heaviest and the lightest harness came out equivalent within five points. On a hard subset of 45 tasks, swapping the harness flipped 13% of the tasks. Rerunning the same harness flipped 13% too. The tasks a harness won in one run were not the tasks it won in the next.

![Swapping the harness flips 13% of hard tasks, and so does rerunning the same harness](https://images.ctfassets.net/he34i99xhodg/SIf5buGqb0J5BvyWRcsbK/40b5697513ac07eda0789c72df7c28dc/harness-swap-vs-rerun.png)

Put that way, a small gap between two harnesses on one run is not news. The authors add that 45 tasks catch a 13 point gap only half the time, and 447 tasks resolve about five points. That is coarser than many of the gains a harness change is sold on.

## Where the money goes: the first call

What the harness did change was the cost. With the same model, the same tasks and one price list, cost per task differed by up to threefold across harnesses.

The paper traces that to the first call. Each harness sends a preamble of system prompt and tool descriptions with every step, and the bill scales with how many steps the agent takes. Growth per step and the size of tool output differed far less. The provider's price for cached input scaled the bill but did not reorder the harnesses.

![The bill is the fixed preamble sent at every step, times the number of steps, and it can differ up to threefold](https://images.ctfassets.net/he34i99xhodg/3ZsMbForI5NTvMy6I4aNi4/6753a3dcd45b02f0eb84d68ba7c3ae7a/preamble-times-steps.png)

In plain terms: a harness with a heavy preamble pays for it on every step, so a long task magnifies the difference. That is the number to ask about before you roll one out to a team.

## The one effect that was real

One result did clear the noise, and it was a loss. OpenCode trailed by up to nine points on the large pool of tasks. On one model, half of that gap came from runs that were cut short by its output cap.

That is a useful reminder that a harness can hurt. A limit that cuts off an answer is a setting, not a verdict on the whole tool, and it is the kind of thing a quick check on your own repo would show.

## How to compare harnesses on your own repo

Treat a score gap as a hint, and measure the rest yourself. Pick a set of real tasks from your own repository, hold the model fixed, and run each harness more than once on each task. If two reruns of the same harness disagree as much as two harnesses do, the gap is noise.

Then record the cost per task and the number of steps, and note anything the harness cuts short. A score cannot show you permissions, sandboxing or how well the tool fits your team's habits, and those can matter more than a point or two.

## Limits of this study

It is one preprint. It used one benchmark, which is not your codebase, and tested three harnesses, so it says little about the many others. Harnesses also change often, so a number from October will drift.

Take the direction, not the decimals. Back at the two runs that disagreed, the lesson is that one run proves little, and that the bill is easier to measure than the score. If you are deciding what an agent may do without a person approving it, our [services page](https://www.mantaq.co/services) shows how we map those decisions, and we can talk it through in a [30-min call](https://www.mantaq.co/#contact).

## Frequently asked questions

### What is a coding agent harness?

It is the system prompt, the set of tools and the context handling that wrap a language model so it can work inside a repository. Claude Code, OpenCode and mini-SWE-agent are examples.

### Does the harness or the model matter more?

In this study, with the model held fixed, the heaviest and lightest harness were equivalent within five points on the large task pool. The model is the safer thing to focus on for the score.

### Why does the same model cost more in one harness?

Because each harness sends its own system prompt and tool descriptions with every step. A heavier preamble, repeated over many steps, costs more.

### How do I compare coding agent harnesses fairly?

Use tasks from your own repository, hold the model fixed and run each harness several times. Compare cost per task as well as the score.

### Is the top of a leaderboard the best coding agent harness?

Not necessarily. A single run can differ from the next by as much as a harness swap does, so a small lead may be noise.
