context-meter

by sp1e · ★ 0 · updated today

PanesBandsCommandsvalidates

0

Context-window meter for every running Claude Code session, with Compact now, auto-compact and options

install context-meter

Install

git clone https://github.com/sp1e/context-meter
claude --plugin-dir ./context-meter

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.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
713149b the 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.