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.
| Type | Claude code mod |
|---|---|
| Author | mishgoldenberg |
| Repository | mishgoldenberg/claude-mods |
| Popularity | 9 GitHub stars |
| Category | Security |
| Security | Low risk (100/100) |
| Rank | #551 of 5,272 Claude Code mods; #75 in Security |
| License | MIT |
| Last commit | 2026-10-06 |
| Stars this week | +3 |
| Hooks | 4 events |
| Sees | every tool call |
| Draws on | Pane |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.session.cwd | |
$.session.root | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install guardrails?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)