token-sparkline
by Plagemes · ★ 8 · updated 15 Oct 2026
A sparkline of tokens per turn right above the prompt.
Install
/plugin marketplace add Plagemes/claude-mods/plugin install token-sparkline@claude-modsThen 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.completecommand.runui.render- API calls
$.clock.after$.command.register$.fs.read$.mods.hello$.mods.mode$.mods.registerTab$.state.get$.state.set$.store.get$.store.set$.ui.log$.ui.resolve- Draws
AbovePrompt- Reach
- level 1 of 3 reads filesreads mod statepersists statedrawsother: $.mods.helloother: $.mods.modeother: $.mods.registerTab
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Plagemes/claude-mods
- Path in repo
mods/token-sparkline- Source commit
e9815cethe exact code the scan read- Author
- @Plagemes
- 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 Plagemes/claude-mods
tool-timeline
Plagemes/claude-mods
A timeline pane of every tool call with duration, status and input summary.
tracker-guard
Plagemes/claude-mods
Blocks adding analytics and tracking SDKs that haven't been approved.
turn-timer
Plagemes/claude-mods
Times every turn and tells you when one runs long.
typecheck-gate
Plagemes/claude-mods
Type-checks the project at the end of every editing turn so errors never slip by.
url-allowlist
Plagemes/claude-mods
Restricts WebFetch to the domains you allow.
venv-guard
Plagemes/claude-mods
Blocks pip install outside an active virtualenv so system Python stays clean.
vuln-scan
Plagemes/claude-mods
After installs, runs npm audit or pip-audit and shows any vulnerabilities in a pane.
watch-mode-guard
Plagemes/claude-mods
Blocks watch-mode and never-ending commands run in the foreground, where they'd hang the turn.
web-trail
Plagemes/claude-mods
/sources lists every page Claude fetched or searched this session.
webhook-notify
Plagemes/claude-mods
Posts to Slack, Discord, Teams or ntfy when a long task finishes.
whatsapp-bridge
Plagemes/claude-mods
Lets Claude keep you posted on WhatsApp — progress, problems, reports, questions — and lets you steer every session from your phone, through one self-hosted OpenWA number.
why-log
Plagemes/claude-mods
Records why each file was changed; /why shows the reasoning behind any file's edits.
Related mods
Other mods in Bands, close to this one by stars.