context-guard
by anthonyhungnguyen · ★ 0 · updated 4 days ago
Context window fill in the status line, with a heads-up before it runs out
Install
git clone https://github.com/anthonyhungnguyen/claude-code-modsclaude --plugin-dir ./claude-code-mods/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.startturn.complete- API calls
$.session.usage$.state.get$.state.set$.ui.status$.ui.toast- Reach
- level 1 of 3 other: $.state.getother: $.state.setdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/anthonyhungnguyen/claude-code-mods
- Path in repo
context-guard- Author
- @anthonyhungnguyen
- 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.
More from anthonyhungnguyen/claude-code-mods
cache-watch
anthonyhungnguyen/claude-code-mods
Toast when a turn rebuilt the prompt cache, with what it cost and the likely cause
cost-pane
anthonyhungnguyen/claude-code-mods
Pane of token and USD spend: this session, today, last 7 days
turn-timer
anthonyhungnguyen/claude-code-mods
Speaks and toasts when a long turn finishes