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
Windows: Manual settings.json hook works without WSL #2503
Hey, just wanted to share a finding that might help
improve the Windows docs.
Your installer correctly falls back to CLAUDE.md mode
on native Windows since it can't run the .sh hook script.
However, I found that manually adding the PreToolUse hook
directly to ~/.claude/settings.json works perfectly on
native Windows (PowerShell 7.6.3) without WSL:
User confirmed manual settings.json hook works on native Windows (no WSL); suggests documenting this as an alternative installation path in Windows docs.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
docs/installation/windows.md
Triaged automatically by wshm · This is an automated analysis, not a human review.
I don't know why, but when I run rtk init -g or manually add as the @vbadonskidev-gif mentioned, my claude can't read the rtk.
e.g.
▐▛███▜▌ Claude Code v2.1.201
▝▜█████▛▘ Haiku 4.5 · API Usage Billing
▘▘ ▝▝ E:\src\myweb
> git status
Ran 1 shell command
PreToolUse:Bash hook error
Failed with non-blocking status code: /usr/bin/bash: line 1: rtk: command not found
I am on windows 11, powershell (not WSL).
where rtk
C:\Users\alexya\.cargo\bin\rtk.exe
C:\Users\alexya\.local\bin\rtk.exe
rtk --version
rtk 0.42.4
The troubleshooting page has described the native rtk hook claude hook in settings.json, which needs no WSL, since v0.52.0. The Windows section of the installation guide has said so since v1.0.0, and both pages say that rtk init -g installs that hook on Windows. If the docs still miss something for your setup on the latest version, please comment or reopen.
Activity
pszymkowiak commentedon Jun 25, 2026
🔍 Automated Triage
docslowSummary
User confirmed manual settings.json hook works on native Windows (no WSL); suggests documenting this as an alternative installation path in Windows docs.
📁 Relevant files
docs/installation/windows.mdTriaged automatically by wshm · This is an automated analysis, not a human review.
mvanhorn commentedon Jun 28, 2026
Submitted a fix in #2704.
alexya commentedon Jul 4, 2026
I don't know why, but when I run
rtk init -gor manually add as the @vbadonskidev-gif mentioned, my claude can't read thertk.e.g.
I am on windows 11, powershell (not WSL).
KuSh commentedon Nov 23, 2026
The troubleshooting page has described the native
rtk hook claudehook in settings.json, which needs no WSL, since v0.52.0. The Windows section of the installation guide has said so since v1.0.0, and both pages say thatrtk init -ginstalls that hook on Windows. If the docs still miss something for your setup on the latest version, please comment or reopen.