llm-kb
← Back to social
Community

Study finds Claude Code sends 33k tokens before reading prompt vs OpenCode's 7k

A developer team measured token usage of Claude Code and OpenCode by logging requests to Anthropic's endpoint. They found Claude Code sends approximately 33,000 tokens before processing the prompt, while OpenCode sends only about 7,000. This explains anecdotal observations of faster usage meter growth with Claude Code.

25 engagement·1 source·Sun, Jul 12, 2026, 06:25 PM
The team, who usually use OpenCode but were forced to use Claude Code due to issues with Meridian, noticed the usage meter rising much faster with Claude Code. To investigate, they added logging between each agentic coding tool and Anthropic's endpoint, capturing all requests and returned usage blocks. The results unambiguously showed Claude Code sending roughly 33k tokens upfront versus OpenCode's 7k, with one caveat noted at the end of the post. This empirical data confirms the hunch that Claude Code consumes more tokens before even reading the user's prompt, which has practical implications for cost and efficiency when using these tools.

Entities

Claude Code(tool)OpenCode(tool)Anthropic(company)

Related

IncidentSat, Jul 11, 2026, 11:18 AM

Users report Claude Code consuming excessive usage due to large context bug

Multiple users report that Claude Code consumes 20-40% of their usage allowance per session due to a bug that sends 300k+ message contexts even on fresh sessions. One user lost significant paid usage before realizing the issue. Another user describes a layered configuration setup with CLAUDE.md and AGENTS.md files, and a cleanup that removed ~700MB of empty content but still faced model selection inefficiencies.

15 engagement·2 sources·reddit
CommunitySun, Jul 12, 2026, 07:20 PM

User seeks tips to avoid rate limits on Claude Max5

A Reddit user reports hitting rate limits on Anthropic's Claude Max5 within 1.5 hours of use in a 5-hour window. They describe a workflow using Fable Ultracode/Opus 4.8 High for planning and Opus 4.8 for execution, seeking community advice to reduce token consumption.

12 engagement·1 source·reddit
ProductSun, Jul 12, 2026, 09:53 AM

CLI to analyze Claude Code session token costs

Tokenbill is an open-source CLI tool that parses local Claude Code session logs and estimates token costs. It runs entirely offline with no network calls, helping developers understand and optimize their Claude Code usage costs.

2 engagement·1 source·reddit
ProductSat, Jul 11, 2026, 05:46 AM

Local CLI tool to analyze Claude AI token usage and costs

A Go-based CLI that parses local Claude AI logs to show token usage and cost breakdown by project, session, and model. It helps users understand where their API quota is going and how much they would have spent without caching.

6 engagement·1 source·reddit
CommunitySat, Jul 11, 2026, 02:53 PM

User audits Claude Code transcripts, finds long sessions with breaks cause high costs due to cache expiry

A user auditing their Claude Code transcripts discovered that long sessions with breaks are expensive because prompt caching expires after one hour, forcing full history rewrites at premium prices. The user shares details on cache economics to help others optimize usage.

20 engagement·1 source·reddit