Claude or Codex? When they tie, take the one that burns fewer tokens

Public coding benchmarks can't tell the top models apart, and the same model can cost several times more in one tool than in another. When two models deliver the same results on your tickets, take the one that burns fewer tokens. When they don't, as on frontend, pay for the better one.

CostCobble team5 min read
A line engraving of ridges in sand running toward the horizon.
Photo by Julia Taubitz on Unsplash

Our answer to "what's the best AI model for coding" is a bit unsatisfying. If two top models do equally good work on your tickets, take the one that gets there on fewer tokens, and stop agonizing. On a subscription, fewer tokens means you hit the limits later. On usage billing, the invoice is the tokens times each model's rate, so a lower price per token alone can point you the wrong way.

The catch is the "if". You find out whether two models tie on your own work, because the leaderboards can't tell the top models apart.

The scoreboards had a rough 2026. OpenAI stopped reporting SWE-bench Verified in February, after going through the tasks its own model kept failing and finding that more than half had broken tests or descriptions. It also found that frontier models, its own included, had seen the answers in training. In one case reported from that audit, Gemini 3 Flash was given nothing but a task ID and wrote out the full fix with the correct line numbers.1

OpenAI pointed people to SWE-Bench Pro instead. In July it dropped that too, after an audit estimated about 30% of its tasks were broken.

In September Epoch AI reviewed fifteen benchmarks and rated nine of them flawed, SWE-bench Verified, SWE-Bench Pro and Terminal-Bench among them.2 Our favorite defect: in one Terminal-Bench task, you can pass all 60 tests by writing a single success byte to the grader before any test runs.

Even people who follow the models closely switch over this scoreboard. In April, Theo Browne said on his channel that a three- or four-point lead on SWE-Bench Pro was "enough for people like me to basically disregard Opus."3 Three months later OpenAI stopped recommending the benchmark.

You don't run the model on the leaderboard

What your team runs is a model inside a tool, at some effort setting, on your code. Change the tool and the ranking can flip.

In October a group of researchers put five models inside four coding tools.4 On the same Terminal-Bench tasks, Claude Opus 5 scored 57% inside OpenHands and 30% inside a tool called PI. GPT-6 Astra went the other way, and the lead between the two swung by 38 points. GPT didn't even get its best score inside Codex, OpenAI's own tool.

Same models, same tasks, a different tool

Terminal-Bench 4, share of 63 tasks solved

Same models, same tasks, a different toolClaude Opus 5: OpenHands 57%, PI 30%; GPT-6 Astra: OpenHands 49%, PI 60%OpenHandsPI57%30%Claude Opus 549%60%GPT-6 AstraSame models, same tasks, a different toolClaude Opus 5: OpenHands 57%, PI 30%; GPT-6 Astra: OpenHands 49%, PI 60%OpenHandsPI57%30%Claude Opus 549%60%GPT-6 Astra
Change the tool and the lead flips. One counted run per setup, so treat it as a warning about leaderboards, and nothing more.4

That was one run per setup, and other studies this year found the model mattering more than the tool. Even so, a three-point gap on a leaderboard can't tell you which model wins inside the tool you actually use.

Merged isn't correct

The best real-world test we saw this year came from Veli-Matti Vanamo at Insight. He had one feature built and merged more than twenty times, with different models in different tools.5 The cheapest merge cost €2.32 ($2.59) and the most expensive €31.13 ($34.82), and the same model could cost far more in one tool than in another. And Opus 4.8, the expensive one on the price list, merged for less than Sonnet 4.6 did in any tool he tried.

Then, on a second feature, he checked the merged code against 38 tests the agents had never seen. Opus 4.8 passed 30, GPT-5.5 passed 18 and Sonnet 4.6 passed 16, and his automated review loop had approved all three on the first pass. In his words, "'Merged' is not 'correct.'"

So the number we care about is cost per accepted change: what you spent, in tokens and in people's time, for each change your own engineers approved and that stayed merged. No leaderboard can publish it, because no leaderboard knows what your team would accept.

Frontend isn't a tie

When the results really differ, quality comes first. Frontend is the clearest case we know. On our own UI work, Anthropic's models have been ahead for a long time, and today Opus 5.5 and Fable 5.1 beat GPT-6 Astra. It isn't close: it's the kind of gap a team sees within its first few dozen tickets. On those tickets there's no tie to break, so pay for the better work.

It's also why one average across all your work can mislead you. A model can win your backend tickets and lose your UI ones, and the average hides both.

Try it yourself, but know what a trial can see

The best eval is still the oldest one. Give the tools your real tickets and look at what comes back. We'd trust a few weeks of that over any table.

Just be honest about what a few weeks can show. On 30 tickets, a 60% success rate really means somewhere between about 42% and 78%. Telling apart two models that are ten points apart takes a couple of hundred tickets each,6 and by then there's a new model and a new price.

A small trial does catch the big stuff, like a setup that costs twice as much per ticket, or pull requests your reviewers keep sending back. Those show up within a few dozen tickets. A three-point edge won't.

On DeepSWE in late September, three models scored the same 74%, and one of them cost five times as much per task as another.7 The board is one Epoch flagged, but the bills are real. When a three-point edge is invisible and a fivefold gap in cost isn't, let the cost decide.

Same score, five times the bill

