token-watch

by Kadir Mert Okumus · ★ 1 · updated 9 days ago

BandsCommandsvalidates

0

Plan usage (5-hour, weekly and any model window) and the context window as thin bars above the prompt. Right-click to collapse to one line; /context-bar to hide, or to read it as text where nothing draws.

install token-watch

Install

git clone https://github.com/nevermemo/token-watch
claude --plugin-dir ./token-watch

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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.startsession.measurecommand.runui.messageui.render
API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.stat$.fs.write$.session.cwd$.session.id$.session.surfaces$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve
Draws
AbovePrompt
Reach
level 2 of 3 writes filesreads filesreads env varsreads mod statepersists 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/nevermemo/token-watch
Path in repo
repository root
Source commit
c377e21 the exact code the scan read
Author
Kadir Mert Okumus @nevermemo
License
Apache-2.0
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.