context-tokens
by 0xBADC0FFEE · ★ 0 · updated 2 days ago
0
Shows the context tokens in use beside the prompt footer of the desktop app, green under 100k, yellow to 150k, red beyond. Needs function hooks (early access).
Install
/plugin marketplace add 0xBADC0FFEE/claude-code-mods/plugin install context-tokens@claude-code-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.starttool.callturn.completeui.render- API calls
$.session.usage$.state.get$.state.set$.ui.resolve- Draws
SessionMode- Can see
every tool call- Reach
- level 1 of 3 other: $.state.getother: $.state.setdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/0xBADC0FFEE/claude-code-mods
- Path in repo
context-tokens- Author
- @0xBADC0FFEE
- 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.