ashlr

/ashlr-dashboard

Rich token-savings dashboard with per-tool bars, 7-day and 30-day sparklines, an annual projection and top projects.

When to use

When you want more than /ashlr-savings shows: lifetime savings by tool, activity over the last 30 days, a projection, and which projects use ashlr most.

What it does

Runs bun run ${CLAUDE_PLUGIN_ROOT}/scripts/savings-dashboard.ts and prints its output verbatim in a code block. The script reads ~/.ashlr/stats.json and ~/.ashlr/session-log.jsonl and renders, in order:

  1. The ashlr banner and a today-vs-yesterday line (skipped when the numbers are quiet)
  2. Session, lifetime and best-day tiles
  3. Per-tool lifetime savings: bar, tokens, tokens per call and share
  4. Where savings come from, and a 7-day adoption funnel (both read the session log)
  5. Activity sparklines for the last 7 and 30 days
  6. Projected annual savings: 30-day rolling × 12, active days × 220, and calls
  7. Top 3 projects by call count, from the session log
  8. Hook performance, upgrade nudge and streak panels, when there is data for them
  9. A footer with the stats path, pricing model and saved/raw ratio

Colors are used only when the terminal reports truecolor and NO_COLOR is unset. Pass --by-tool to /ashlr-dashboard to also append the per-tool report from scripts/session-log-report.ts under a ## By tool heading.

With no stats.json yet, it prints the banner and no savings recorded yet. The projection needs at least 3 active days in the last 30.

Output (excerpt)

Rendered from a small sample stats file, with NO_COLOR=1:

  per-tool savings (lifetime)

  ashlr__read       ████████████████████████    35.3K     490/call   62%
  ashlr__grep       ██████████▉░░░░░░░░░░░░░    15.9K     371/call   28%
  ashlr__edit       ███▉░░░░░░░░░░░░░░░░░░░░     5.7K     196/call   10%
  ············································································

  activity sparklines

  last 7d   ▂▅▇▄▁▅▃  total 42.9K  active 6/7d
             ^  peak 11-18 (12.8K)
  last 30d  ▁▁▁▁▁▁▁▁▁▁▁▁▁▄▁▄▃▇▁▅  total 56.9K  active 8/30d
  ············································································

  projected annual savings

  30d rolling × 12        692.3K tok/yr  ~$1.73
  active-day × 220         1.56M tok/yr  ~$3.91
  calls extrapolation       3960 calls/yr

  projection based on last 30d average — may vary.
  ············································································

  top projects

  1. api                         16x  ████████████ 3 tools
  2. site                         6x  ████▌░░░░░░░ 2 tools

  ~/.ashlr/stats.json · sonnet-4.6 $2.5/M · saved/raw 33%

Dollar figures use the input price of the pricing model: ASHLR_PRICING_MODEL, then CLAUDE_CODE_MODEL, then sonnet-4.6 ($2.50 per million tokens). See Environment variables.

On this page