What problem does it solve? Agentic coding tools send a large hidden prefix with every API request (system prompt, tool schemas, CLAUDE.md, agent and skill listings, hooks, MCP instructions), and this Skill measures exactly what each request carries from real transcripts so you know what to trim. ## Core Features & Use Cases - Real usage analysis: Parses Claude Code session transcripts, deduplicates streamed usage records, and reports first-request prefix, median/p90 context, cache share, and idle-gap cache rewrites. - Prefix anatomy: Breaks one session's prefix into exact character sizes per component (tool schemas, CLAUDE.md, agent listing, skill listing, MCP instructions, hooks) with tokens allocated from measured usage. - Ranked optimization levers: Produces threshold-based findings ordered by tokens saved per request, covering agent descriptions, instruction files, hooks, surface choice, and transcript growth. - Use Case: Run the audit after noticing high token bills, discover that oversized agent descriptions add 20k tokens per request, trim them, and verify the drop with a fresh session. ## Quick Start Ask the assistant to run the context cost audit script for the last 7 days and summarize which prefix components cost the most tokens.