token-usage
Reviewed
at commit 8b6a387
5h / 7d usage, token totals and cost pills above the prompt
0 upvotes
Log in to upvote or save- Made by
- letswritetw
- Pinned commit
-
8b6a38781314a9bfda86527148f5cb87cb95fcfd - What we checked
-
Shows your 5-hour and 7-day usage limits with reset countdowns, plus running totals of input, output and cached tokens and the session cost, as small pills above the prompt. It only reads figures Claude Code already reports, makes no network calls, reads no files and runs no programs. The labels and tooltips are in Traditional Chinese.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (redraw every 5 minutes), session.measure (rate limit percentages, reset times, cost), turn.complete (adds the turn's token usage to in-session totals) and ui.render for the AbovePrompt band, drawn as an SVG strip when the host supports it, else a text line. Uses $.clock, $.ui.resolve and in-session state atoms only. No network, file, process or model calls; all handlers pass the event on unchanged. A waiting placeholder is shown until the first response. No npm dependencies.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/token-usage/)