Problem
Doesn't really work on Windows, by default.
Suspected cause
Differences in stdin behavior.
Workaround
Had Claude troubleshoot, and modify timecode.sh line 3 to:
INPUT=$(cat)
Also needed to prefix the commands in ~/.claude/settings.json with bash, like so:
from
"SessionStart": [ { "hooks": [ { "type": "command", "command": "~/.claude/timecode.sh" } ] } ],
to
"SessionStart": [ { "hooks": [ { "type": "command", "command": "bash ~/.claude/timecode.sh" } ] } ],
Problem
Doesn't really work on Windows, by default.
Suspected cause
Differences in stdin behavior.
Workaround
Had Claude troubleshoot, and modify
timecode.shline 3 to:INPUT=$(cat)Also needed to prefix the commands in
~/.claude/settings.jsonwith bash, like so:from
"SessionStart": [ { "hooks": [ { "type": "command", "command": "~/.claude/timecode.sh" } ] } ],to
"SessionStart": [ { "hooks": [ { "type": "command", "command": "bash ~/.claude/timecode.sh" } ] } ],