All essays

Pick the harness for the bill, not the score

Run the same open-weight models through three coding harnesses and the pass rate barely moves, but the tokens spent per solved task can double. Here is how we choose a harness, cap a run, and make an agent test after its last edit.

We build production GenAI for operations, knowledge, and data, and a growing share of that work runs through coding agents. So we get asked one question more than almost any other: which harness should we use? Claude Code, Codex, Cursor, or one of the open harnesses that wrap whatever model you point them at.

The usual way to answer is to look at a leaderboard and pick the one with the highest pass rate. A recent study suggests that for at least some models this is the wrong number to stare at. The pass rate hardly moves when you swap the harness. What moves is the bill.

The experiment

Reflection AI ran a study inside SWE-Bench Pro V2, a benchmark of real software engineering tasks. They took three open-weight models (GLM-5.3, Kimi K3, and Inkling) and ran each one through three harnesses on 642 tasks:

  • mini-swe-agent, which gives the model a single bash tool with a 30 second cap on each command.
  • Pi and OpenCode, which give the model structured tools for reading, searching, and editing files.

Every run had the same locked budget and no network access beyond the model endpoint. That matters. When people compare harnesses in the wild, they usually change three things at once (the model, the budget, the tools) and then credit whichever one they were excited about. Here only the harness changed.

What decides whether a task gets solved

The study broke down the variance in solved versus failed across three sources. The task itself explained 31.7%. The model explained 2.65%. The scaffold, meaning the harness, explained 0.29%.

Share of variance in solved or failed, by sourceHorizontal bar chart from the Reflection AI study in SWE-Bench Pro V2. The task explains 31.7 percent of variance in whether a run is solved. The model explains 2.65 percent. The harness, or scaffold, explains 0.29 percent. Scale runs from 0 to 35 percent.FIG. 01 · WHAT DECIDES A SOLVESHARE OF VARIANCE0%5%10%15%20%25%30%Task31.7%Model2.65%Harness0.29%Three open-weight models, three harnesses, 642 tasks, same locked budget.
Fig. 01. Whether a run gets solved depends mostly on the task, a little on the model, and almost not at all on the harness. That last bar is real, not a rendering glitch.

Read that slowly. In this setup, the harness explained roughly a tenth as much as the model, and about a hundredth as much as the task. If you spent a week arguing about bash versus structured edit tools for these models, you were arguing about the smallest bar on the chart.

There is one honest exception. Inkling showed a 7.5 point spread across harnesses, with Pi trailing the other two. So "the harness never matters" is not the lesson. The lesson is that it mattered much less than most teams assume for two of these three models, and that you only find the third case by measuring it.

Where the harness does show up

If the harness barely changes the pass rate, where does it leave a mark? On tokens.

Kimi K3 spent 1.3 million tokens per solved task under Pi and 2.6 million under mini-swe-agent. Same model, same tasks, roughly the same success, twice the spend. GLM-5.3, by contrast, sat between 3.5 and 3.7 million tokens per solved task under every harness. Its cost was set by the model, not by the tools around it.

Tokens per solved task, same model, different harnessBar chart of millions of tokens spent per solved task. Kimi K3 under Pi spends 1.3 million; Kimi K3 under mini-swe-agent spends 2.6 million, twice as much. GLM-5.3 spends between 3.5 and 3.7 million under every harness, shown as a band. Scale runs from 0 to 4 million.FIG. 02 · THE BILLTOKENS PER SOLVED TASK01M2M3M4M1.3MKimi K3Pi2.6MKimi K3mini-swe-agent2x3.5M to 3.7MGLM-5.3every harnesscost set bythe model
Fig. 02. For Kimi K3, swapping the harness doubled the tokens per solved task. For GLM-5.3, the harness made almost no difference to cost. You cannot know which kind of model you have until you run it.

This is the number that ends up on an invoice. A team that picks a harness from a pass rate chart can land on the expensive option without ever seeing it, because the chart they used to decide was flat.

Failing runs are the ones that keep going

The most useful finding for anyone running agents in production is about what failure looks like. In the same model and harness pair, the median failed run wrote 1.6 to 2.0 times the completion tokens of the median solved run.

A failing agent is rarely one that gave up early. It is one that kept going: rereading files, retrying the same edit, running one more search. From the outside it looks busy, and busy reads as progress. The token count says otherwise. By the time a run has burned well past what a typical solved run costs, it is more likely to be failing than close to finishing.

That turns into a rule you can enforce. Measure tokens per solved run on your own tasks, then set a budget stop at a multiple of that number. When a run crosses it, stop, keep the transcript, and hand it to a person or a fresh run with a narrower prompt. Set the multiple generously so slow but healthy runs still have room. What you save is the long tail of expensive runs that were never going to land.

Test after the last edit

One more result held for all three models: running the tests after the final edit roughly doubled the odds of solving the task.

That sounds obvious. It is not what agents do by default. They often run tests early, make two more edits to clean something up, and then declare victory on the strength of a test run that no longer describes the code. The fix is cheap. Put it in the instructions the agent reads on every run (an AGENTS.md file, a skill, a system prompt) as a required step: after the last change, run the tests again, and do not report done unless they pass. We treat that as part of the harness contract, not a nice-to-have.

How we use this at Sunrise

None of this means harness choice is free. It means the deciding number is different from the one most people look at. When we set up an agent for a client workflow, we now track four things on a small, fixed set of tasks that look like the real work:

  1. Pass rate, across repeated runs, so one lucky run does not decide anything.
  2. Tokens per solved task, per model and harness pair. This is usually where the candidates separate.
  3. A budget stop, set from the solved-run numbers, so runaway failures end on their own.
  4. A test after the final edit, checked in the transcript, not taken on trust.

Then we change one thing at a time. If two harnesses tie on pass rate and one spends half the tokens, that is the decision, and it compounds every day the agent runs.

What this does not say

It is worth being precise about the limits. The study covered three open-weight models on one benchmark. It does not show that harness choice is irrelevant for every model, and it does not compare closed harnesses like Claude Code against Codex. Inkling already broke the pattern once. The point is not to stop caring about harnesses. It is to stop judging them by a number that, at least here, barely moved, and to start judging them by the one that did.

Pick the harness for the bill. Cap the runs that keep going. Make the agent test after its last edit. Those three habits do more for a production agent than another week spent reading leaderboards.

Source: Reflection AI study in SWE-Bench Pro V2 (paper).