Repository navigation
Home
Petro Bykov edited this page Oct 6, 2026
·
2 revisions
How every number in the menu is calculated. One page per topic. Each page opens with the answer, then one formula, then one worked example.
| You want to know... | Read |
|---|---|
| What did this request cost? | Cost |
| Why does it say "150k context"? | Context and cost threshold |
| Is my cache warm right now? | Cache TTL |
| What is a "cold-cache restart"? | Cold-cache detection |
| Why is the menu orange or red, and what should I do? | Menu advice |
| What does the HTML session report add? | Session report |
-
Everything is local. Numbers come from
~/.claude/projects/**/*.jsonl. Nothing is sent anywhere. -
Prices live in
prices.json. These are USD per million tokens, copied from Anthropic's pricing page. -
Thresholds live in
config.json. Edit them from the menu with Edit thresholds.
- D = documented by Anthropic
- H = heuristic chosen by this project (not an Anthropic rule)
Source of truth: pricing.py, claude-usage.2m.py, session-report.py, ingest.py.
Start here
How it's calculated
What it tells you