From Subagent Fence
Refuses force-pushes, pushes to protected branches, --no-verify and kills by process name; optionally fences off listed paths, a subagent's edits to a shared checkout and its whole-file reads of large files, and the git commands that discard uncommitted work in a shared checkout
1 event · 1 call
Ships in Subagent Fence. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callfs.statEach event it registers a hook on, with the matcher when it sets one
tool.callEvery mods API method its source calls, by namespace
statWhere 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 erikdarlingdata/claude-plugins --plugin subagent-fence