Skip to content
romaingaspard edited this page Jun 17, 2026 · 4 revisions

prompt-analytics-for-claude-code — Wiki

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.

Documentation

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.

Clone this wiki locally