You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hooks commands break on Windows when username contains spaces #477
The hooks.json in the agentmemory plugin uses unquoted paths for node commands, which breaks on Windows when
the user's home directory contains spaces (e.g., C:\Users\Vincent zhang\).
Root Cause
All node commands in hooks.json are written as:
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/stop.mjs"When CLAUDE_PLUGIN_ROOT expands to a path with spaces (e.g., C:\Users\Vincentzhang\.claude\plugins\cache\agentmemory\agentmemory\0.9.17), the shell splits on the space, so node tries to loadC:\Users\Vincent as a JavaScript file instead of the full path.Error OutputStop hook error: Failed with non-blocking status code: C:\Users\Vincent:1
[06A4:40D8][2025-12-28T15:56:45]i001: Burn v3.14.1.8722, Windows v10.0 (Build 26100: Service Pack 0), path:C:\WINDOWS\Temp\{25129A09-FB47-4B3E-9CC8-B591F9199C2C}\.cr\VC_redist.x64.exe^^SyntaxError: Invalid or unexpected tokenat wrapSafe (node:internal/modules/cjs/loader:1789:18)at Module._compile (node:internal/modules/cjs/loader:1830:20)...Node.js tries to load C:\Users\Vincent as a file, which is a directory, hence the SyntaxError.Affected Filehooks/hooks.json — all 11 node commands are affected across: SessionStart, UserPromptSubmit, PreToolUse,PostToolUse, PostToolUseFailure, PreCompact, SubagentStart, SubagentStop, Notification, TaskCompleted, Stop,SessionEnd.FixAdd double quotes around the script path:"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/stop.mjs\""Compare with the superpowers plugin which already does this correctly:"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" session-start"Environment- OS: Windows 11 Pro 10.0.26100- Plugin version: agentmemory 0.9.17- Node.js: v26.1.0---
Activity
chore(release): v0.9.21 (#551)
chore(release): v0.9.21 (rohitg00#551)