token-meter
by Miguel Ángel Durán (midudev) · ★ 284 · updated 6 days ago
Each turn's tokens and the session's running total, in color at the end of the hint line under the prompt.
Install
/plugin marketplace add midudev/better-claude/plugin install token-meter@better-claudeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startturn.completeui.render- API calls
$.state.get$.state.set$.ui.resolve- Draws
PromptHint- Reach
- level 1 of 3 reads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/midudev/better-claude
- Path in repo
plugins/token-meter- Source commit
5386e15the exact code the scan read- Author
- Miguel Ángel Durán (midudev) @midudev
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from midudev/better-claude
after
midudev/better-claude
A real prompt queue for Claude Code: /after runs it after the current task, without steering. See, reorder and remove queued tasks from a band and a live pane, in plain language.
context-meter
midudev/better-claude
The session's context window fill, right above the prompt: gray while there is room, yellow when it is time to /compact, red when a new session is better.
image-preview
midudev/better-claude
Hover a pasted [Image #N] to see the picture: above the prompt while you write, and on the prompts you sent.
narrator
midudev/better-claude
Click ⏸︎ narrator off in the footer, or /narrator, and after each turn Claude tells you out loud what it did, in your language, with the best free voice your system has: Siri's on macOS, Narrator's on Windows, speech-dispatcher's on Linux.
quick-peek
midudev/better-claude
The paths in Claude's replies become links: hover one to preview it, click it to show it in Finder.
sub-meter
midudev/better-claude
Your subscription usage at the bottom right of Claude Code: the 5-hour and weekly windows, taking turns, side by side or fixed on one of them.
think-hard
midudev/better-claude
Start a prompt with + and that turn thinks at max effort. Other prompts keep the session's effort.
time-machine
midudev/better-claude
Every turn that changes files is a git snapshot off your history: /timeline shows them and puts the working tree back as it was before any turn, Bash changes included. Undoable.
use-haiku
midudev/better-claude
Start a prompt with _ and that turn runs on Haiku, shown as you type, while it runs and under the answer.