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):
- Sonnet 5.5: 6 tasks only Ergo solved, 1 only Sonnet; p = 0.125. Ergo is ahead, but with 30 tasks and one run that gap isn't conclusive.
- GLM-5.3: 8 vs 1, p = 0.04.
- Qwen3.8 27B: 11 vs 0, p = 0.001.
- Kimi K2.6: 13 vs 1, p = 0.002.
- DeepSeek V4.1 Flash: 12 vs 0, p < 0.001.
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:
- cache reads: 130M tokens at $0.03 per million, $3.91;
- cache writes: 3.8M tokens at $1.25 per million, $4.73. Bedrock bills Ergo's uncached input at the cache-write price;
- output: 1.6M tokens at $3 per million, $4.79.
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
- When a solved task is worth more than the extra few cents, Ergo is a strong choice. It solved the most here and finished every session on its own.
- Sonnet 5.5 is still cheaper per solved task: $0.27 against Ergo's $0.64, and much faster. For quick fixes it remains a good default.
- DeepSeek V4.1 Flash is still the budget option: $0.11 per solved task, with fewer tasks solved.
- Ergo is open-weight (Amazon's license allows self-hosting; a separate agreement applies only to model-as-a-service businesses above $20M in yearly revenue). For teams that want their code to stay in their own cloud, a model at this level that they can run themselves is new.
These results come from one run on 30 Python tasks; your mix of tasks may differ.
How we ran it
- Tasks, agent, limits, isolation and grading: identical to our November test.
- 30 tasks drawn at random (seed 20261110) from the 99 SWE-rebench tasks in our coding-agent benchmark. nebius/SWE-rebench-leaderboard, CC BY 4.0.
- Claude Code 2.1.282 in headless mode, as shipped, with every model variable set to Ergo.
- 150 turns, 60 minutes and $3 per task.
- No network for the task containers except the model relay. Blocked attempts were logged; none reached the internet.
- Graded with the official swebench harness (5.0.2).
- Ergo:
amazon.ergo-1.0on Amazon Bedrock through the global cross-region inference profile, with our own AWS account.- Claude Code speaks Anthropic's Messages format, so a LiteLLM proxy on our machine translated it to Bedrock's Converse API.
- Ergo ran at Bedrock's default reasoning effort. We removed Claude Code's thinking and effort settings, and its sampling parameters, which Bedrock rejects for Ergo.
- Ergo's reasoning, which Bedrock returns encrypted, was handed back to it each turn.
- Cost: Bedrock's list price for the global profile on December 1: $1.00 input, $3.00 output, $0.03 cache read and $1.25 cache write per million tokens.
- Two things went wrong, and we fixed them:
- Six Ergo sessions first stopped after a few turns on an error in our translation layer: Claude Code's token-count request was forwarded to an endpoint our AWS account can't call. After the fix we reran those six tasks from scratch; only the reruns count.
- Bedrock returned 23 rate-limit responses during the run, and Claude Code retried them.
Limitations
- One run per model and 30 tasks: intervals are wide, and Ergo's lead over Sonnet isn't statistically conclusive.
- Claude Code is tuned for Claude models; its prompts and tools may favour Sonnet.
- Ergo went through our own translation layer at Bedrock's default effort, not Amazon's own Claude Code setup, which uses Bedrock's Responses API at "medium" effort. Results there may differ.
- The comparison models ran in November on another rented machine: same tasks, images, limits and grading.
- Python repositories only.
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
- Amazon Ergo on 175 single-file coding tasks: same score as Claude Haiku 5.5, at 30× the cost
- Claude Code on open models, 30 real tasks: Sonnet 5.5, GLM-5.3, DeepSeek V4.1 Flash and Kimi K2.6
- Our coding-agent benchmark: 99 tasks, 5 setups
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.