Hacker News
Read post

Claude Code Sends 4.7x More Tokens Than OpenCode Before Reading Your Prompt

A detailed empirical comparison of token consumption between Claude Code and OpenCode, measured at the API boundary using a logging proxy. Claude Code's baseline overhead is ~33,000 tokens per request vs OpenCode's ~7,000, driven by 27 tool schemas and injected scaffolding. Cache instability in Claude Code causes 5.9x–54x more cache writes than OpenCode on identical tasks. Real-world configurations (instruction files, MCP servers, subagents) can push first-request overhead to 75,000–90,000 tokens. Subagent fan-out multiplies costs dramatically: a 121k-token direct task ballooned to 513k tokens with two subagents. One counterpoint: Claude Code's parallel tool batching can make multi-step tasks cheaper than OpenCode's serial one-call-per-turn approach. The post includes methodology details, caveats, and instructions for reproducing the measurement rig.

    #claude-code#context-engineering#opencode
Jul 12•15m read time•From systima.ai
Post cover image
Table of contents
Why measure this at allMethodPart I. The floorPart II. The multipliersThe cache economics, honestlyDogfooding, or the benchmark dataset as an audit logCaveatsReproducing it
706 Impressions
Hacker News's image
Hacker News

Hacker News is a community-driven platform for sharing and discussing technology news, startups, and...

17.4K Followers

•

141.8K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard