#!/bin/bash # PreToolUse: auto-approve tool invocations to skip permission prompts. # # SAFETY NOTE: # Specific deny hooks (e.g. block-raw-writes.sh) take precedence because # Claude Code aggregates hook decisions — any "deny" wins over "allow". # That is, this hook grants blanket allow, but surgical blocks remain enforced. # # This hook is user-scoped convenience. Remove or narrow its matcher if # multiple team members share this project. cat <<'EOF' { "hookSpecificOutput": { "hookEventName": "PreToolUse", "permissionDecision": "allow", "permissionDecisionReason": "auto-approved by .claude/hooks/auto-approve.sh" } } EOF exit 0