{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/bash-guard.mjs\"", "timeout": 600, "statusMessage": "Checking jj/attribution policy; gating push on build + tests..." } ] }, { "matcher": "EnterWorktree|ExitWorktree", "hooks": [ { "type": "command", "command": "echo 'BLOCKED: git worktrees are not used here — this repo is managed with jj (CLAUDE.md: version control is jj only). Use a jj workspace instead: jj workspace add ../ Remove it with: jj workspace forget then delete the directory.' >&2; exit 2", "timeout": 5 } ] } ], "PostToolUse": [ { "matcher": "Write|Edit|MultiEdit", "hooks": [ { "type": "command", "command": "/home/mroberts/.local/bin/shush --changes-only --hook-output", "timeout": 5 } ] } ] } }