ctx-receipt
ctx-receipt is a local command-line tool for estimating the number of tokens that AI coding assistants (such as Claude Code, Codex CLI, Cursor, and Gemini CLI) preload into context before user input. It scans the project and user configuration to find preloaded content such as rule files, skill descriptions, and MCP server definitions, and generates a "token receipt." All counts are offline estimates using the o200k_base tokenizer and differ from the results of each assistant's own tokenizer. The tool supports generating SVG cards, Markdown reports, or JSON output, and can check context budgets in CI. It is read-only, does not access the network, collects no telemetry, and does not print secrets from MCP configurations.