What is guardrail?
guardrail is a Claude Code mod by tylergraydev that blocks hook-skipping git commands and live data operations that have no successful dry run first; you can allow one at a time. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | tylergraydev |
| Repository | tylergraydev/cc-mods |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Low risk (96/100) |
| Rank | #4,913 of 5,272 Claude Code mods; #509 in Security |
| Last commit | 2026-10-12 |
| Hooks | 6 events |
| Sees | Bash|PowerShell|Monitor calls |
| Draws on | AbovePrompt |
Is guardrail safe to install?
guardrail scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 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 |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.state.get | |
$.state.set | |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install guardrail?
- 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/tylergraydev/cc-mods claude plugin validate ./cc-mods/guardrail
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/tylergraydev/cc-mods && claude --plugin-dir ./cc-mods/guardrail
Or ask Claude to set it up
Paste this into Claude Code and it installs guardrail for you:
Install the "guardrail" Claude Code mod from https://github.com/tylergraydev/cc-mods/tree/main/guardrail. Run claude plugin validate on it first and show me what it can access before you enable it.
More from tylergraydev/cc-mods
This repository has at least 9 Claude Code mods on MCPMods.
- agent-deck: Live pane of the session's subagents: status, tool calls, answers, launch and nudge, spawn caps and model rules (Low risk)
- arcade: Tic-tac-toe, sudoku, tetris, video poker, blackjack and UNO in a side pane, playable by keyboard, mouse or an Xbox contr (Low risk)
- ask-on-auto-deny: When auto mode's classifier blocks a tool call, asks you above the prompt and lets you allow that exact call once (Low risk)
- booster-pane: Open pretend Pokémon TCG booster packs by set in a side pane: card art in the terminal, a collection and pull stats (Review before installing)
- cache-clock: A prompt-cache countdown in the status line, and a Compact / Handoff / Clear band once the cache has lapsed (Low risk)
- claim-check: Flags confident claims about prod, data, deployments and tickets that no query backed up in the same turn (heuristic) (Low risk)
- dev-doctor: Read-only environment checks on session start (bash on PATH, .NET SDK/runtime, ports, git locks, worktrees, Docker, AUTH (Review before installing)
- diff-viewer: Diff pane: what Claude changed this turn and this session, per file, plus git diff on demand (Low risk)