Home / Claude Code mods / Security / context-guard

context-guard

context-guard is a Claude Code mod by Wvduijn that 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.

Updated 2026-10-13

What is context-guard?

context-guard is a Claude Code mod by Wvduijn that 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. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
AuthorWvduijn
RepositoryWvduijn/wd-claude-mods
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (76/100)
Rank#9,207 of 9,397 Claude Code mods; #921 in Security
Last commit2026-10-13
Hooks5 events
Seesthe system prompt
Draws onAbovePrompt

Is context-guard safe to install?

context-guard scores 76/100 on the MCPMods security check: Review before installing. Things to review: writes files or config. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.command.rundrives Claude
$.fs.readreads files
$.fs.writewrites files
$.model.completedrives Claude
$.model.forkdrives Claude
$.prompt.fillwrites the prompt box
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.logdraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install context-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/Wvduijn/wd-claude-mods
    claude plugin validate ./wd-claude-mods/plugins/context-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add Wvduijn/wd-claude-mods && claude plugin install context-guard@wd-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs context-guard for you:

Install the "context-guard" Claude Code mod from https://github.com/Wvduijn/wd-claude-mods/tree/main/plugins/context-guard. Run claude plugin validate on it first and show me what it can access before you enable it.