Home / Claude Code mods / Security / x-mod-guard

x-mod-guard

x-mod-guard is a Claude Code mod by dvakatsiienko that reads every Bash call before it runs and refuses only the destructive floor — rm, a kill by pattern, a git discard or rewrite, a skipped gate, a live seat's close, a raw merge, a stash.

Updated 2026-11-30

What is x-mod-guard?

x-mod-guard is a Claude Code mod by dvakatsiienko that reads every Bash call before it runs and refuses only the destructive floor — rm, a kill by pattern, a git discard or rewrite, a skipped gate, a live seat's close, a raw merge, a stash. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authordvakatsiienko
Repositorydvakatsiienko/frame
Popularityno public popularity data yet
CategorySecurity
SecurityHigh risk (48/100)
Rank#5,754 of 9,397 Claude Code mods; #638 in Security
LicenseMIT
Last commit2026-11-30
Hooks2 events
Sees/"^(Bash|Monitor)$"/ calls, /"^(Edit|Write|MultiEdit)$"/ calls, ? calls, Read calls, every prompt
Draws onnothing

Is x-mod-guard safe to install?

x-mod-guard scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 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 processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.clock.sleep
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.process.runruns processes
$.session.cwd
$.session.id
$.session.root
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.logdraws interface

How do I install x-mod-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/dvakatsiienko/frame
    claude plugin validate ./frame/home/.claude/plugin-x/mods/x-mod-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/dvakatsiienko/frame && claude --plugin-dir ./frame/home/.claude/plugin-x/mods/x-mod-guard

Or ask Claude to set it up

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

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

More from dvakatsiienko/frame

This repository has 4 Claude Code mods on MCPMods.

  • x-mod-holds: no two sessions write the same file: a session's first edit of a file holds it until it is committed, the session ends o (High risk)
  • x-mod-redact: keeps secrets out of every transcript: api keys, tokens and private keys read as a stable placeholder in every kept row, (Low risk)
  • x-mod-stash: dima's command center above the prompt, one row: orbit 🪐 (the session's asks, ticked in the board instead of pasted, and (Low risk)