context-gauge
by Ben Newton · ★ 0 · updated 2 days ago
Context-window gauge with a pre-compaction warning, and a log of what was in flight at each compaction
Install
/plugin marketplace add bennewton999/claude-code-mods/plugin install context-gauge@bennewton-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.startcommand.runsession.measureprompt.submittool.callturn.completesession.compactui.render- API calls
$.clock.now$.command.register$.session.compact$.session.id$.session.messages$.session.usage$.store.delete$.store.get$.store.keys$.store.set$.ui.invalidate$.ui.log$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePrompt- Can see
every promptevery tool callcompaction- Reach
- level 2 of 3 drives Claudereads the transcriptpersists 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/bennewton999/claude-code-mods
- Path in repo
context-gauge- Source commit
5db0813the exact code the scan read- Author
- Ben Newton @bennewton999
- 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.
More from bennewton999/claude-code-mods
session-activity
bennewton999/claude-code-mods
Side-effects ledger (/ledger) with a hold on production SQL writes, and a waiting-on tracker for background work
session-fleet
bennewton999/claude-code-mods
Fleet board of live sessions, a needs-you beacon, and a worktree claim guard, shared across sessions
session-hygiene
bennewton999/claude-code-mods
Tripwires for Ben's memory rules, and a handoff card of open loops left by earlier sessions
ship-tracker
bennewton999/claude-code-mods
Ship-pipeline band (PR, CI, merge, prod deployment, live) and a receipt line under each turn