Best Agent Harness for Each Model: Kimi K3, GLM-5.3, GPT-6 Astra, Claude Opus 5 and DeepSeek V4 Pro, From 6,204 Runs


The usual advice is to run a model in the harness its lab built: Claude Code for Claude, Codex for GPT, DeepSeek’s harness for DeepSeek. I went through the 6,204 runs behind a recent paper to check. For Claude the advice holds, barely. For DeepSeek V4 Pro, DeepSeek’s own harness came last.

The paper is Finding the Right Fit: Model-Harness Interactions across Agent Tasks (Li et al., Nanyang Technological University, October 2026). It ran five models through four open harnesses on three command-line benchmarks, plus the two native pairings, Claude Code with Claude and Codex with GPT. That’s 66 configurations. The authors published every scored run on Hugging Face. The paper reports tables. I wanted a direct answer to “which harness should I use with model X,” and I wanted to know whether the gaps behind that answer are bigger than the noise.

The answer, per model

Scores are the mean reward × 100 over all 282 tasks: 120 from TUA-Bench, 99 from ALE-CLI and 63 from Terminal-Bench 4. TUA and ALE give partial credit. Terminal-Bench is pass/fail. “Cost per solve” is total API spend divided by total reward, at the OpenRouter prices the paper uses.

Model Best harness Score Cost per solve Statistically tied with Clearly worse
Kimi K3 openJiuwen 53.1 $6.85 nothing PI 44.4, DSH 43.4, OpenHands 37.6
GPT-6 Astra PI 61.8 $3.66 openJiuwen 60.2, Codex 59.3 DSH 56.3, OpenHands 55.9
Claude Opus 5 Claude Code 59.4 $8.72 OpenHands 59.2 ($8.39) openJiuwen 55.0, PI 49.1, DSH 48.1
GLM-5.3 OpenHands 54.1 $4.73 openJiuwen 53.0 DSH 49.7, PI 46.6
DeepSeek V4 Pro openJiuwen 46.3 $1.41 OpenHands 42.7 ($0.95) DSH 38.6

I sorted harnesses into “tied” and “worse” with a paired bootstrap. Every task was run under every harness, so I resampled the 282 tasks 10,000 times and recomputed the score difference on the same tasks each time. If the 95% interval for a difference crosses zero, I call it a tie.

Kimi K3 is the only model with a winner that holds up. openJiuwen beats PI, the next-best harness, by 8.7 points (95% CI +4.0 to +13.7) and beats OpenHands by 15.5. For the other four models, two or three harnesses share the top spot, so the table is more useful for telling you which harnesses to skip.

Two of those ties are very close. Claude Code leads OpenHands on Claude Opus 5 by 0.2 points, with an interval from −4.0 to +4.4. PI leads Codex on GPT-6 Astra by 2.5 points (−1.3 to +6.5) and costs $2.26 per task against Codex’s $4.73. Neither vendor harness gives its own model a measurable edge over the best open alternative.

DeepSeek V4 Pro scored lowest in DSH, the DeepSeek Harness, with one caveat. DSH accounts for 90 of the 124 runs in the dataset marked unresolved_zero, meaning the run ended without a valid outcome and was scored zero. That’s 6.4% of DSH runs, against 1% or less for every other harness. For DeepSeek it’s 27 of 282 runs, enough to explain part of the 7.7-point gap. The results table doesn’t say whether those were harness bugs or infrastructure failures.

Kimi K3 and the edit call with no content

The paper explains why Kimi does so much better in openJiuwen, and the reason comes down to how each harness reports a failure back to the model.

Kimi K3 often sends malformed tool calls. Under OpenHands, 48 of the 55 runs ended by the stuck detector were, in the paper’s words, “Kimi re-issuing an edit call without its required content argument.” The stuck detector “ends a run after repeated identical failing actions.” Kimi repeats the broken call, and OpenHands ends the run.

PI fails Kimi differently. Its shell has no default timeout, so in one TUA task a hung GIMP process left the agent waiting with “no signal at all.” openJiuwen’s shell gives up after 300 seconds and returns the hang as a timeout. On the same task, Kimi read the timeout and recovered.

The authors coded 192 repair events, and the model started 180 of them itself. Kimi can fix most of its own mistakes once it sees an error message. OpenHands and PI often never show it one.

Terminal-Bench 4 is where the harness matters

Dot plot of Terminal-Bench 4 scores by harness for five models. GPT-6 Astra ranges from 49.2 in OpenHands to 60.3 in PI. Claude Opus 5 ranges from 30.2 in PI to 57.1 in OpenHands. GLM-5.3 ranges from 31.7 in PI to 42.9 in DSH. Kimi K3 ranges from 11.1 in OpenHands and PI to 28.6 in openJiuwen. DeepSeek V4 Pro ranges from 3.2 in OpenHands to 9.5 in DSH.

Averaged over all three benchmarks, the gaps between harnesses are mostly 5 to 15 points. On Terminal-Bench 4, which has long, hard shell tasks with an 8-hour limit, they get much larger:

Model DSH OpenHands PI openJiuwen Native
Claude Opus 5 34.9 57.1 30.2 41.3 49.2 (Claude Code)
GPT-6 Astra 52.4 49.2 60.3 54.0 55.6 (Codex)
GLM-5.3 42.9 41.3 31.7 41.3
Kimi K3 17.5 11.1 11.1 28.6
DeepSeek V4 Pro 9.5 3.2 6.3 7.9

Claude Opus 5 scores 57.1 in OpenHands and 30.2 in PI. That’s 27 points for the same model on the same 63 tasks (95% CI +14.3 to +39.7). The worse harness also costs more: $67.14 per solved task in PI against $22.65 in OpenHands.

The model ranking changes with the harness. In OpenHands, Claude beats GPT-6 Astra by 7.9 points. In PI, GPT-6 Astra beats Claude by 30.2. So when a leaderboard runs every model in one harness, part of what it ranks is how well each model suits that harness.

DeepSeek V4 Pro stays under 10 on Terminal-Bench 4 in every harness. Switching harness won’t rescue it there.

A 98% cache hit rate that still costs the most

openJiuwen has the best prompt caching in the dataset: 97.9% of its input tokens were cache reads, against 65 to 79% for the other harnesses. It still has the highest cost per task for four of the five models. Claude Opus 5 costs $6.69 a task in openJiuwen and $4.96 in OpenHands.

The reason is volume. openJiuwen runs longer conversations, and Kimi K3 averaged 116 model calls per Terminal-Bench task there, against 90 in OpenHands. A cheaper rate on each token doesn’t cover that many extra calls. I made the same argument in cost per task, not per token.

One cost figure I couldn’t explain: Codex with GPT-6 Astra on TUA-Bench costs $2.94 in total across 120 tasks, while PI with the same model costs $76.92 on the same tasks. A 26x difference on similar scores looks like a recording problem to me, so I trust Codex’s cost numbers less than the others.

FrontierHarness Eval finds the same pattern

FrontierHarness Eval v1.1 came out two days ago with a different set of harnesses: 22 harness setups, five open models, 62 terminal tasks and four attempts each. It agrees with the paper. Codex CLI is the cheapest harness per pass with GLM-5.3 and falls to 16th with Kimi-K3. The median harness moves 11 places out of 22 between models. The model alone explains 92.8% of the differences in cost.

The earlier v1.0 run fixed the model to Kimi K3 and used one attempt per task. AI Bacon worked out that on 30 tasks, a 60% pass rate has a standard error of about 8.9 points, more than most of the differences in that table. The paper has the same limit: one counted run per task, with run-to-run variance unmeasured. My bootstrap only resamples tasks. It can’t see a model passing a task on one run and failing it on the next, so the real uncertainty is wider than my intervals.

That’s why I’d read the per-model table mainly for what to avoid. The big gaps run from about 8 to 27 points and survive resampling: PI with Claude on hard tasks, OpenHands with Kimi, DSH with DeepSeek. The 1 to 3 point leads at the top don’t survive it.

The data has two more limits. Claude Code and Codex were only tested with their own lab’s models, so nothing here tells you how Claude Code would handle Kimi K3. And every task is a terminal benchmark task. Your own repo will behave like some of them, and the winning harness on it may still be different.

Kimi K3 in openJiuwen, the best pairing in the whole table for that model, still failed 45 of the 63 Terminal-Bench 4 tasks. In 35 of those 45 failed runs, its final message said that “every specified requirement has been verified.”

Sources

For what a harness is in the first place, see my post on the AWS Strands harness. The Gemini 4 Argon ARC-AGI-3 post covers one model scoring 97.5% in one harness and 49.8% in another.