rtk-ai/rtk

bug: "rtk init -g --agent cursor" errors due to expecting $HOME/.claude

Geschlossen

#1.465 geöffnet am 22.04.2026

 (4 Kommentare) (13 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
P1-criticalbugeffort-smallgood first issue

Repository-Metriken

Stars
 (48.085 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

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:

  1. --agent cursor to only install for Cursor.
  2. 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.

Contributor Guide