context-meter
by Dongmin Yu · ★ 3 · updated 2 days ago
0
Reads each model request's own usage, shows the real context fill above the prompt, vetoes an auto-compact the advisor's double-counted usage would fire, and sends the handoff nudge once at 80%.
Install
/plugin marketplace add AndrewDongminYoo/cc-agents-kit/plugin install context-meter@cc-agents-kitThen 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
turn.stepsession.compactprompt.submitsession.endui.render- API calls
$.session.append$.session.usage$.state.get$.state.set$.store.set$.ui.resolve$.ui.toast- Draws
AbovePrompt- Can see
compactionevery prompt- Reach
- level 2 of 3 drives Claudereads 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/AndrewDongminYoo/cc-agents-kit
- Path in repo
plugins/context-meter- Source commit
650646dthe exact code the scan read- Author
- Dongmin Yu @AndrewDongminYoo
- 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.