Hook error on windows persisting
- Dominant language
- TypeScript
- Stars
- 72.7k
- Forks
- 8.6k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 85
Description
I keep getting these errors, perhaps there is a windows specific fix for it?
● PreToolUse:Write [cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr
'\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}'
--auto-assign-agents true --load-context true] failed with non-blocking status code 255:
'cat' is not recognized as an internal or external command,
operable program or batch file.
● PostToolUse:Write [cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr
'\n' '\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true
--update-memory true] failed with non-blocking status code 255: 'cat' is not recognized
as an internal or external command,
operable program or batch file.
Contributor guide
Research direction
Start by reproducing the PreToolUse and PostToolUse hook commands on Windows, focusing on the cat, jq, tr, and xargs pipeline shown in the report. Trace how these commands are invoked by the hooks and verify that both hooks complete without the 'cat' command error or status code 255.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, shell, typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100