{ "permissions": { "deny": [ "Read(./.env)", "Read(./.env.*)", "Read(!.env.example)", "Read(./secrets/**)", "Bash(git push --force *)", "Bash(git reset --hard *)" ] }, "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "bash", "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/guard-bash.sh"], "onFailure": "block", "statusMessage": "Checking command against guard rails" } ] } ], "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "bash", "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/post-edit-check.sh"], "timeout": 60 } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "bash", "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/stop-gate.sh"], "timeout": 900 } ] } ] } }