Back to Blog

Amazon Ergo in Claude Code: 21 of 30 Real Repository Tasks, the Most of Any Model We've Run

2026-12-02·7 min read·CodeRouter Team

Disclosure: we build CodeRouter, a router for coding agents. Ergo isn't served through CodeRouter in this test: we called it on Amazon Bedrock with our own AWS account, through a translation proxy on our machine (details below). The other five models are the ones we published in November, on the same tasks.

Yesterday we ran Amazon's new open-weight model, Ergo, on our 175 single-file coding tasks. It solved exactly as many as Claude Haiku 5.5, at 30 times the cost, and we noted that short tasks aren't what it was built for. Amazon describes Ergo (1.1T parameters, 55B active) as a model for agentic coding and long workflows. So today we gave it that job: Claude Code itself, on 30 real repository tasks, graded by each task's own tests.

Ergo solved 21 of 30, more than any model we've run on these tasks. Claude Sonnet 5.5 solved 16. Ergo cost $0.45 per task, 3× Sonnet, and $0.64 per solved task, 2.4× Sonnet. It worked the longest: a median of 70 turns per task, against Sonnet's 9.

The results

Model in Claude Code Solved (of 30) 95% interval Cost per task Cost per solved task Median turns Median time per task
Amazon Ergo 21 52–83% $0.448 $0.64 70 6.8 min
Claude Sonnet 5.5 16 36–70% $0.145 $0.27 9 1.0 min
GLM-5.3 14 30–64% $0.583 $1.25 33 4.5 min
Qwen3.8 27B (TokenWatt) 10 19–51% $0.211 $0.63 87 12.5 min
DeepSeek V4.1 Flash 9 17–48% $0.033 $0.11 26 4.0 min
Kimi K2.6 9 17–48% $0.703 $2.34 22 54 min

Costs are list prices for the tokens each request reported, cache reads and writes included, with no fees. Same 30 tasks, same prompt, same limits, one run per model. Ergo ran on December 2; the others in November (Qwen3.8 27B on November 23, the rest on November 12).

Ergo against each model, task by task

Counting the tasks only one of the two solved (exact McNemar test):

Five tasks were solved by Ergo and by none of the other five models. Seven were solved by none of the six.

Every Ergo session finished on its own: no session hit the 60-minute or 150-turn limit, none ended with an error, and none ended without a code change.

Where the time and money went

Ergo works through a task in many small steps. A median task took 53 model requests, 70 turns and about 7 minutes; the longest took 33 minutes. Sonnet's median task took 8 requests and one minute.

Claude Code sends the whole conversation with each request, so step count drives cost. Across the 30 tasks, Ergo read 130 million tokens from Bedrock's prompt cache, 11.5× what Sonnet read. Its $13.44 split into roughly equal thirds:

97.2% of Ergo's input came from the cache. Billed at the $1.00 input price instead, the same sessions would have cost about $139.

Why the two Ergo results differ

On a short single-file task, Ergo's long reasoning is mostly cost: 95% of its output there was reasoning, and the answer was no better than Haiku's. In a repository task, working longer paid off. A median Ergo session ran 52 shell commands, read 9 files and made 4 edits; a median Sonnet session ran 7 commands. Cheap cache reads kept those long sessions affordable.

The same model was the most expensive way to solve a simple task and the strongest solver of a hard one. Price per token says little about either. Cost per solved task, measured on your kind of task, does.

What this means if you use Claude Code

These results come from one run on 30 Python tasks; your mix of tasks may differ.

How we ran it

Limitations

The data

Per-session results for all six models (task, model, solved, how the session ended, turns, time, requests, input, cache-read, cache-write and output tokens, cost, patch size) and the aggregates, with method notes. No prompts, code or transcripts:

Related reading

Update, December 2: Ergo is now available on CodeRouter in Direct mode. How we set it up, and the fix that brought its cost per task in line with calling Bedrock directly: Amazon Ergo is now on CodeRouter.

Try phase-aware routing on your own workload

One base URL for Claude Code, Cursor or Aider. Free trial, no credit card.

Start free trial

Get weekly AI cost optimization tips

Join developers cutting their agent bills