Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Troubleshoot plugins changedplugins/troubleshooting

Nearest release: v2.1.325, published 19 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 14 Nov 2026 16:02 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 14 Nov 2026 16:07 UTC.

Upstream edited
Recorded here
Lines+6added
Lines−7removed
From line 838 where the diff opens
First seen 25 Sep 2026 this site's first read of the page
Recorded edits44to this page, all time

The whole hunk

from line 838, old and new numbered
/
lines
from line 838
838838 
839839#### `hook error` notices in the transcript
840840 
841A notice of the form `... hook error: Failed with non-blocking status code: <stderr>` means the hook ran and its command failed. For example, `Stop hook error: Failed with non-blocking status code: /bin/sh: node: command not found` means the shell Claude Code spawned couldn't find `node`. Install it, or make sure it's on the `PATH` of the terminal you start `claude` from.
841A notice of the form `... hook error: Failed with non-blocking status code: <stderr>` means the hook's command failed. For example, `Stop hook error: Failed with non-blocking status code: /bin/sh: node: command not found` means the shell Claude Code spawned couldn't find `node`. Install it, or make sure it's on the `PATH` of the terminal you start `claude` from.
842842 
843843If the stderr shows the plugin's path cut off at a space, the hook's shell-form command uses `${CLAUDE_PLUGIN_ROOT}` outside quotes and the install path contains a space. Wrap the variable in double quotes or use [exec form](https://code.claude.com/docs/en/hooks.md#exec-form-and-shell-form). To find the unquoted variable, run `claude plugin validate` on the plugin's directory and look for its [quoting warning](https://code.claude.com/docs/en/plugins/manifest-reference.md#quoting-and-path-separators).
844844 
845If the notice reads `Failed to run: Plugin directory does not exist: <path>`, see [`Plugin directory does not exist`](#plugin-directory-does-not-exist).
845* If the notice reads `Failed to run: Plugin directory does not exist: <path>`, see [`Plugin directory does not exist`](#plugin-directory-does-not-exist).
846* For any other error, capture the full stderr with [debug logging](https://code.claude.com/docs/en/hooks.md#debug-hooks).
846847 
847For any other error, run the hook's command yourself from the plugin directory to see the full output, or capture the full stderr with [debug logging](https://code.claude.com/docs/en/hooks.md#debug-hooks).
848 
849848#### A plugin hook blocks a tool call or prompt
850849 
851850A hook that exits with code 2 [blocks the action it ran for](https://code.claude.com/docs/en/hooks.md#exit-code-2). When a plugin's hook blocks this way and its stderr is the blocking message, the error ends with `This hook comes from the <plugin> plugin.` so that you know which plugin to disable or fix. Before v2.1.281, the error didn't name the plugin.
from line 861
862861 
863862**2. Check the matcher**
864863 
865Confirm the hook's `matcher` matches the tool name.
864For a tool event such as `PostToolUse`, confirm the hook's `matcher` matches the tool name.
866865 
867866**3. Trigger the event on purpose**
868867 
869For a `PostToolUse` hook, ask Claude to edit a file.
868Turn on debug logging as [Debug hooks](https://code.claude.com/docs/en/hooks.md#debug-hooks) describes. For a `PostToolUse` hook, ask Claude to edit a file.
870869 
871870**4. Read the debug log**
872871 
873Open the [debug log](https://code.claude.com/docs/en/hooks.md#debug-hooks), which records which hooks matched. A hook that ran shows up there with its exit code.
872Open the [debug log](https://code.claude.com/docs/en/hooks.md#debug-hooks). A hook that ran shows up there with its exit code.
874873 
875874### `Plugin directory does not exist: <path>`
876875 
Feedback