{"version":"2.1.329","anchor":"hook-matching-change-mayonlydeny-hooks-apply-to-tool-events","canonical_anchor":"hook-matching-change-mayonlydeny-hooks-apply-to-tool-events","heading":"More hooks can count as matching on tool events","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/hook-matching-change-mayonlydeny-hooks-apply-to-tool-events","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### More hooks can count as matching on tool events\n\nClaude Code changed which hooks it treats as matching for `PreToolUse`, `PermissionRequest`, `PostToolUse` and `PostToolUseFailure`\n\n**Unclear.** Which hooks meet the new condition, and so which extra hooks now run, is not clear.\n\n**What**\n\nHooks are commands you set up to run at certain moments, for example just before Claude uses a tool. Claude Code changed how it decides whether a hook matches the moment at hand. A hook can now count as matching under an extra condition, for these events only:\n\n- `PreToolUse`, before a tool is used\n\n- `PermissionRequest`, when a tool needs your permission\n\n- `PostToolUse`, after a tool succeeds\n\n- `PostToolUseFailure`, after a tool fails\n\nThis does not apply to hooks that belong to a tool itself.\n\n**Why**\n\nThis may change which of your hooks run when Claude uses tools.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}