Paths Subjects Questions Quizzes Pricing Search
Advanced Open Pro

A Hook Returns Allow — Does It Beat a Matching Deny Rule

A PreToolUse hook is registered on a specific Bash command and, on exit code 0, prints this to stdout:

{
  "hookSpecificOutput": {
    "hookEventName": "PreToolUse",
    "permissionDecision": "allow"
  }
}

The team's .claude/settings.json also has a deny rule that independently matches that exact same Bash command.

When Claude tries to run the command, what actually happens?

Share this question

← Back to Settings, Permissions & Hooks practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.