context-guard
by Galih Citta · ★ 0 · updated yesterday
0
Context runway gauge: warns before your context line with Compact, Hand off and Snooze
Install
git clone https://github.com/galihcitta/claude-mod-garageclaude --plugin-dir ./claude-mod-garage/context-guardThen 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.measureturn.completesession.compacttool.callsession.endui.render- API calls
$.clock.after$.clock.now$.command.register$.command.run$.process.run$.session.compact$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePrompt- Can see
compactionevery tool call- Reach
- level 2 of 3 other: $.state.getother: $.state.setruns processesdrives Claudepersists 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/galihcitta/claude-mod-garage
- Path in repo
context-guard- Source commit
358140fthe exact code the scan read- Author
- Galih Citta @galihcitta
- License
- No license declared — ask the author before reusing code.
- 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.