← Reddit

Claude Code's first turn costs 38k tokens before you type anything

Reddit · P4wla · April 30, 2026
Claude Code's initialization request comprises a system prompt and tool blocks that are sent once at the start of each conversation and then cached for reuse, with the system message length varying based on installed tools and custom skills. Testing with a simple "hi" message revealed the initial request consumed approximately 38,000 tokens, corresponding to roughly $0.24 at standard API pricing, though actual costs to Anthropic are substantially lower.

Detailed Analysis

Claude Code's front-loaded context architecture imposes a substantial token overhead before a user types a single substantive character, a discovery that has drawn attention to the hidden infrastructure costs of agentic AI development tools. A developer's experiment of sending a minimal "hi" message to Claude Code measured a request weighing approximately 38,000 tokens — roughly $0.24 at standard API pricing — with that cost traced to two structural components: the system instructions constituting the agent's core prompt, and a set of injected "blocks" prepended to the first user message of every new conversation. These blocks enumerate all available tools, MCP servers, and custom skills loaded into the session. Critically, both components are transmitted only once per conversation and are then cached and reused, meaning the 38k-token figure represents a one-time initialization cost rather than a recurring per-message expense.

The scale of this initial overhead reflects an architectural tradeoff central to capable agentic systems: richer tool awareness and customizability at session start requires larger upfront context. The system reminder component is notably variable, expanding in proportion to the number of installed tools, MCP integrations, and custom skills a developer has configured. Research into Claude Code's actual cost structure confirms that plugin-heavy or highly customized setups can push initial context loads even higher — some configurations have been documented loading 66,000 tokens from plugins alone before any user interaction. Anthropic's own documentation acknowledges this dynamic, with prompt caching, auto-compaction, and context preprocessing deployed specifically to mitigate the downstream cost of these large initialization payloads. The actual infrastructure cost to Anthropic is almost certainly lower than raw API pricing would suggest, precisely because of these caching mechanisms.

The practical cost implications for development teams remain a live concern despite these optimizations. Claude Code's rolling 5-hour usage windows, tiered plan token allocations (ranging from roughly 44,000 tokens on Pro to 220,000 on Max20 plans), and the multiplicative effect of agent teams — which spawn separate context windows per instance and consume approximately seven times more tokens than standard sessions — mean that the 38k initialization cost is just one variable in a complex cost equation. Average reported spending for API-connected development teams runs $100–200 per developer per month using Sonnet-class models, with Anthropic's own data suggesting roughly $6 per developer per day on average, though 10% of users exceed $12 daily. Model selection proves to be one of the highest-leverage cost controls: premium models like Opus consume approximately 1.7 times more tokens per unit than Sonnet equivalents, making model routing a meaningful operational decision.

The broader significance of this investigation lies in what it reveals about the economics of agentic AI tooling at scale. Unlike traditional software-as-a-service tools with predictable per-seat costs, LLM-powered developer tools introduce consumption-based pricing that is highly sensitive to configuration choices, workflow patterns, and the architectural decisions made by the tool's designers. The transparency the developer achieved by instrumenting a simple message points to a growing need for cost observability in this category — Anthropic itself surfaces partial session data through a `/usage` command, though definitive billing figures require consulting the Claude Console. As agentic coding assistants become standard components of professional software development workflows, the token architecture of their initialization sequences will increasingly factor into enterprise procurement and infrastructure planning decisions, elevating what might appear to be an esoteric technical detail into a meaningful line item in engineering budgets.

Article image Read original article →