I ask it to do something - it creates a Python file that does it.
I ask it to update documentation - it creates a Python file to do it
I ask it to change direction - it creates a new file that does this
My entire codebase is littered with files that I am constantly having to clean up.
I have repeatedly prompted it to not do this and to instead focus on the files that exist but it just continually litters files everywhere
Steps to Reproduce
Ask it to do anything - at least in my envionment
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hi @the1dv is this something that occurs also on new chats?
On longer chats or in chats with a lot of conflicting context there may be hallucinations (valid looking but logically invalid responses). This happens on all models but chance increases with longer chats or a lot of context.
Yeah it is - I think if people are seeing this on Claude Code to its likely a model problem rather than a cursor issue but I have had to try and prompt around this and it still wants to create a new file for every iteration
Claude always does this; you need to tell it not to do it, make a rules file, or just start a new session. It seems to get into loops doing it, but if you tell it to stop , it will. (it seems to get triggered if it repeatedly fails to use one of the tools, at least in my cases)
try having it create a website that is made using typescript. I have playwright scripts I use to test it and claude code was just littering my dev environment with temporary scripts.