///
Block destructive commands and file operations outside the project directory
Install
npx agentshq add davepoon/claude-code-subagents-collection --agent project-boundaryBlock destructive commands and file operations outside the project directory
Security hook that blocks destructive commands and file operations outside the project directory.
PreToolUseBashgit push --force, git reset --hard, git checkout ., git clean -fDROP TABLE, TRUNCATE TABLE, rails db:drop, rake db:dropmkfs.*, dd if=bash -c, sh -c, eval, piping to sh/bashxargs with destructive commandsrm, mv, cp, ln, chmod, chown> / >> redirects, teecurl -o, wget -Ofind -delete / find -exec rmCLAUDE_PROJECT_DIR — project root (falls back to pwd)CLAUDE_PLUGIN_ROOT — set automatically by Claude CodeSee guard.sh in the same directory.