ClaudeCodeMod

All shelves / Mods / Usage

usage-stats

By connorchuang32

usage-stats is a Claude Code usage mod by connorchuang32.

Opens /usage-stats in the desktop app: a heat map of tokens per day, trends and models tabs, and a Wrapped-style card you can save as an SVG.

Draws

Install

The marketplace name is claude-usage-stats.

In Claude Code
/plugin install usage-stats --marketplace connorchuang32/claude-usage-stats
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
MIT
Repo stars
4
Last change
2026-10-25

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Calls another program on this machine

The desktop app; in a terminal session it shows a short note instead of charts. In the desktop app, add the marketplace connorchuang32/claude-usage-stats under Plugins, then Add plugin. From a shell: claude plugin install usage-stats --marketplace connorchuang32/claude-usage-stats. It reads ~/.claude/stats-cache.json, which the terminal /stats keeps, so run /stats once first. The scan of newer days takes 5 to 10 seconds and needs python3. Built and tested on a Mac.

The marketplace name is claude-usage-stats, and it holds only this plugin. A history of tokens by day and model is why this page files it under usage. heatmap draws a GitHub-style grid of your Claude Code time in a pane. wrapped opens a Wrapped-style card of your use with a coding persona. This one puts the terminal /stats screen beside the chat in the desktop app, with a 7d, 30d, 90d, or All switch and a chip per model, and gives no dollar estimate. The author's screenshots use made-up sample data. In the source, the dashboard is a Pane render.

Demo

The author's screenshot of /usage-stats, made with sample data: a Daily activity heat map of tokens per day from May to October, then 8.87b tokens in the last 30 days, 247 sessions, 25 active days of 30, and a streak of 1 with a best of 27 days, over cards for the biggest day, the longest session, the prompts and replies counted in Harry Potter books, the most active hour, the cache hit rate, and the favorite day. The README says the figures are made up.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/usage-stats
  • ui.renderDraws into the sessionPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /usage-statsOpen the usage dashboard: heat map, trends, models and a year-in-review card

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
connorchuang32
Category
Usage
Marketplace
claude-usage-stats
Repo
connorchuang32/claude-usage-stats
Version
0.1.0
License
MIT
Repo stars
4
Last change
2026-10-25
Language
TypeScript
Files
13

Other mods in Usage

session-infodougcunhaHolds a commandOpens a pane of the session: context, cost, prompt cache, plan usage, agents, checks, CI runs, and Git, and holds a prompt that would rewrite an expired cache.ccbaremaballarinDraws a quiet band above the prompt: model and effort, the GitHub repo and branch with lines changed, a context bar split as /context, tokens, and plan limits.token-monitor-hudfractal-manifoldDraws the 5-hour and 7-day windows above the prompt with reset times and where each lands at this pace, plus Codex and Antigravity quotas if they're signed in.cost-ledgerFynnXlandKeeps a ledger of what every chat cost, plus other mods' model calls, and draws /ledger: today, 7 and 30 days, projects, top chats, models, and plan limits.limit-barsFynnXlandDraws the 5-hour and weekly limits as two slim bars above the prompt, a ring for how long the prompt cache stays warm, and asks before a costly cold send.claude-loadGerruxOpens a /load pane of CPU and memory per Claude Code session, with orphaned dev servers you can end, and draws a load line above the prompt under high load.smart-compacthellosverreOffers /compact in a dialog above the prompt at good moments: after a commit, when tests go green, before the prompt cache expires, or when Claude asks.tideHula-Hoop-AIDraws the context window as a tide above the prompt: a fill bar by phase, a sparkline of recent turns, the rise per turn, and turns left before compaction.cache-ttl-statuslineJerrettDavisDraws session, plan-limit, and Headroom lines with model, cost, context, and a cache TTL that turns yellow then red, below the prompt or, in mod mode, above it.usage-meterLeeHigma0201Shows context fill, the 5-hour and 7-day plan windows, and session cost on the status line, and toasts when a plan window crosses 80% and 95%.subagent-meterNarenDawarShows on the status line how many subagents ran, their share of output tokens and of all tokens, and the agent type that used the most.usage-weatherptpmediabrDraws one line above the prompt with the context as a weather icon, the 5-hour and weekly limits with resets, cache warmth, and a Clear & continue button.
All 183 in Usage