rtk-ai/rtk

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

Fechada

#1.465 aberto em 22 de abr. de 2026

 (4 comentários) (13 reações) (0 responsável)Rust (2.914 forks)batch import
P1-criticalbugeffort-smallgood first issue

Métricas do repositório

Stars
 (48.085 estrelas)
Métricas de merge de PR
 (Mesclagem média 11d 1h) (45 fundiu PRs em 30d)

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:

  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.

Guia do colaborador