DeepSWE, cost per task for three models that each solved 74%

  1. Claude Opus 5 (max)€10.58 ($11.84)
  2. GPT-6 Astra (xhigh)€3.96 ($4.43)
  3. Gemini 3.8 Flash (high)€2.11 ($2.36)
Same agent scaffold, scores within each other's error bars, costs at API prices. Epoch rated the benchmark flawed, but the bills are what the runs cost.7

Your own record is the leaderboard

We hit a version of this ourselves. Before Cobble, our engineers each had their own tools and prompts, and how good a change came out depended on who made it. You can't compare setups when each person runs a different one. Cobble began as the fix: one process for every ticket, with the model and tool set in configuration, and a record of what each run cost, worked out from its tokens at list prices, and whether the independent check passed it. Your Git host knows what got merged. Join the two and you have cost per accepted change.

You don't need us to start. For the next month, put a row in a spreadsheet for every AI-made pull request: the kind of work (frontend, backend, data), the model, the tool, the effort setting, the tokens it used, whether someone on your team merged it, and whether it stayed merged. On usage billing, those tokens at your rates are close to your invoice: Copilot moved to token billing on 1 June, and Claude Enterprise bills usage at API rates on top of the seat.8 On a flat subscription, they tell you how soon you'll hit the limits.

So, Claude or Codex? For each kind of work, whichever one does work your engineers keep, for less. Use the leaderboards to pick what's worth trying, and let the spreadsheet decide.

  1. OpenAI, "Why we no longer evaluate SWE-bench Verified", 23 February 2026, as reported by Blockchain.news, 3 March 2026 (the original could not be fetched). OpenAI audited the 138 of 500 tasks its o3 model failed; 59.4% had flawed tests or descriptions. The Gemini 3 Flash example is from the same coverage. On SWE-Bench Pro: OfficeChai, "OpenAI retracts recommendation to use SWE-Bench Pro", 9 July 2026; Epoch AI's SWE-Bench Pro review, 1 September 2026, dates OpenAI's audit to 8 July and counts 27.4% of tasks confirmed broken and 34.1% flagged. Back to text
  2. Epoch AI benchmark reviews, 1–7 September 2026: SWE-bench Verified, SWE-Bench Pro, Terminal-Bench 4.0.0 (4 September), DeepSWE v1.1 (7 September). Epoch's own caveat: flawed doesn't mean useless. Back to text
  3. Theo Browne, "Claude Mythos and the end of software", YouTube, 8 April 2026, quoted from the video's transcript. Back to text
  4. Li et al., "Finding the Right Fit: Model-Harness Interactions across Agent Tasks", arXiv 2610.00917, 1 October 2026. Terminal-Bench 4, 63 tasks: Claude Opus 5 57.14% in OpenHands and 30.16% in PI; GPT-6 Astra 49.21% and 60.32%. One counted run per task; the authors note settings and budgets weren't matched across tools. Two other 2026 studies found smaller tool effects: Huang and Sun, "Agents' Last Exam: harness matters", 11 June 2026, via agentpatterns.ai (the model moved scores by 18 points, the tool by 5 or 6); Vats and Golev, "The Scaffold Effect in Coding Agents", arXiv 2607.22585, 8 June 2026 (the tool changed pass rates by 0 to 8 points, and tokens per solved task by up to 40 times). Back to text
  5. Veli-Matti Vanamo, "Token Price Is the Wrong Number: What a Merged Feature Actually Costs Across a Dozen Coding Agents", Insight Tech APAC blog, 6 July 2026, with a mid-July follow-up. Sonnet 4.6 cost €10.50 ($11.74) in GitHub Copilot and €26.26 ($29.38) in OpenCode; Opus 4.8 merged in 26 minutes for €8.92 ($9.98). Mostly single runs, and the author notes high run-to-run variance. Euros at the ECB rate of 8 October 2026 (€1 = $1.1186). Back to text
  6. Our arithmetic, from standard formulas: a 95% interval for 18 successes in 30 is about ±17.5 points. Detecting a ten-point difference at 80% power takes about 350 tickets per model on separate tickets, or 115 to 235 if both models run the same tickets. Back to text
  7. DeepSWE v1.1 leaderboard, updated 22 September 2026: gemini-3.8-flash (high) €2.11 ($2.36) a task, gpt-6-astra (xhigh) €3.96 ($4.43) and claude-opus-5 (max) €10.58 ($11.84), at API prices, all at 74% on mini-swe-agent, with intervals of ±1 to ±4 points. Euros at the ECB rate of 8 October 2026. Back to text
  8. Thomas Claburn, The Register, 16 April 2026, on Claude Enterprise billing; GitHub, "GitHub Copilot is moving to usage-based billing", 27 April 2026. Back to text

Read next

  1. Run the agent harness as it ships

    On a Claude subscription, the agent harness you run is Claude Code, and we think that's the right one to be on. A team gets more from setting down how work reaches the agent and how the result gets checked.

    Delivery2 min read
  2. Most of your coding agent prompt was written for last year's models

    We think most of what engineers put into coding agent prompts is padding left over from last year's models. The part worth writing is a plain description of done, and the person who can write it is usually the one who asked for the work.

    Shaping tickets3 min read
  3. If merging is your AI bottleneck, you're doing well

    Anthropic's merges grew from about 2,500 a day to over 30,000, and git couldn't keep up. We think where AI work piles up shows how far a team has got.

    Delivery3 min read