2 min read · Mastodon
Analyzing Claude Code Token Overhead and Caching Costs Against OpenCode
A systematic analysis of developer agents reveals that Claude Code injects around 33,000 tokens of system prompts, tool schemas, and reminders before reading your query, compared to OpenCode's minimal 7,000 tokens. This overhead escalates with system instructions, custom AGENTS.md files, and active Model Context Protocol servers, heavily impacting prompt-caching efficiency.
Why it matters. You can choose OpenCode or configure Claude Code carefully to avoid burning through thousands of cache-write tokens on short sessions.