Claude Usage Analyst
Produce evidence-based usage explanations from local ccusage data. Separate observed numbers from interpretation; explain quota burn in human terms.
Workflow
- Verify
ccusageis available:ccusage --version. If missing,npm install -g ccusage@latestor run vianpx ccusage@latest. - Run the analyzer for the window:
--since YYYY-MM-DD --until YYYY-MM-DD --timezone <tz>. Default = today in the chosen timezone. For historical comparison set--sinceto an earlier date (e.g. first of month); otherwise rank/median fields describe only the single day. - For model comparison, pass aliases (
--model-a fable --model-b opus-4-8).
Evidence rules
- Base every numeric claim on
ccusageoutput, never memory. - State scope:
ccusage claudemeasures local Claude Code usage logs (including Claude Desktop's Claude Code sessions when local logs exist). It is NOT a full Claude.ai chat bill. - Report dates with timezone.
- Explain cache plainly: cache-read tokens are still quota pressure even though the user never typed them.
- Do not infer Anthropic plan quota rules from local token counts unless the user gives plan details. Say "quota-like pressure" or "ccusage-estimated cost/burn" when exact accounting is unknown.
- When comparing models, compare both token volume AND estimated cost — a model can have similar volume but higher cost.
Output shape
- Short plain-language conclusion.
- Evidence table: total tokens, cost, input, output, cache create, cache read.
- Model comparison table.
- 5-hour block table when quota exhaustion is discussed.
- Why the burn happened.
- Confidence and caveats.
Keep readable for non-technical users; translate terms like "cache read" in one sentence.