cc-cost
Single-file Python CLI that parses Claude Code transcript JSONL and reports cost, prompt-cache hit rate, tool-call distribution, top expensive turns, and actionable optimization recommendations (`--diagnose`).
Metrics & specs comparison
Single-file Python CLI that parses Claude Code transcript JSONL and reports cost, prompt-cache hit rate, tool-call distribution, top expensive turns, and actionable optimization recommendations (`--diagnose`).
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.
| Dimension | cc-cost | Claude Code Best Practices |
|---|---|---|
| Category | AI coding | AI coding |
| Monthly visits | — | 140.4M |
| MoM | — | +24.5% |
| Global rank | — | #334 |
| Avg. visit | — | 2m 14s |
| AI referrals | — | 26.7% |
| Pricing | 开源项目(可免费自部署) | — |
| Platforms | Linux | Web |