Research

Research

TokenSpend auto routing on Terminal-Bench 4.1

Published

We replayed the published Terminal-Bench 4.1 runs through TokenSpend's auto routing. It was 69% cheaper than running Fable 5.2 on every task, with about the same quality: it solved 65.9 of every 100 trials, against Fable's 64.5. It also stayed within 5 points of Opus 5.5 at about the same cost.

69% cheaper

than always running Fable 5.2

$14.43 a trial against $46.30, on average

65.9 vs 64.5

trials solved per 100: auto routing vs Fable 5.2

About the same quality; the gap is within the noise

Within 5 pts

of Opus 5.5 on quality

Pre-registered test, passed (p 0.003)

Auto routing against running Fable 5.2 on every task

About the same quality, under a third of the cost

Cost per trial

Fable 5.2$46.30
Auto routing$14.43

69% cheaper

Trials solved, per 100

Fable 5.264.5
Auto routing65.9

About the same

+1.4, within the noise

Opus 5.5 on every task did the same ($14.25 a trial, 65.8 solved per 100), so the saving comes from not running Fable 5.2 on everything. All five policies are in the table below.

Results

62 Terminal-Bench 4.1 tasks, up to 5 scored trials each, at effort max. A trial is one attempt by the coding agent (see How we ran it) at one task, on its own; it counts as solved when the benchmark's hidden tests pass. Each trial is priced call by call from its own session logs at Anthropic's list prices.

PolicyTrials solved, per 100Cost per trialCost per solved trialCheaper than always-FableSolved per 100 trials, vs always-Fable
Fable 5.2 on every task64.5$46.30$71.77——
TokenSpend auto routing65.9$14.43$21.8969%+1.4
Opus 5.5 on every task65.8$14.25$21.6869%+1.3
Sonnet 5.5 on every task61.6$15.75$25.5666%−2.9
Haiku 5.5 on every task40.0$2.83$7.0894%−24.5

Average cost per trial

Fable 5.2 on every task: $46.30 a trial (baseline)Fable 5.2$46.30 · baselineSonnet 5.5 on every task: $15.75 a trial (66% cheaper)Sonnet 5.5$15.75 · 66% cheaperTokenSpend auto routing: $14.43 a trial (69% cheaper)Auto routing$14.43 · 69% cheaperOpus 5.5 on every task: $14.25 a trial (69% cheaper)Opus 5.5$14.25 · 69% cheaperHaiku 5.5 on every task: $2.83 a trial (94% cheaper)Haiku 5.5$2.83 · 94% cheaper

Scroll sideways to see the whole chart.

Each bar is the average cost of one trial (one attempt at one task), priced call by call from its session logs. The percentage is the saving against running Fable 5.2 on every task.
  • 69% cheaper than always-Fable, with about the same quality. Every one of 10,000 bootstrap resamples came out cheaper than Fable 5.2; the saving's 95% interval is 62% to 74% cheaper. The quality interval against Fable is wider (−5.5 to +8.6 points), so a loss of up to about 5 points is not ruled out.
  • Within 5 points of Opus 5.5, the test we registered in advance. Auto routing solved 0.2 points more than Opus 5.5 (95% interval −3.2 to +3.4). That rules out a loss of 5 points or more (p 0.003); it does not prove the two are equal. Its cost was 101% of Opus 5.5's (93% to 111%).
  • From the first request alone, auto routing sent 45 tasks to Opus 5.5 and 17 to Sonnet 5.5. Opus 5.5 on every task was also 69% cheaper than always-Fable, so on this benchmark the saving comes from not running Fable 5.2, not from switching task by task.
  • Routing as of 2026-11-21 gives the same picture. It now starts reasoning tasks on Sonnet 5.5. Re-scored on the same trials: 65.3% solved at $14.38 a trial, still 69% cheaper than always-Fable.

Where the saving comes from

Where auto routing sent the 62 tasks

Opus 5.5: 45 of 62 tasksOpus 5.545 tasks (73%)Sonnet 5.5: 17 of 62 tasksSonnet 5.517 tasks (27%)

Scroll sideways to see the whole chart.

From the first request alone. No task went to Haiku 5.5, and Fable 5.2 was not in the pool.

On this benchmark Fable 5.2 cost 3.2 times as much per trial as Opus 5.5 and solved no more tasks (64.5% against 65.8%, well inside the noise). So here the default model decided most of the bill. TokenSpend shows Claude Code's tokens and estimated cost by model, per person, so you can check what your own default costs. See Coding agents and Router.

Sonnet 5.5 is half Opus 5.5's price but cost more per trial here: at effort max it made about 1.7 times the calls and read 2.3 times the cached tokens on the same task. A cheaper rate does not always mean a cheaper task.

Where the headroom is

Fable 5.2 and Opus 5.5 solved about the same share overall, but not the same tasks: Fable 5.2 did better on 15 of the 62 and Opus 5.5 on another 15. A router that knew in advance which model wins each task would beat both. Everything in this section was worked out after the results were seen, unlike the registered test above.

  • An estimated ceiling of about 4 points over always-Opus, for the choice between Opus 5.5 and Fable 5.2. We chose one of the two for each task from half of its trials and scored that choice on the other half. It solved 3.7 points more than Opus 5.5 on every task; across 500 ways of splitting the trials it ranged from 2.0 to 5.2 (a spread, not a confidence interval). Choosing and scoring on the same trials gives 8.2 points, which overstates it.
  • It costs more. It means running Fable 5.2 on some tasks: the same-trial version sent 15 tasks to Fable at about twice the cost of always-Opus.
  • What we tried so far has not captured it. Choosing each task's model from the results of the most similar other tasks gave +1.9 points over always-Opus (95% interval −1.3 to +5.8), at 2.2 times its cost. Its +2.4-point edge over a random pick sending the same share of tasks to each model was matched or beaten in about 1 in 10 shuffles of the task outcomes. Three simple signals inside the session (the agent's last test run, a finish without errors, the agent saying it succeeded) did not tell solved runs from failed ones. Learning this from live sessions will likely need an outcome from outside the session, such as whether the change was merged; we have not tested that yet.

A ceiling, not a result

The ceiling figures need each task's own results before the task runs, which a router never has for new work. They show the room left, not what auto routing delivers: as shipped, it was 0.2 points above always-Opus.

How we ran it

How the replay works

  1. Published runs

    Harbor Hub's Claude Code trials of Terminal-Bench 4.1: four models, 62 tasks, up to 5 trials each.

  2. First request

    We take the first request Claude Code sent on each task.

  3. Router picks

    Auto routing chooses Opus, Sonnet or Haiku 5.5. The picks were fixed before the per-task outcomes were downloaded.

  4. Score the pick

    Each task gets the chosen model's recorded trials: whether they passed the hidden tests, and what they cost.

Every policy is scored on the same recorded trials, so only the model choice changes. No model was called for this test.
  • Public data, no model calls. The trials are the published Claude Code runs of Terminal-Bench 4.1 on Harbor Hub: Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2, up to 5 trials per task. Every policy is scored on the same recorded trials; the rows themselves differ in Claude Code version and in how they were graded (see Limits).
  • The routing decision. We captured the first request Claude Code sends on each task and ran it through auto routing's instant mode at the balanced goal, as shipped on 2026-11-19, choosing among Opus, Sonnet and Haiku 5.5, for a workspace with no history of its own, no hold and the LLM judge off. The picks were fixed before the per-task outcomes were downloaded.
  • Pre-registered. The policy, the comparison with Opus 5.5 and the 5-point margin were frozen before the per-task data was downloaded (we had seen about 15 Sonnet 5.5 trial outcomes the day before, and say so in the freeze). The comparison with Fable 5.2 was added afterwards.
  • Statistics. Paired bootstrap over tasks, 10,000 resamples, one-sided non-inferiority with Holm's correction.
  • Checked three ways. An independent recompute from the raw files matched every solved rate and cost to rounding; an adversarial code review checked the test and every price; a third review tried to disprove each claim in the write-up.
  • 62 of 66 tasks. Three need a GPU, and on one no Haiku trial has a result. Counting missing results as failures does not change the outcome.

Limits

A replay, not a live run

Live, the router can also move a conversation to Opus 5.5 part-way through when it struggles. The replay scores only the first pick. Bounding what those moves could do puts auto routing between 10.7 points below and 4.7 points above Opus 5.5.

  • The comparison with Fable 5.2 was added after the registered test, and against Fable it does not pass once corrected for multiple tests (p 0.036 against a level of 0.017).
  • Routing's choice in this replay was Opus, Sonnet or Haiku 5.5. A live workspace's ladder can include other models, Fable among them.
  • One benchmark and one agent: Terminal-Bench 4.1 with Claude Code, at effort max only.
  • The published rows are not pure. About 9% to 10% of the Opus 5.5 and Sonnet 5.5 rows' cost ran on other models (subagents and early switches). The rows ran on different Claude Code versions, and the Opus, Sonnet and Haiku rows are Terminal-Bench 4.0 runs regraded with the 4.1 verifiers, while Fable 5.2 is a native 4.1 run. Dropping the tasks most affected by other models leaves the result against Opus 5.5 in place.
  • List prices only; discounts, plan allowances and budgets are left out. Harbor Hub shows Sonnet 5.5 at $20.83 a trial because Claude Code's own estimate prices its cache reads at twice Anthropic's list price; we use the list price.

Try it on your own traffic

Point Claude Code at the router with the model set to auto. Routing activity shows the model each request asked for and the one that answered, and Requests shows what it cost. Requests through the router are billed per token instead of under your Claude subscription. Auto on TokenSpend's keys is capped at $25 a month per workspace on paid plans, which agent runs like these use up quickly. Past that, add your own Anthropic key and name a model, or send auto to your key with a routing rule.

Send Claude Code through the router · Start free · Read the write-up