Anatomy of a Claude Code Session: Prompts, Tools, and Token Economics
I intercepted 307 files from a Claude Code session to reverse-engineer its system prompt, tool definitions, subagent architecture, and caching strategy. Tool schemas alone consume 56% of input tokens, prompt caching saves 90% of costs, and about 19% of the tool payload could be trimmed.