ClaudeCodeMod

All shelves / Mods / Usage

token-meter

By midudev

token-meter is a Claude Code usage mod by midudev.

Ends the hint line under the prompt with the last turn's input, output, and cache tokens, and the session's running total, in color.

Draws

Install

The marketplace name is better-claude.

In Claude Code
/plugin marketplace add midudev/better-claude
/plugin install token-meter@better-claude
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
194
Last change
2026-10-22

What it can reach

  • Draws in the session
  • Reads usage or context figures

After each turn, the hint line under the prompt ends with ↑ input in blue, ↓ output in green, and cache, the tokens read from or written to the prompt cache, in Claude orange. The session total is dim, and it starts over when the session starts. The author says the status line only takes plain text, so the meter draws in the hint line to have colors.

The marketplace name is better-claude. The marketplace also holds after, use-haiku, think-hard, sub-meter, context-meter, image-preview, commit, narrator, and time-machine. This one installs on its own. The token counts are why this page files it under usage. turn-footer draws tool calls, subagents, requests, tokens, and cache hit rate under each answer. token-ledger pins this session's cost and the last turn's tokens and cache hit. This one adds only the token counts, in color, to the hint line.

Demo

The opening of the Token Meter README: the hint line ending with the turn's input, output, and cache tokens and the session total.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionPromptHint

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

Files

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

Facts

Author
midudev
Category
Usage
Marketplace
better-claude
Repo
midudev/better-claude
Folder
plugins/token-meter
Version
0.1.0
License
MIT
Repo stars
194
Last change
2026-10-22
Language
TypeScript
Files
7

Other mods in Usage

use-haikumidudevRuns a prompt that starts with _ on Haiku, subagents included, and shows it as you type, while it runs, and under the answer.agent-usage-guardrbartoliHolds a commandAsks before a subagent starts, a heavy prompt is sent, or a tool loop runs on, from the 5-hour and weekly usage, and refuses when nobody can answer.optim-jevOqura-aiHas TypeSafe's Jev drop stale tool calls and their output when the session compacts, keeping the rest word for word, and draws a dashboard above the prompt.secondwindorchetronCompresses Bash output of 512 bytes or more through the local secondwind binary, keeps the full text one call away, and draws a pane of the net tokens saved.session-hudbradtraversyDraws a strip above the prompt with the git branch, warned on main, context used against a target you set, and weekly usage, and a Details pane of the rest.time-blamekaranb192Splits each turn's time between Claude, each tool, your approvals, and the rest, under the answer, and /blame opens a panel of the whole session's split.subagent-tunerKruhlikauHolds a commandPicks each subagent's model and effort by asking you in a pane, from a recommendation for the task, or from your saved default, with a band above the prompt.cockpitdrkokorevHolds a commandOpens a panel beside the transcript with context, rate limits, cost, subagents, tool calls, changed files, and tests, and asks before rm -rf or a force push.cache-refresherolddonkeyDraws a bar above the prompt with the time until the prompt cache expires and what a rebuild would cost, and can refresh the cache while you are away.context-alertnathanonnOpens a question dialog when the context window reaches 40 percent, offering to write a handoff doc and then compact, write one only, or compact now.stintdigital-stoic-orgDraws a band above the prompt with context fill, plan headroom, and the stint count, and /pit saves notes, clears, and starts the fresh context from them.orca-movemutlumehmetMoves a session to a twin account as one nears its usage limit: it runs /exit once the prompt box is empty, or shows a toast asking you to clear it.
All 183 in Usage