Claude Code mod
context-guard
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-modsMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: writes files, drives Claude, writes the prompt box, reads files, reads the transcript, reads mod state, persists state, draws
- Sees
- the system prompt
- Draws in
AbovePrompt- Hooks
session.startcommand.runsession.measureprompt.contextui.render
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- Wvduijn/wd-claude-mods
- Folder
plugins/context-guard- Marketplace
wd-mods- Author
- WD.
- Last updated
- 13 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is context-guard?
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 a mod for Claude Code, from Wvduijn/wd-claude-mods on GitHub.
What can the context-guard mod access?
Its widest reach is "writes or runs" (writes files, drives Claude, writes the prompt box, reads files, reads the transcript, reads mod state, persists state, draws). It sees the system prompt. It draws in AbovePrompt. Like any mod, it runs with your permissions.
How do I install context-guard?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add Wvduijn/wd-claude-mods and then /plugin install context-guard@wd-mods.
More context & usage mods
context-graph
warrendeanlangeveldt/context-graph
Gives AI coding agents the why behind a codebase before they edit: file cards and decision history before reads, read-before-edit, context slices before edits, cards and decisions recorded after, and context observation for any repository
context-guard-bot
ryannorman-6494/context-guard-bot
A permanent, slim context-usage bar above the prompt with a chomping Pac-Man and a 10px bar; green under 20%, amber 20-30%, red past 30%, munching faster each zone, with an Xplorer-themed line per tier
context-git-band
mlabo-org/context-git-band
Claude Code mod: one line above the prompt with the context window fill (weather, with a compact button beside it), the subscription quota left (5-hour and weekly gauges) and the git state
context-handoff
Gat0rRex/claude-mods
Tells the model when the context passes 250k tokens (heads-up) and 300k (hand off), so it finishes the task it's on and then hands off to a fresh session instead of starting another.
context-gauge
youngin-abel-kim/context-gauge
A gauge above the prompt: the context window broken down by category, as /context breaks it down.
context-hud
MiCat-S/context-hud
One-line usage HUD above the prompt: 5-hour session, weekly, per-model (Fable) windows and the prompt cache, each a ring beside a short line of text.
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.