From guardrails
Blocks edits outside the task spec, made-up packages, check-weakening edits and destructive git; gates finishing, committing and /ship on passing checks.
6 events · 15 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.callprocess.runfs.writefs.existsfs.listfs.readenv.getprompt.submitprompt.submitprompt.composeEach event it registers a hook on, with the matcher when it sets one
session.startprompt.composetool.calltool.call{tool=Edit}tool.call{tool=Write}tool.call{tool=NotebookEdit}tool.call{tool=Bash}classic.Stopprompt.submitcommand.run{command=guard}command.run{command=checks}command.run{command=ship}Every mods API method its source calls, by namespace
afternowregistergetexistslistreadwriterunsubmitrootusagelogstatustoastCLAUDE_MODS_HOMEHOMEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)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 effinrich/claude-mods --plugin guardrails