SessionStart hook fails on Windows - superpowers plugin path handling issue
Resolved 💬 3 comments Opened Feb 1, 2026 by frwolf Closed Feb 4, 2026
The superpowers plugin's SessionStart hook fails on Windows with a path formatting error.
Environment:
- Claude Code version: 2.1.29
- OS: Windows
- Shell: Git Bash (bash)
- Plugin: superpowers@claude-plugins-official v4.1.1
Error observed:
SessionStart:startup hook error
\bin\bash: C:Users[username].claudepluginscacheclaude-plugins-officialsuperpowers4.1.1/hooks/session-start.sh: No such file or directory
Debug log excerpt:
2026-02-01T07:59:59.389Z [DEBUG] Hook SessionStart:startup (SessionStart) error:
\bin\bash: C:Users[username].claudepluginscacheclaude-plugins-officialsuperpowers4.1.1/hooks/session-start.sh: No such file or directory
Root cause:
The path is malformed - missing backslashes after the drive letter. The correct path should be:C:\Users\[username]\.claude\plugins\cache\claude-plugins-official\superpowers\4.1.1\hooks\session-start.sh
But bash is receiving:C:Users[username].claudepluginscacheclaude-plugins-officialsuperpowers4.1.1/hooks/session-start.sh
Impact:
- Error message displayed on every Claude Code startup
- SessionStart hook functionality from superpowers plugin doesn't work on Windows
Workaround:
Add "disableAllHooks": true to settings.json (but this also disables other hooks and statusLine)
Expected behavior:
The hook should execute successfully on Windows with proper path handling.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