Hook errors
Starting the session I got a "SessionStart:startup hook error" followed by "PreToolUse:Task hook error"s and "PreToolUse:ExitPlanMode hook error"s and "PreToolUse:Edit hook error"s. Doesn't seem to work. Not sure if this is because I'm using Windows? No idea how to fix this.
I was experiencing the same issue (also on Windows), and I believe I have it resolved now. For me at least, $CLAUDE_PROJECT_DIR wasn't being resolved. I modified each hook in .claude/settings.json from "command": "python $CLAUDE_PROJECT_DIR/.claude/hooks/... to "command: "python ./.claude/hooks/....
Not sure if any other locations need to be updated, but everything appears to be working for me after those changes.
I was experiencing the same issue (also on Windows), and I believe I have it resolved now. For me at least,
$CLAUDE_PROJECT_DIRwasn't being resolved. I modified each hook in.claude/settings.jsonfrom"command": "python $CLAUDE_PROJECT_DIR/.claude/hooks/...to"command: "python ./.claude/hooks/....Not sure if any other locations need to be updated, but everything appears to be working for me after those changes.
Thanks for your comment. It works now
Happy to help! By the way, some of the python scripts also have non-ASCII characters which were throwing UnicodeEncodeErrors for me. Claude can pretty easily identify and fix those