What is guardrails?
guardrails is a Claude Code mod by bharath-gp that safety and review of Claude's output, helped by local decision models. Mods: blast-radius, secret-sentry, reflect (/reflect-queue, /reflect-pause), assumption-tracker (/assumptions),. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | bharath-gp |
| Repository | bharath-gp/ai-harness |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | High risk (32/100) |
| Rank | #5,144 of 9,397 Claude Code mods; #586 in Security |
| License | MIT |
| Last commit | 2026-11-27 |
| Hooks | 10 events |
| Sees | AskUserQuestion calls, Bash calls, Edit calls, NotebookEdit calls, Write calls, classic hooks, every prompt, subagent spawns |
| Draws on | AskUserQuestion, AbovePrompt, Pane |
Is guardrails safe to install?
guardrails scores 32/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 1 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 |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| 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 |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.http.fetch | network requests |
$.model.complete | drives Claude |
$.process.run | runs processes |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.prompt.submit | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.model | |
$.session.root | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
$.ui.close | draws interface |
$.ui.copy | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.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/bharath-gp/ai-harness claude plugin validate ./ai-harness/plugins/guardrails
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add bharath-gp/ai-harness && claude plugin install guardrails@ai-harness
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/bharath-gp/ai-harness/tree/main/plugins/guardrails. Run claude plugin validate on it first and show me what it can access before you enable it.
More from bharath-gp/ai-harness
This repository has 2 Claude Code mods on MCPMods.
- cockpit: Live session dashboard in one side pane (/cockpit). Mods: agents-progress (/agents-info), cache-keeper (/keepwarm, /cach (High risk)