rtk-ai/rtk
View on GitHubbug: "rtk init -g --agent cursor" errors due to expecting $HOME/.claude
Open
#1465 opened on Apr 22, 2026
P1-criticalbugeffort-smallgood first issue
Description
Using the latest version, v0.37.2, on WSL2 (ubuntu), I receive the following error during initial setup:
$ rtk init -g --agent cursor
rtk: Failed to write RTK.md: /home/liam/.claude/RTK.md: Failed to create temp file in /home/liam/.claude: No such file or directory (os error 2) at path "/home/liam/.claude/.tmpznCCwz"
I suspect that --agent cursor still tries to setup Claude and Copilot, but because I don't use either on this device, it errors out. I would expect:
--agent cursorto only install for Cursor.- If claude was used, but the directory didn't exist, create it first, and/or skip over it if the primary agent target isn't claude.
I am able to get around this by manually creating that directory, and re-running, but this still initializes files and pollutes my home directory unnecessarily, which should be avoided.