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, fork spawn and Write before it runs: a Write over a tracked file the session never read, a floor command, a system, overwrite, prune or remote-delete command, a.

Updated 2026-10-17

What is x-mod-guard?

x-mod-guard is a Claude Code mod by dvakatsiienko that reads every Bash call, fork spawn and Write before it runs: a Write over a tracked file the session never read, a floor command, a system, overwrite, prune or remote-delete command, a. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authordvakatsiienko
Repositorydvakatsiienko/frame
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (60/100)
Rank#3,115 of 5,272 Claude Code mods; #354 in Security
LicenseMIT
Last commit2026-10-17
Hooks3 events
Sees/"^(Bash|Monitor)$"/ calls, /"^(Edit|MultiEdit|Write)$"/ calls, /"^(Edit|Write|MultiEdit)$"/ calls, /"^(Read|Edit|MultiEdit|Write)$"/ calls, SendMessage calls, every prompt, subagent spawns
Draws onnothing

Is x-mod-guard safe to install?

x-mod-guard scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. 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 processes outside the sandboxReview
Writes no files or configPass
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
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads 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 (Review before installing)
  • 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 (High risk)