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
When trying to init rtk for cursor agent, the command fails with this error:
rtk init -g --agent cursor
rtk: Failed to write RTK.md: /Users/username/.claude/RTK.md: Failed to create temp file in /Users/username/.claude: No such file or directory (os error 2) at path "/Users/username/.claude/.tmprv5Suz"
Why is he trying to write something into the .claude folder if it should be rather .cursor
Reacted by Eder Lamar, Josef Rossa, Jonathan Colby, Pelmexaxa, Matheus Vessaro, Daniel Hillmann, Chan Chun Tung Noah, Jaakko Juvonen, Tukkan, Francisco Puga and 15 more
Reacted by Eric Taix, TitouanM, bru-braga and Tiago Medicci Serrano
I ran into similar Cursor agent initialization failures. I built a flight recorder for AI agents that captures the full execution trace — lets you see exactly what happens at each step:
the main workaround is to create both of this directories
P.S. Still wait for fix to drop the workaround from our scripts
this workaround did the job. Just commenting to keep this thread alive as no fix has been released yet.
What did you do?
Let it create inside .claude and copy the new files into .cursor folder?
It really sucks the MR with the fix is done and tested but not merged yet
the main workaround is to create both of this directories
P.S. Still wait for fix to drop the workaround from our scripts
this workaround did the job. Just commenting to keep this thread alive as no fix has been released yet.
What did you do? Let it create inside .claude and copy the new files into .cursor folder? It really sucks the MR with the fix is done and tested but not merged yet
When init with the Cursor config, you must create the .claude directory manually before and then run the command. This will allow to install the necessary files and config for Cursor.
the main workaround is to create both of this directories
P.S. Still wait for fix to drop the workaround from our scripts
this workaround did the job. Just commenting to keep this thread alive as no fix has been released yet.
What did you do? Let it create inside .claude and copy the new files into .cursor folder? It really sucks the MR with the fix is done and tested but not merged yet
When init with the Cursor config, you must create the .claude directory manually before and then run the command. This will allow to install the necessary files and config for Cursor.
Legend, it worked! I can see my saved tokens using rtk gain 👌
Activity
pszymkowiak commentedon May 27, 2026
🔍 Automated Triage
bughighSummary
rtk init -g --agent cursor writes to ~/.claude/ instead of ~/.cursor/, causing a path error; fix the agent-to-directory mapping in the init command.
📁 Relevant files
src/init.rssrc/agents.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
ValterJunior commentedon Jun 30, 2026
The label states "macos", but I can confirm it happens on Linux as well
bru-braga commentedon Jul 2, 2026
+1
skasero commentedon Jul 13, 2026
Any fix so far?
d87skg commentedon Jul 27, 2026
I ran into similar Cursor agent initialization failures. I built a flight recorder for AI agents that captures the full execution trace — lets you see exactly what happens at each step:
pip install traccia-sdk
traccia intercept -- python your_agent.py
traccia replay traccia-*.evidence
It preserves the complete timeline even when the agent crashes during init, so you can diagnose which step failed and why.
https://github.com/d87skg/traccia
AJIOB commentedon Aug 3, 2026
JFYI:
~/.claudeand~/.cursorP.S. Still wait for fix to drop the workaround from our scripts
yolave commentedon Sep 17, 2026
this workaround did the job. Just commenting to keep this thread alive as no fix has been released yet.
PedroS11 commentedon Sep 19, 2026
What did you do?
Let it create inside .claude and copy the new files into .cursor folder?
It really sucks the MR with the fix is done and tested but not merged yet
yolave commentedon Sep 21, 2026
When init with the Cursor config, you must create the
.claudedirectory manually before and then run the command. This will allow to install the necessary files and config for Cursor.PedroS11 commentedon Sep 21, 2026
Legend, it worked! I can see my saved tokens using
rtk gain👌