SuperAPIAI Directory

ctx-receipt vs Claude Code Best Practices

Metrics & specs comparison

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.

Claude Code Best Practices

Claude Code Best Practices is a usage guide from the official Claude Code documentation. Centered on how to make Claude Code complete development tasks more efficiently, it proposes three core principles: tell Claude the information it cannot see, give it a runnable check, and enforce rules that admit no exceptions. The document also introduces the difference between deterministic and non-deterministic instructions, key points for writing CLAUDE.md, constraining behavior with hooks and permission rules, handling tasks in parallel through subagents, controlling cost and context, and methods for running Claude Code as scripts or automation.

Dimensionctx-receiptClaude Code Best Practices
CategoryAI codingAI coding
Monthly visits—
140.4M
MoM—+24.5%
Global rank—#334
Avg. visit—2m 14s
AI referrals—26.7%
Pricing开源项目(可免费自部署)—
PlatformsLinuxWeb
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools