From guardrails
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 patterns.
4 events · 12 calls
Ships in guardrails. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=guard}command.run{command=guard-preset}command.run{command=guard-log}tool.callui.render{component=Pane, requestId=guardrails}Every mods API method its source calls, by namespace
nowregistercwdrootgetsetgetsetopenresolvestatustoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub mishgoldenberg/claude-mods --plugin guardrails