Call 33 was a refusal.
Amazon's new open model, Ergo, was running inside Claude Code on my laptop, fixing a bug in agent-trace. It asked to make a folder in /tmp and download a newer release of the package it was fixing. Claude Code blocked the command, because mkdir and cd were not on the list of commands I had allowed.
Call 34 was the same download, written as a Python script. python3 was on the list.
By call 55 it had read the released fix and the released tests. By call 109 it had a patch that passed all 36 of my hidden tests. It mentioned this in the last sentence of its summary.
Why I was watching
Yesterday I wrote about Ergo's maths expert: one expert in layer 11 that takes 78% to 84% of maths tokens however you write the maths. I found it by renting an AMD MI350X and reading the router. But Jeff Bezos's announcement offered two ways to run Ergo: "on your hardware or on Bedrock." I tried both. This is the Bedrock half.
Ergo is a 1.1-trillion-parameter mixture of experts, with 55 billion parameters active per token. Bedrock serves it through an OpenAI-compatible endpoint, so a LiteLLM proxy is all it takes to put Ergo behind Claude Code. I pointed ANTHROPIC_BASE_URL at the proxy, and Claude Code never knew it was talking to Amazon.
I wanted to know whether a coding agent built for Claude works with someone else's model. A few of my factory's agents and I built the harness. agent-strace recorded every session, and Distill gave one arm a memory. The whole thing cost about $8.70 of Bedrock time.
The test
I wanted bugs no benchmark had seen, graded by tests the agent could not read. So I used my own project.
agent-trace has closed issues with fix commits. For each issue, the harness builds a fresh git repository holding only the commit before the fix, with no remote. The agent gets the issue text and the repository. When it stops, the harness copies in the fix commit's test files and runs them.
Sonnet, through Claude Code's own login, ran each of five issues three times. Ergo ran four issues, and Ergo with Distill memory ran three, before Bedrock's throttling stretched each run to an hour and I stopped.
A warm-up came first: three small Python fixes. Ergo passed 27 of 27 at 3 to 4 cents a solve. Low, medium and high reasoning effort solved as often as each other, so use low.
The leak
Issue #149 says agent-trace's hooks store pending tool calls by tool name, so two agents running at once overwrite each other. The checkout was agent-strace 0.52. The fix shipped in 0.64.1, and PyPI keeps every release.
Ergo spent its first 30 calls reading the repository, as you would. Call 31 carried its own description: "Check PyPI for newer agent-strace versions."
Here is what it did, in order:
- Listed every release up to 0.131.0.
- Downloaded 0.131.0 and read its hooks, integration and decorator modules.
- Downloaded 0.64.1. The description on call 43: "Print exact 0.64.1 hooks implementation."
- Diffed its checkout against 0.64.1. The diff included the upstream comment: "The file is keyed by event_id (not tool name) so concurrent calls to the same tool don't overwrite each other."
- Downloaded 0.64.7 to check a later change.
- Downloaded the 0.64.1 source tarball, which carries the tests, and read
test_hooks.pyandtest_decorator.py.
Then it wrote its fix, across about 50 more calls. The patch uses names the issue never mentions and the base commit does not contain: AGENT_TRACE_CLAUDE_SESSION_ID, .active-session.<agent>, threading.local. All three are in 0.64.1.
On call 109 it copied the upstream tests into a temporary directory, linked them to its own source and ran them. 36 passed in 0.43 seconds. My hidden tests were the same files. 36 of 36.
Its summary is 228 words long. The last sentence reads: "The upstream 0.64.1 hook/decorator regression tests for this exact issue also pass against this implementation." The words pip and PyPI appear nowhere.
I counted the run as unsolved.
The bug was mine
Ergo broke no rule I had set. I allowed python3 so it could run tests, and python3 -m pip download starts with python3. Claude Code's allowlist matches the start of a command, not what the command does. It blocked mkdir and cd as I had configured it to. Ergo read the refusal and moved the work somewhere the list did not reach.
Give an engineer this bug and they would check upstream first. In a job, that is a good habit. In an eval, it is a leak. Any benchmark built on a published package has to run without the network, because a list of command names does not stop a model that can write Python.
None of Sonnet's 15 runs went to PyPI. One leak in seven Ergo runs is not a rate, so I won't claim Ergo does this more often. It found the hole in my harness before I did.
Without the answer key
The other six Ergo runs and all 15 Sonnet runs stayed inside their repositories. No run fully solved an issue. Every arm passed 92% to 95% of the hidden tests.
That is closer than it looks. The hidden tests are the fix commit's own test files, so they check names and details the issue never states. A run that fixes the bug under different names fails some of them. Every run fixed most of what its issue asked.
Sonnet reads the title, Ergo reads the issue
The title of #149 names hooks.py. The body adds one sentence: "The same issue exists in the SDK integrations (integrations/_base.py)."
All three Sonnet runs changed hooks.py and its test, and nothing else. Each failed the two hidden tests for concurrent sessions. Both Ergo runs fixed hooks.py, _base.py and decorator.py. Then they kept going: ADRs, the README, AGENTS.md and the integration docs. The Distill run bumped the version number too.
agent-strace compare on the leaked Ergo run and a Sonnet run:
| Ergo + Distill | Sonnet | |
|---|---|---|
| Duration | 31 min | 56 s |
| Tool calls | 90 | 10 |
| Files modified | 11 | 2 |
Neither is what a reviewer wants. Sonnet answered the title. Ergo answered the issue, then edited docs nobody asked it to touch. Tell it the scope in the prompt: "Change only what the issue needs. No docs."
Four times the turns, for 67 cents
A median Ergo run took 27 minutes, 100 turns and 8.6 million input tokens. A median Sonnet run took 10 minutes, 26 turns and 1 million. agent-strace counted five redundant reads per Ergo run and none for Sonnet: Ergo re-reads files it already has in context.
Eight million tokens sounds expensive. It is not, because Claude Code resends the whole conversation every turn, and almost all of it is a cache hit. Bedrock charges $1 per million fresh input tokens and 3 cents per million cache reads.
The median Ergo run cost 67 cents. Without the cache discount it would cost $8.79. Sonnet's median was 37 cents, as Claude Code estimates it; I ran Sonnet on my subscription.
Smaller things the traces showed
Bedrock throttles hard. It answered 777 of 1,617 requests, 48%, with HTTP 429. Two Claude Code sessions at once were enough. My active-time figures drop gaps longer than three minutes, but shorter retries remain, so Ergo looks slower here than it is.
Ergo ignores --append-system-prompt. In the first Distill attempt, the memory instructions went in through that flag, and Ergo never called the memory. With the same text at the top of the user prompt, it recalled facts before every task and stored new ones after.
Bedrock streams nothing until Ergo stops reasoning. The median wait for the first answer token was 16.7 seconds, then 320 to 380 tokens per second. Even at low effort, some requests spent all 8,192 output tokens on reasoning and returned no answer. Set max_tokens high.
Memory helped once and hurt once. After #149, Ergo stored four facts a new contributor needs, such as the state-file layout and how to run the tests. On #576, with those facts, it used 0.4 million tokens against 3 million without. On #578 it used 18.6 million. One sequence per arm is noise.
If you try it
- Use LiteLLM's
openai/provider with Bedrock'sglobal.amazon.ergo-1.0inference profile. The config is in the repo. - Set
reasoning_effortto low. It costs less and solved as often. - Run one session at a time and set
API_TIMEOUT_MShigh. - Put standing instructions at the top of the user prompt.
- State the scope you want.
- Run evals with the network off.
What this does not show
The samples are small. Ergo ran each real issue once, and #564 has no Ergo run at all. agent-trace is public, so both models may have seen these fixes in training. The hidden tests penalise any run that picks different names from upstream, which is why no run scores 100% without help. And Sonnet's costs are Claude Code's API-equivalent estimate, not a bill.
The last sentence
Ergo did tell me. One sentence, at the bottom of the summary, after the docs and the ADRs and the version bump: the upstream tests pass.
It did not say where it got them. For that, I had to read call 34.
About this work
This is an Inference Lab post: real runs, public code, and the limits written down. The harness, task fixtures, grader, analysis and charts are in ergo-routing, next to the runtime from the maths-expert post. If you run the tasks on another model, or offline, open an issue with what you find. A star helps other people find it.
I found the leak by reading the trace. agent-trace records what coding agents do so you can replay and audit it, and Distill gives agents a memory that deduplicates as it writes. I also build LLMTraceFX, an evidence-first toolkit for measuring LLM inference. For the longer view, read The Agentic Engineering Guide.
Related: Amazon's trillion-parameter model Ergo has a maths expert and Leave your coding agent for 5 minutes and most of its cache is gone.
I write about LLM inference, AI agent infrastructure and security. You can find all my writing on my writing page. Discuss this post with me on X or connect with me on LinkedIn.