-
Notifications
You must be signed in to change notification settings - Fork 2
Home
romaingaspard edited this page Jun 17, 2026
·
4 revisions
Per-prompt cost & token analytics for Claude Code, straight from your local
~/.claude/projects/**/*.jsonl logs. No account, no API key, nothing leaves your
machine. A terminal CLI plus an optional Streamlit dashboard, with token
totals reconciled against ccusage.
- 📦 Repo: https://github.com/romainfjgaspard/prompt-analytics-for-claude-code
▶️ Live demo: https://prompt-analytics-demo.streamlit.app- 🐍 PyPI: https://pypi.org/project/prompt-analytics-for-claude-code/
| Page | What's inside |
|---|---|
| Architecture | The big picture: data-flow diagram, modules, the CSV data model, key design decisions. |
| Codebase Guide | Start here to understand or change the code — module-by-module map, "to change X look here", how to run / test / extend. |
| CLI Commands | Every command and its flags, grouped by purpose. |
| Dashboard | The Streamlit dashboard: install, run, pages, cross-filters, theme. |
| Prompt Categories | What each prompt category means and how the heuristic / LLM classifiers assign it. |
| Accuracy and Pricing | Why the numbers are trustworthy (dedup, ccusage reconciliation) and how pricing works. |
New to the code (or coming back to it)? Read Codebase Guide first, then Architecture for the data model and design decisions.