Posted by systima 5 hours ago
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.
Also, I have seriously used most harnesses - One feels like it's being built in a place that truly understands AI and where agentic engineering is headed. You might not like it, but peak performance exists in CC when it comes to orchestration of bulk parallel work / subagents. The open source agents are catching up or accell in different way (Im preferable to pi.dev), but I'm not sure they're architecting orchestration the right why.
I used mitmproxy (setup assisted by Claude, natch) to capture Claude Code's entire initial system prompt and the whole thing was (I just double-checked) 162k of JSON.
This led me to start experimenting with Pi, OpenCode, and Hermes...
Opus 4.8 (1M context)
claude-opus-4-8[1m]
23k/1m tokens (2%)
Estimated usage by category
System prompt: 3.9k tokens (0.4%)
System tools: 13.9k tokens (1.4%)
Custom agents: 235 tokens (0.0%)
Memory files: 28 tokens (0.0%)
Skills: 4.9k tokens (0.5%)
Messages: 8 tokens (0.0%)
Compact buffer: 3k tokens (0.3%)
Free space: 974k (97.4%)
4k tokens is 15-20kB. I'd ask you to paste that into a gist, but it might have sensitive data in it, because I suspect what you're seeing is not just the system prompt.I was simply supporting the article's data - their reported 33k tokens is probably roughly 150-165k.
Current /context on a fresh session (compare to that above) is:
Opus 4.8
15.8k/1m tokens (2%)
System prompt: 4.5k tokens (0.4%)
System tools: 7.9k tokens (0.8%)
Memory files: 441 tokens (0.0%)
Skills: 3.1k tokens (0.3%)
Messages: 8 tokens (0.0%)
Free space: 984.2k (98.4%)I enable tools specific to each project only in that project, and have very very few in my global config. Like <5k tokens worth.
My $20 sub using gpt 5.6 sol thinking-off lasts for hours using pi.
> When context gets too long, maki compacts history automatically: strips images, thinking blocks, and summarizes older turns.
Don’t the summaries of older turns effectively invalidate the context cache, such that you consume less tokens but more expensive tokens?
This is posed as some sort of discovery, but both Claude Code and OpenCode display token usage clearly after starting a chat or agent, and 30k and 7k is exactly what you see.
If you don't use a subscription, and pay per token instead, you can easily move to another harness.
If you’re using API, on the other hand, there is absolutely no reason to use Claude Code, or Codex.