context-guard
by WD. · ★ 0 · updated 13 Oct 2026
0
Live context meter above the prompt; asks Yes/No to save a handoff and clear when the window fills, and feeds that handoff into the next session
Install
/plugin marketplace add Wvduijn/wd-claude-mods/plugin install context-guard@wd-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.contextui.render- API calls
$.clock.now$.command.register$.command.run$.fs.read$.fs.write$.model.complete$.model.fork$.prompt.fill$.session.cwd$.session.id$.session.messages$.state.get$.state.set$.store.delete$.store.get$.store.set$.ui.log$.ui.resolve$.ui.toast- Draws
AbovePrompt- Can see
the system prompt- Reach
- level 2 of 3 writes filesdrives Claudewrites the prompt boxreads filesreads the transcriptreads mod statepersists 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/Wvduijn/wd-claude-mods
- Path in repo
plugins/context-guard- Source commit
4895c1cthe exact code the scan read- Author
- WD. @Wvduijn
- 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.