All Claude Code modsnevermemo/token-watch
token-watch
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.
token-watch reaches L2 (writes or runs) and passed claude plugin validate with warnings.
- Events hooked: 10
- API methods referenced: 29
- Access from classified calls: L2, writes or runs: runs processes, writes files, drives Claude, reads files, reads env vars, reads settings, reads mod state, persists state, draws
- Reads mod state: the scan does not record whose state, so this does not show that it reads another mod’s values
- Static scan, not a runtime test
To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.
Access
L2 Writes or runsruns processes, writes files, drives Claude, reads files, reads env vars, reads settings, reads mod state, persists state, drawsValidation
Passed with warningsListed under Prompt cache mods for Claude Code, Context and usage meters for Claude Code.
View the source on GitHub Back to the list
What the scan recorded
- Observed events
- every prompt, compaction
- Hooks
session.start, session.measure, turn.start, turn.complete, prompt.submit, session.compact, session.end, command.run {command=token-watch}, ui.message, ui.render {component=Pane, requestId=token-watch-settings}, ui.render {component=Pane, requestId=token-watch-monitor}, ui.render {component=AbovePrompt}- 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- Surface modules
hooks/band.tsx- Validation
- Passed with warnings
- Scanned revision
8e7a8bc04f35
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/nevermemo--token-watch--token-watch/)
[](https://mods.aidojo.si/mods/nevermemo--token-watch--token-watch/)