What is guardrails?
guardrails is a Claude Code mod by Egoushka that boundaries, secret masking, a second opinion before irreversible commands, shell autocorrect, loop breaker, diff budget. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Egoushka |
| Repository | Egoushka/claude-mods |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Review before installing (68/100) |
| Rank | #5,792 of 9,397 Claude Code mods; #645 in Security |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 5 events |
| Sees | every prompt, every tool call |
| Draws on | nothing |
Is guardrails safe to install?
guardrails scores 68/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.model.classify | drives Claude |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.session.root | |
$.state.get | |
$.state.set | |
$.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/Egoushka/claude-mods claude plugin validate ./claude-mods/mods/guardrails
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Egoushka/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/Egoushka/claude-mods/tree/main/mods/guardrails. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Egoushka/claude-mods
This repository has at least 9 Claude Code mods on MCPMods.
- cli-tools: Turn shell commands into typed tools the model sees from the first turn (Low risk)
- cockpit: A live pane for what surrounds the session: cost, context, git, PR checks, your own gauges, an inbox for messages from o (Review before installing)
- forge: Claude proposes a new mod; nothing is written until you approve it in a dialog. Also suggests a mod when the same tool-c (Review before installing)
- ledger: Active hours per repo with a /hours pane, CSV export and a monthly goal line; drafts a build-in-public post when you mer (High risk)
- ratewatch: One toast when a usage window (5-hour or weekly) passes 80%, with the sessions that spent the most (Review before installing)
- recall: Context you would otherwise retype: memory recall per prompt, smarter @-mentions, repeated-correction rules, a friction (High risk)
- redline: A row above the prompt that appears only when something is red: a failing check on this branch's PR, or your own health (Low risk)
- replay: Scrub through a session's file changes turn by turn, each drawn as a unified diff (Low risk)