Submit a toolSubmit

Your Claude Code hook never fires. Fix load path and matcher first

When a Claude Code hook never runs, start with /hooks: if the hook is missing, it never loaded (wrong file, invalid matcher array, or a skill hook not invoked yet). If it is listed but silent, fix the matcher string—tool names are case-sensitive, and use | (or a current Claude Code build) instead of a JSON array. Short answer: 5 steps. 1) Confirm the hook loaded with /hooks; 2) Fix matcher shape: string, not array; 3) Match the real tool name (case-sensitive); 4) Save settings and refresh /hooks (restart rarely needed); 5) Watch evaluation with claude --debug when it still will not fire.

Last updated: · This page is the decision checklist; the tools list for “Fix Claude Code hooks that never fire” is a separate URL.

The problem: When a Claude Code hook never runs, start with /hooks: if the hook is missing, it never loaded (wrong file, invalid matcher array, or a skill hook not invoked yet). If it is listed but silent, fix the matcher string—tool names are case-sensitive, and use | (or a current Claude Code build) instead of a JSON array.

How do I fix this: Your Claude Code hook never fires?

  1. Confirm the hook loaded with /hooks

    In the session, run /hooks. Hooks are listed by event. If yours is absent, Claude Code did not load it. Put hooks under the "hooks" key in a settings file (project .claude/settings.json or ~/.claude/settings.json)—not a standalone hooks file, and not only in ~/.claude.json (that file is for app state). Debug guide: https://code.claude.com/docs/en/debug-your-config

  2. Fix matcher shape: string, not array

    matcher must be a single string. A JSON array is an invalid setting; Claude Code reports it on interactive start and in claude doctor, and if that array sits under PreToolUse or PermissionRequest, none of that file's other hooks load either. Match several tools with one string such as "Edit|Write". Before v2.1.191, a comma separator falls through to regex and matches nothing—prefer | unless you are on a newer build.

  3. Match the real tool name (case-sensitive)

    Tool names are capitalized: Bash, Edit, Write, Read. A lowercase matcher like "bash" matches nothing and fails silently. Misspellings do the same. If the hook lives in a skill's frontmatter, it appears in /hooks only after that skill is invoked in the session.

  4. Save settings and refresh /hooks (restart rarely needed)

    Edits to settings.json apply after a short file-stability delay in the running session. Run /hooks again a few seconds after saving. Before v2.1.257, Claude Code did not detect a .claude/ folder created after the session started—upgrade or restart if you just created that folder. Run /doctor for invalid settings files.

  5. Watch evaluation with claude --debug when it still will not fire

    If /hooks lists the hook but the event never runs, start with claude --debug, trigger the tool call, and read which matchers ran and the hook exit code. Hooks guide: https://code.claude.com/docs/en/hooks-guide . For a clean baseline, claude --safe-mode disables your hooks and other customizations so you can tell config noise from a product bug.

Which tools are best to fix Claude Code hooks that never fire?

Debug your configuration

/hooks, matcher mistakes, settings locations, and common causes table.

Hooks guide

How to define hooks, events, and when to use hooks vs skills.

Permissions

When to enforce limits with permissions or hooks instead of CLAUDE.md alone.

claude doctor

Run claude doctor or /doctor to surface invalid settings that block hooks.

All tools for “Fix Claude Code hooks that never fire” →

Related fixes

See also AI tools launched today on the daily board.