Same model, new harness: cheaper, not faster
If you’re deciding whether to swap the harness, the loop and tools around your coding agent’s model, or comparing two, this is what I learned moving my cheapest agent from OpenCode to Claude Code and keeping its model.
For most of October that agent ran DeepSeek’s Flash model inside OpenCode. On 25 October I moved it to Claude Code, still calling the same DeepSeek model, and kept everything else the same. A second project followed on 27 October.
On both projects a delivered unit now costs less: at least 40% less on the first, and about a fifth as much on the second. It isn’t delivering more often, and it isn’t faster.
Getting to those numbers took two corrections. My first comparison picked the wrong baseline, and my first two days of data showed a speed gain that more data took away.
One lane is the cheap one. It ran DeepSeek Flash, at 15 cents per million input tokens, inside OpenCode, an open-source agent harness.
The harness is everything around the model: the loop that calls it, the tools it may run and how it manages its context. Changing only the harness kept the model, the work, the reviewers and the measuring where they were.
Log every unit, priced at one model’s rates
Every unit the head sends is a row in a ledger, and I reprice every one at DeepSeek Flash rates.
The only thing that differs then is how each harness used the model.
Do the same for any two tools you compare: one row per unit and one price list, so only the tool differs.
Count units that never landed, not just the bill
The week before the switch cost about $20 a day in DeepSeek credit across two projects.
Most of it went on turns that ran for hundreds of model calls, which I wrote about in five changes that keep coding agents’ context small.
A cap of 150 model calls per turn fixed the bill. It didn’t fix the work, and in OpenCode’s last week most units never landed.
Of the cancellations with a reason, five were the lane itself. It went round the same steps twice without changing a file, or never started a unit even after it was woken.
Flash is cheap enough that price was never the problem. The failures were in the loop around the model, so the loop was the thing to change.
If your cheap agent’s bill is under control but its units still don’t land, count the cancellations by reason before you change anything.
Fix the comparison window before you see results
So I swapped in Claude Code, the loop my head agent already runs, with the same hooks and 150-call cap, pointed at DeepSeek. The settings are at the end.
My first comparison used OpenCode’s last week, because that was the week that made me switch. Against it, Claude Code delivered twice as often, twice as fast, at a fifth of the cost.
That week was OpenCode at its worst, not its average. Over the whole month it delivered nearly as often as Claude Code, and just as fast.
What changed is cost: a delivered unit costs at least 40% less.
So the speed gain came from the first few units, not the harness. My first 23 units said half the time, and 57 units said no faster.
The week that makes you angry enough to switch is usually the worst one, and measuring against it will flatter whatever you switch to. The first days after a switch flatter it too, so I now pick the baseline before I look at a result.
Repeat the change on a second project
My second project moved its cheap lane to Claude Code on 27 October. Its 62 units point the same way on cost, with one difference.
Delivery and speed barely moved, and first-pass review rose from 63% to 70%. The big difference is the money: about a fifth as much per delivered unit.
A second project that made the same change is how I check a result isn’t just one project’s. On review, the first project pointed the other way.
Keep a control that didn’t change
On the first project, only 13 of the new lane’s 30 reviewed units passed first time. On its own, that would be a reason to switch back.
My other lane there runs OpenAI’s Codex and didn’t change at all, and its first-pass review fell as well.
That lane isn’t a clean control on its own, because the cheap lane reviewed its work. From 29 October my head agent, on Claude Opus, reviewed it instead, and its first-pass rate stayed at 44%.
The second project helps too. Its cheap lane changed harness, and its first-pass rate rose to 70%. That points at the first project’s work, or how it is reviewed, not at the harness.
So when a number falls after a change, I look at a lane that didn’t change before I blame the change.
How far to trust it
OpenCode is out of my setup. On the same model, Claude Code did the same work for less money on both projects, and no slower.
Point Claude Code at DeepSeek with these settings
DeepSeek serves an Anthropic-compatible API, so Claude Code can call it directly. My head agent already runs Claude Code, and the cheap lane got the same harness, hooks and 150-call cap.
The cheap lane’s environment (simplified)
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN="$DEEPSEEK_API_KEY"
export ANTHROPIC_MODEL=deepseek-flash
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-flash
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-flash
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flash
claude --model deepseek-flashSetting every default model matters, because Claude Code asks for different models for different jobs.
The launcher also refuses to start without a DeepSeek key, so the lane can’t quietly fall back to my Anthropic login.
How I ran the comparison
Run those four steps before you switch, and write down the baseline before you see the result.