Home / Claude Code mods / Security / context-guard

context-guard

context-guard is a Claude Code mod by WIPexpert that when the session context passes a size threshold, asks whether to compact, start fresh, or keep going.

Updated 2026-10-29

What is context-guard?

context-guard is a Claude Code mod by WIPexpert that when the session context passes a size threshold, asks whether to compact, start fresh, or keep going. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
AuthorWIPexpert
RepositoryWIPexpert/mikeday-session-kit
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (92/100)
Rank#9,156 of 9,397 Claude Code mods; #919 in Security
LicenseMIT
Last commit2026-10-29
Hooks5 events
Seesonly the events it hooks
Draws onAbovePrompt, Spinner

Is context-guard safe to install?

context-guard scores 92/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 6 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 no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.list
$.command.register
$.command.rundrives Claude
$.prompt.submitdrives Claude
$.session.compactdrives Claude
$.session.surfaces
$.session.usage
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.invalidatedraws interface
$.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/WIPexpert/mikeday-session-kit
    claude plugin validate ./mikeday-session-kit/plugins/context-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add WIPexpert/mikeday-session-kit && claude plugin install context-guard@session-kit

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/WIPexpert/mikeday-session-kit/tree/main/plugins/context-guard. Run claude plugin validate on it first and show me what it can access before you enable it.