Developer finds 9,857 tokens consumed by Claude Code config before any input
A developer discovered that their Claude Code setup — comprising 107 skills, 38 agents, and 15 commands accumulated over several months — consumes 9,857 tokens at the start of every session before any user input is entered. The hidden cost comes from description fields: every installed component's description must remain loaded in the context window throughout the session so the model knows what tools are available. While 9,857 tokens represents roughly 5% of a 200,000-token context window, the author argues the real issue is efficiency — paying a constant overhead for components that are only triggered about 2% of the time. This baseline tax also compounds with other persistent context elements such as system prompts, MCP server schemas, and project files, quietly reducing available working memory. The developer shared a short Python script to help others audit their own Claude Code configurations and measure their per-session token overhead.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in