Home / Claude Code mods / Security / guardrails

guardrails

guardrails is a Claude Code mod by mishgoldenberg that clickable safety rules with presets: block rm -rf, force-push, destructive git, secret files, sudo, installs, network; lock Claude to the project folder or read-only; add your own block.

Updated 2026-10-06

What is guardrails?

guardrails is a Claude Code mod by mishgoldenberg that clickable safety rules with presets: block rm -rf, force-push, destructive git, secret files, sudo, installs, network; lock Claude to the project folder or read-only; add your own block. It is listed under Security and has 9 GitHub stars.

TypeClaude code mod
Authormishgoldenberg
Repositorymishgoldenberg/claude-mods
Popularity9 GitHub stars
CategorySecurity
SecurityLow risk (100/100)
Rank#551 of 5,272 Claude Code mods; #75 in Security
LicenseMIT
Last commit2026-10-06
Stars this week+3
Hooks4 events
Seesevery tool call
Draws onPane

Is guardrails safe to install?

guardrails scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.session.cwd
$.session.root
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install guardrails?

  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/mishgoldenberg/claude-mods
    claude plugin validate ./claude-mods/plugins/guardrails
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add mishgoldenberg/claude-mods && claude plugin install guardrails@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs guardrails for you:

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

More from mishgoldenberg/claude-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • activity: Live panel of what Claude is doing: running tools with real commands and timers, what is waiting for your approval, suba (Low risk)
  • changes: Every file Claude created or edited this session, with +/- line counts from git and one-click 'why?', summary and self-r (Low risk)
  • command-hub: Discover slash commands: essentials explained in plain language, searchable list of everything installed, a form to crea (Review before installing)
  • context-keeper: Live context-window panel: what fills it, checkpoints before you compact or clear, and nudges before you hit the wall. (Low risk)
  • loop-breaker: Notices when Claude is going in circles (the same command failing again and again, the same code rewritten over and over (Low risk)
  • mod-manager: Pick which claude-mods you want: install, turn on or off, update, or remove each mod from one panel (/mods), with preset (Review before installing)
  • notify: Notification inbox + native OS notifications when a long turn ends, a subagent or background task finishes, or Claude is (Review before installing)
  • prompt-coach: Before a vague prompt is sent, suggests a sharper rewrite; you choose: send improved, send yours, or edit the suggestion (Low risk)