From file-guard
Keeps Claude's file edits inside the project: refuses writes outside it (symlinks resolved), never lets a tool touch .git internals, and asks before it changes lockfiles, CI workflows, migrations or secrets.
3 events · 9 calls
Ships in file-guard. 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.statenv.getEach event it registers a hook on, with the matcher when it sets one
session.starttool.callcommand.run{command=file-guard}Every mods API method its source calls, by namespace
registergetstatcwdrootgetsetasktoastHOMETMPDIRWhere 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 singh-ap/awesome-claude-mods --plugin file-guard