Adapted from the talk Daniela Miao and I gave at Seattle Systems on September 30 (recording).
When comparing coding agents, most of the focus is on the models. Which one is smartest, which one is cheapest per token, which one tops the latest leaderboard. While building evals for our own agents, Daniela and I kept seeing large differences based on the harness being used.
To get to the root of the differences we held the model and the tasks fixed and changed only the harness, running Claude Code against the Strands Agents harness from AWS.
Prefer to watch
Watch this short clip for a quick overview of how agent harnesses handle context and affect costs.
Watch on YouTubeShow me the numbers
The first test used ember-1, a fine-tune of Kimi K3 that Fireworks AI trained to spend less time on unproductive reasoning. We used three real bugs from the Valkey repo. Both harnesses fixed all three. Claude Code cost $2.34 and Strands cost $1.02. Strands used less context and was cheaper on every bug.
| Test | Harness | Turns | Context per turn (tokens) | Cost |
|---|---|---|---|---|
| Fix sorted-set range lookups (hardest) | Claude Code | 41 | 48.0k | $1.03 |
| Strands | 56 | 27.4k | $0.70 | |
| Validate stream record counts on load | Claude Code | 39 | 28.0k | $0.62 |
| Strands | 13 | 8.7k | $0.11 | |
Fix signed overflow in vset timestamps |
Claude Code | 31 | 30.9k | $0.69 |
| Strands | 22 | 11.7k | $0.21 |
The hardest bug is the most interesting one. Strands took more turns, 56 compared to 41, and still came out about a third cheaper, because each of its turns carried a little over half the context.
We saw the same pattern on ten tasks from Gin, a Go web framework, this time with Claude Opus 4.8. Claude Code cost $4.97 and Strands cost $3.72, and Strands was cheaper on nine of the ten. On a task targeting faster line reading in stack(), Claude Code took 14 turns at about 35k tokens each for $0.75. Strands took 17 turns at about 12k each for $0.30. Total task time came out about the same, so savings came from sending less context on every turn.
Every turn re-sends the conversation
A coding agent is a loop. On each turn, the harness sends the whole conversation back to the model, including every tool output so far. The size of that conversation, multiplied by the number of turns, drives the bill.
Claude Code optimizes hard for prompt caching, which is why there is about a 90% discount on cached tokens. A cache hit only counts when the entire prefix matches. If you were the engineer trying to maximize hits on every turn, what would you do? You would append. Change one token early in the conversation and everything after it misses the cache, so the context keeps growing, full of file contents the agent looked at 20 minutes ago, until compaction kicks in.
Strands takes a different approach to the context problem. When a tool returns more than 2,500 tokens, Strands keeps a 1,000-token preview in the conversation and parks the rest behind a reference. If the agent needs more later, it pulls back just the lines it wants, like the ones matching "error." If it never needs them, nobody pays to send them again. Strands gives up some cache hits along the way, and on these tasks the trade was clearly worth it.

Tuning claude code
Daniela raised an optimization counterpoint on stage. Most developers we know prefer Claude Code, and its features are a big reason why. Every feature tends to come with a tool, and every tool has to be described to the model in the system prompt. Claude Code ships with around 30 of them. The Strands harness is about 4,000 lines with a 2,000-character system prompt, small enough to audit.
You also have more control over Claude Code than it might seem. You can tell it how to compact, what to prioritize and what to throw away, and you can compact on your own schedule. That's worth tuning before you decide any harness is too expensive.
You can only tune what you can observe
None of this would have been visible without watching their traces, and every harness records them differently. Claude Code gives a full tool transcript with the duration in the result. Strands emits OpenTelemetry for every model and tool call. Codex reports turns but no timing in its stream, and some harnesses stream free-form text that is slow and expensive to parse.
We ended up writing our own schema to normalize traces across harnesses, so we only had to build the visualizer once. It still isn't foolproof. Each harness captures tool calls, reasoning tokens and system messages in its own way, and those formats change as fast as the harnesses ship. If you run a platform for coding agents, pick a trace format early. Observability is a harness feature, and today it varies far more than it should.
The harness is part of your AI bill even if you don’t think about it as often. Compare models without holding the harness fixed, and you are measuring both at once. We built mo eval to make that kind of controlled comparison easy. Point it at our sample repos, or reach out to us to run it against your own code and toolchain.