All agents togetherError
Claude Code hook script not found
Hook runs a script that does not exist: A command hook runs a repo script (`$CLAUDE_PROJECT_DIR/…`, `./…`, `.claude/hooks/…`) that is not in the repo, so the hook errors every time it fires.
Why it matters
Hooks often run a script from the repo, such as $CLAUDE_PROJECT_DIR/.claude/hooks/guard.sh. If the script was never committed, or was renamed, the hook fails on every tool call for everyone who clones the repo, and a failing guard blocks nothing.
The hook errors every time it fires, so the check, format or guard it runs never happens (a failing PreToolUse guard does not block).
An example that triggers it
A small Claude Code workspace. The marked lines are the ones the check cites.
.claude/settings.json{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [{ "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-force-push.sh" }] } ] }}.claude/agents/reviewer.md---name: reviewerdescription: Reviews a diff. Use after code changes.tools: Read, Grep, Glob---Review the change. Never edit files.What Crafthall reports
The output of /crafthall:open --report on this example, generated by the plugin's own check when this page was built.
1. [high] Hook runs a script that does not exist – .claude/settings.json:4 A PreToolUse hook in .claude/settings.json runs `.claude/hooks/block-force-push.sh`, which does not exist in the repo, so the hook errors every time it fires. Fix: Add `.claude/hooks/block-force-push.sh` to the repo (and commit it), fix the path, or remove the hook.
How to fix it
Commit the script the hook runs (or fix the path). The check compares the path with the files in the repo.
.claude/settings.json{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [{ "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-force-push.sh" }] } ] }}Run on the fixed workspace, the check reports nothing for this rule.
How the check works
Each repo path a command hook runs was checked against the repo file list. It reads your files with text patterns, on your machine – no model, so the same files give the same result every run.
Check your own agents
Install the free plugin, then run /crafthall:open in your workspace. It runs all checks, not only this one.
claude plugin install crafthall --marketplace crafthall/plugins