token-meter

Reviewed at commit 249f0f6

Each turn's tokens and the session's running total, in color at the end of the hint line under the prompt.

What we checked

Shows the tokens used by the last turn (in, out, cached) and the running session total at the end of the hint line under the prompt. It only reads the usage numbers of each finished turn, and makes no network calls, runs no programs and reads no files.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since f8d2c37; the rest carries over from the review at that commit. Registers session.start (resets the counters), turn.complete (reads e.usage token counts and adds them up) and ui.render for the PromptHint component (appends a coloured Text row after the engine's own hint). The counters live in plugin state atoms and no content of prompts or answers is touched. This version only changes number formatting (one decimal, rounding half up, units k, M and B) and treats a missing token count as zero instead of NaN. No external calls, no files, no 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: no
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for token-meter

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/token-meter.svg)](https://modsforclaude.com/mods/token-meter/)

← All mods