token-watch

by Kadir Mert Okumus · ★ 1 · updated 26 Oct 2026

PanesBandsCommandsPromptwarnings

0

Plan usage, the context window and the prompt cache countdown as a banner above the Claude Code prompt, with burn rates, alerts and an opt-in keep-warm. TW Settings picks what it shows; TW Monitor lists every session's context and cache. /token-watch hides the banner, or prints it as text where it can't be drawn.

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.measureturn.startturn.completeprompt.submitsession.compactsession.endcommand.runui.messageui.render
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.model.fork$.process.run$.session.cwd$.session.id$.session.root$.session.surfaces$.session.usage$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.close$.ui.notify$.ui.open$.ui.panes$.ui.resolve
Draws
PaneAbovePrompt
Can see
every promptcompaction
Reach
level 2 of 3 runs processeswrites filesdrives Claudereads filesreads env varsreads settingsreads 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
8e7a8bc 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.

Other mods in Panes, close to this one by stars.