Claude Code burns 33k tokens before reading prompt; OpenCode uses 7k

systima.ai · ⭐️ 8/10 · 2026-07-12

A systematic comparison reveals that Claude Code uses approximately 33,000 tokens before processing the user's prompt, while OpenCode uses only about 7,000 tokens — a roughly 4.7x difference in overhead. The study logged all requests between the tools and Anthropic's endpoint to capture token usage data. This token inefficiency directly impacts developers' costs when using Claude Code, as users pay per token. The findings also raise broader questions about business incentives and design choices in AI coding tools, especially as agentic coding becomes more popular. The overhead is attributed to Claude Code's cache strategy and harness token usage, including a large system prompt and aggressive tool calling. Community reports also indicate that sub-agents launched by Claude Code can burn through budgets rapidly, even before completing a task.

Background

Agentic coding tools are AI systems that perform multi-step software development tasks autonomously by breaking goals into steps, calling tools, and iterating until done. A 'harness' in this context refers to the orchestration layer that manages tool usage and communication; inefficient harnesses consume tokens on system prompts, context caching, and unnecessary tool calls before the model even sees the user's request.

References

Discussion

Commenters largely agree that Claude Code's token overhead is excessive, with some attributing it to sub-agent orchestration inefficiency or Anthropic's profit incentives. Others suggest that the problem extends beyond Claude Code, noting a broader trend of 'tokenflation' where tools increase token consumption over time. The post author has pledged to follow up with more rigorous tests including qualitative results.

Read original