What's the best coding agent harness? I built a benchmark to find out
HarnessMark tested four coding agent harnesses across six models in 560 DeepSWE trials, finding OpenCode V2 and Pi led rankings while costs varied widely.
By Dillip Chowdary • Dec 03, 2026 • Source: fariszr.com

At a glance
- Product
- HarnessMark
- Harnesses tested
- Claude Code, Codex, OpenCode V2, Pi
- Models tested
- 6 (Haiku 5.5, Opus 5.5, DeepSeek, GLM, Luna, Sol)
- Benchmark scope
- 10 DeepSWE v1.1 tasks, 560 audited trials
- Audit date
- 1 Dec 2026 (PA1 November export 1ddf14d)
- Dataset availability
- Free JSON download (560 trials, no prompts)
In this post
FARISZR published HarnessMark on fariszr.com's benchmark page, a study evaluating how much the choice of coding agent harness affects task completion and API spend. The benchmark ran six models through four harnesses—Claude Code, Codex, OpenCode V2, and Pi—across ten token-heavy DeepSWE v1.1 tasks, producing 560 audited trials with 346 passes and 214 failures.
This article breaks down the harness rankings, observed cost multipliers, run-to-run score variance, task selection, and pricing rules from the HarnessMark release. It is written for engineering teams and developers deciding which coding agent harness to pair with specific frontier and open-weight models.
01Harness rankings and model cost gaps
OpenCode V2 and Pi placed in the top two most often, each finishing first or second on four of the six tested models. Rankings were determined by total tasks passed, with observed API-equivalent cost breaking ties. Pi also delivered the lowest observed cost on three of the four non-Anthropic models.
Claude Code recorded the lowest observed cost on both Anthropic models, Haiku 5.5—where it solved six of ten tasks—and Opus 5.5. On the four non-Anthropic models, however, Claude Code incurred the highest observed cost at 1.36x to 2.85x the cheapest harness and ranked below first on each.
| Harness | Top-two finishes | Cost highlights | Notable benchmark events |
|---|---|---|---|
| Claude Code | Below 1st on 4 non-Anthropic | Cheapest on Haiku 5.5, Opus 5.5; 1.36x–2.85x on others | Scored 6/10 on Haiku 5.5 |
| OpenCode V2 | 4 of 6 models | Not lowest | 10 startup attempts replaced; 10, 8, 6 DeepSeek run |
| Pi | 4 of 6 models | Cheapest on 3 of 4 non-Anthropic | Adapter built for custom Pier fork |
| Codex | Not in top two summary | Not lowest | Counted multi-tool steps inside JS code cells |
02Run variance and concurrency effects
Scores varied noticeably across repeated runs even when the model, harness, and task list stayed fixed. DeepSeek paired with OpenCode V2 solved 10, 8, and 6 of the ten tasks across three separate runs. Scheduling and job concurrency limits differed between those runs, with the concurrency limit shifting from four to six after run 1.
DeepSeek, GLM, Luna, and Sol were each executed three times per harness, while Haiku and Opus ran once. Sol also used a separate gateway budget on the same OpenAI Responses route during its two overlapping later batches. Ten OpenCode V2 attempts that failed at startup before issuing any model request—nine on Sol and one on GLM—were replaced.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03DeepSWE task selection and runner setup
The benchmark used ten DeepSWE v1.1 tasks, picking two each from Go, JavaScript, Python, Rust, and TypeScript. PA1 ranked tasks by mini-swe-agent solve rate within each language, then selected the task with the highest median input plus output tokens in both the hard and medium strata. A reference solve rate came from 159 DeepSWE mini-swe-agent rollouts across four model configurations at max effort.
All trials executed on a custom Pier fork equipped with OpenCode V2 and Pi adapters, sub-agent token tracking, and sub-agents pinned to the benchmark model. Fireworks served DeepSeek V4.1 Flash and GLM-5.3-Flash, while GPT models used the proxy's OpenAI Responses route with a 272K context window. Claude Code, OpenCode V2, and Pi routed Haiku through LiteLLM and Opus through Anthropic's API, whereas Codex used a bridge for both Claude models.
04Pricing methodology and scoring exceptions
Cost estimates price observed usage request by request at model-developer rates, including sub-agent, compaction, cache-warming, and failed requests while excluding replaced or superseded attempts. Every DeepSeek request used its developer's off-peak rate, GLM used Z.ai's rate, and Haiku applied a higher rate to requests exceeding 100K prompt tokens. Cache writes used 5-minute retention for Anthropic and 30 minutes for OpenAI, though OpenCode V2's Claude records gave aggregate cache writes without a retention split.
Two verifier issues affected scoring across the 560 trials. Seven Koota verifier hangs reproduced offline and were scored zero. In addition, the GLM-5.3-Flash OpenCode V2 FastAPI run 3 lost its verifier result after a sandbox cleanup error, so PA1 replayed the original verifier on the reconstructed patch and recorded a pass with 43/43 target tests and 3,134/3,134 regression tests.
Note: In 9 trials, 22 provider streams stopped mid-stream before reporting final usage, so those costs cover observed usage only, while 10 other records lacked observed output or final usage and one failed request's usage was recovered from gateway spend.
05December audit and open dataset
A 1 Dec 2026 audit reconciled all 560 trials against the PA1 November export at commit 1ddf14d, confirming 346 passes and 214 failures. Reported scores and ten-task spend figures represent means across batches, while the page's display JSON repeats run 1 for the three-run models.
Readers can download the 560-trial JSON dataset directly without JavaScript. Each trial record appears once with outcome, both verifier counts, timing, token counts, request kinds, cost, usage coverage, recovery and replacement flags, and source references alongside a manifest linking every aggregate to its trials, with prompts, transcripts, and credentials omitted.
Frequently asked questions
Which coding agent harnesses performed best overall in HarnessMark?
OpenCode V2 and Pi placed first or second on four of the six tested models each. Rankings were based on tasks passed, with observed cost breaking ties.
When was Claude Code the cheapest harness?
Claude Code had the lowest observed cost on both Anthropic models, Haiku 5.5 and Opus 5.5. On the four non-Anthropic models, it had the highest observed cost at 1.36x to 2.85x the cheapest option.
Why did DeepSeek scores change across runs on OpenCode V2?
DeepSeek solved 10, 8, and 6 tasks across three runs as scheduling differed and the job concurrency limit changed from four to six after run 1.
What is included in the downloadable HarnessMark dataset?
The JSON file contains all 560 trials with outcomes, verifier counts, timing, token counts, request kinds, cost, usage coverage, and replacement flags, without prompts, transcripts, or credentials.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement