Home / Claude Code mods / Security / guardrails

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.

Updated 2026-11-30

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.

TypeClaude code mod
AuthorEgoushka
RepositoryEgoushka/claude-mods
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (68/100)
Rank#5,792 of 9,397 Claude Code mods; #645 in Security
LicenseMIT
Last commit2026-11-30
Hooks5 events
Seesevery prompt, every tool call
Draws onnothing

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.model.classifydrives Claude
$.model.forkdrives Claude
$.process.runruns processes
$.session.root
$.state.get
$.state.set
$.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/Egoushka/claude-mods
    claude plugin validate ./claude-mods/mods/guardrails
  3. 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)