Top
Best
New

Posted by systima 10 hours ago

Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k(systima.ai)
This started based off of a hunch. We usually use OpenCode, but were 'forced' to use Claude Code for a while due to issues with Meridian. In that time, we saw the usage meter rise much, much more quickly than when using OpenCode.

This was the initial anecdotal evidence, but we undertook this small study to collect empirical data:

We added logging between the agentic coding tool (Claude Code and OpenCode) and Anthropic's endpoint, and captured all requests (and the returned usage blocks).

With one caveat (toward the end of the post) we found unambiguously that Claude Code was far more inefficient in terms of its cache strategy and its harness token usage than OpenCode.

493 points | 277 commentspage 6
MallocVoidstar 9 hours ago|
> Claude Code 2.1.207 and OpenCode 1.17.18, both pinned to claude-sonnet-4-5

So not only is this article AI-written, but the testing was entirely done by AI, too? I can't see any other reason to use such an old model.

> Our traffic passes through a local LLM gateway that wraps requests in its own envelope, a constant we measured at roughly 6,200 tokens with bare calibration requests

Why do you need to do calibration requests to figure out how your own gateway is affecting requests?

> Its subagent lane did not complete cleanly through our gateway

> We attempted to toggle extended thinking in both harnesses and are declining to publish numbers. Our gateway applies its own thinking policy, neither harness's toggle demonstrably survived the path, and anything we quoted would be noise.

Why is your own gateway screwing with your testing?

systima 9 hours ago|
Model:

Cost, mainly. The runs went through a Claude Max subscription rather than metered API billing, and pinning an older stable snapshot kept run-to-run comparisons clean and cheap. The fixed harness payload (system prompt plus tool schemas), so the headline numbers shouldn't change too much.

That said, happy to re-run the matrix on Fable and publish the diff; payload figures should barely move, tool-calling behaviour might.

Gateway:

Meridian (github.com/rynfar/meridian); proxy that bridges the Claude Code SDK to a standard Anthropic endpoint so a Claude Max subscription can drive OpenCode-et-al.

It's the auth route for all agent traffic on the machine, not something built for the benchmark.

nubg 9 hours ago||
So? it doesnt matter, after the first turn it's cached. We are probably talking about single digit cents.
modgate 1 hour ago||
[flagged]
runjake 3 hours ago||
[dead]
implexa_founder 5 hours ago||
[flagged]
ahdgs 4 hours ago||
[flagged]
yojo 8 hours ago||
[dead]
gokselu 9 hours ago||
[flagged]
siddhxrth 9 hours ago|
[flagged]
systima 9 hours ago||
We have never read your blog or your content before.

Suspect that many have covered the "Comparing agentic coding tools" angle before, and that the differentiator is depth of analysis + conclusions.

anamexis 9 hours ago|||
Do you think you were the first person to write a blog post about coding harness token usage?
nish__ 9 hours ago||
Intellectual property is a dead concept.
More comments...