context-meter
by sp1e · ★ 0 · updated today
0
Context-window meter for every running Claude Code session, with Compact now, auto-compact and options
Install
git clone https://github.com/sp1e/context-meterclaude --plugin-dir ./context-meterThen 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.startcommand.runui.closeui.renderturn.startturn.completesession.compactsession.end- API calls
$.clock.after$.clock.every$.clock.now$.command.register$.command.run$.env.get$.fs.list$.fs.read$.fs.write$.process.run$.prompt.submit$.session.compact$.session.cwd$.session.id$.session.messages$.session.model$.session.usage$.state.get$.state.set$.ui.close$.ui.open$.ui.resolve- Draws
AbovePromptPane- Can see
compaction- Reach
- level 2 of 3 other: $.state.getother: $.state.setruns processeswrites filesdrives Claudereads filesreads env varsreads the transcriptdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/sp1e/context-meter
- Path in repo
- repository root
- Source commit
713149bthe exact code the scan read- Author
- @sp1e
- 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.