Token usage across 12 coding harnesses

Update, November 2026: v2 reruns this with 19 harness configs on one model, three runs each.
I wanted to see how much the harness affects token use. The harness is the CLI that wraps the model and drives it. The full write-up is in the paper (PDF). The code is on GitHub.
Setup
- 12 harness configs: Aider, Aider architect mode, Claude Code, Codex, Goose, Hermes, Kilo, Kimi Code, Nanobot, OpenClaw, Opencode, Qwen Code.
- 12 small Python tasks. Things like fixing a calculator or writing a CSV reconciler.
- All calls went through OpenRouter.
- Two runs. First on DeepSeek V4 Flash, then on Nvidia Nemotron 3 Ultra. Nemotron has a free tier, so the second run costs nothing to reproduce.
Almost every harness solved almost every task. So the main difference between them was cost.
Results
Tokens per solved task, as a range across the two models:
| Harness | Tokens per solved task | Startup overhead |
|---|---|---|
| Aider (architect mode) | ~3,500-4,100 | ~700 |
| Aider | ~4,100-5,000 | ~3,000 |
| Hermes | ~30,000-34,000 | ~2,500 |
| Claude Code | ~52,000-55,000 | ~4,500 |
| Goose | ~56,000-62,000 | ~4,000 |
| Opencode | ~72,000-80,000 | ~8,500 |
| Nanobot | ~74,000-84,000 | ~9,000 |
| Codex | ~85,000-90,000 | ~8,200 |
| Kimi Code | ~105,000-116,000 | ~16,000 |
| Kilo | ~119,000-120,000 | ~14,700 |
| Qwen Code | ~141,000-182,000 | ~20,000 |
| OpenClaw | ~191,000-292,000 | ~26,000 |
The order was nearly the same on both models. The startup overhead ranking was identical. The cost ranking had one swap between neighbours.
Log scale. Two bars per harness, one per model.
Startup overhead
Every harness sends a system prompt and tool definitions before your prompt. Aider in architect mode sends about 700 tokens. OpenClaw sends about 26,000.
This number came out almost the same on both models.
Same measurement on two models. Each harness sits on the diagonal.
The overhead is resent on every turn. A harness with a 26k floor that takes 15 turns spends about 390k input tokens on overhead alone.
Context grew by a few hundred tokens per turn for every harness. That didn't predict cost. Turn counts were also similar: a median of six to ten for the looping harnesses. Startup overhead times turn count predicted cost per solved task with R² = 0.99 on both models.
Caching
On DeepSeek, Codex used over a million tokens for the suite. But 77% of them were cache reads. Those cost about a tenth of normal input. Adjusted for that, Codex was cheaper per solved task than Claude Code, which used half as many raw tokens.
Claude Code showed zero cache hits. That turned out to be OpenRouter, not Claude Code. It's the only harness here that uses the Anthropic-style messages endpoint. OpenRouter's translation of that endpoint was losing cache hits that the OpenAI-style endpoint got on the same providers.
Nemotron's free tier reported no caching at all.
Gray is raw tokens. Blue is cache-adjusted.
So raw token counts can mislead. Check the cached share before comparing.
Aider
Aider solved 11 of 12 tasks at 4-5k tokens each. That's about 10x cheaper than the middle of the pack. For tasks like these it makes one call with the file and the request, and gets a diff back. There's no agent loop.
A loop helps on harder problems. On small, clear edits it mostly adds turns.
SWE-bench Lite
I wanted to check whether the heavier harnesses do better on hard tasks. I ran Aider, Claude Code, Codex, and Kilo on 10 SWE-bench Lite tasks with loose limits.
All four resolved one task. The same one.
Token totals: Aider 0.8M, Claude Code 5.3M, Kilo 12.3M, Codex 15M. I reran Claude Code with five times the budget. It produced patches for nine tasks instead of one. None of the extra ones resolved.
Total tokens for the same result.
My read is that these tasks were beyond DeepSeek V4 Flash, and the harness didn't change that.
Noisy context
Same 12 small tasks, but with 20k, 50k, or 100k tokens of unrelated log text placed before the request. Same four harnesses.
- Aider sends everything in one call. It got 12/12 at 100k. So the model itself handled the noise fine.
- Claude Code got 12/12 up to 50k, then 2/12 at 100k. It sent the full context, then stopped after two or three calls without making edits. Same thing on DeepSeek V4 Pro: 0 of 6 before I stopped the run.
- Kilo got 12/12 at every level, and its token use barely changed. It truncates large prompts. The 100k input reached the model as 13k. It keeps the end of the prompt, which is where the task was in this setup.
- Codex sent the full payload on every call and got 12/12 at every level. Since it resends it each turn, 100k of noise took one task from 82k to 909k tokens.
Left: solve rate. Right: tokens.
I then ran all 12 harnesses at 100k and checked at the network layer how much of the prompt was actually sent:
- 7 sent all of it and passed.
- Kilo and Opencode dropped 83-89% of it and still passed.
- OpenClaw refused to run and suggested a larger-context model.
- Kimi Code crashed.
- Claude Code sent all of it and failed, as above.
Fraction of the prompt that reached the model. Orange bars passed anyway.
Silent truncation looks the same as success unless you check what was sent.
Takeaways
- For small, clear tasks, a one-shot tool like Aider uses far fewer tokens.
- The spread between harnesses (40-70x) was larger than any price difference between models.
- Check the cached share before comparing token numbers.
- The model you configure and the models the harness actually calls can differ. Worth checking.
Limits
The main results come from 12 small Python tasks, two models, and one run per pairing. The SWE-bench and noise tests used four harnesses and one model. A frontier model might get more out of the heavier harnesses on hard tasks. I haven't tested that.