Curser AI, Notorious for removing and rewriting the working code

I’ve been using Cursor AI and while I love the tool overall, there are some serious issues that have become really frustrating. For instance, I’ll spend an entire day fixing code for one problem, and when I switch to work on something else, the AI interferes with my previously completed code - even though it’s unrelated to what I’m currently working on. It rewrites and messes up code that was already working perfectly. This completely undermines the tool’s purpose. I’m burning through my paid credits just repeatedly fixing code that I’ve already fixed multiple times. There’s an issue where it keeps removing large chunks of the code. When I try to do something, it removes a big portion of the content with it. I’m trying to figure out if this is happening because of the AI or if it’s related to the cursor position. Is there a way to prevent this from happening?

I have the same issue. I split my codebase into small files. Also, I noticed that reloading cursor entirely and resetting composer helps to avoid this. Sometimes switching models helps too. It is very annoying.

2 Likes

Thank you very much. I will try implementing that approach. I’m still fairly new to coding and find it challenging to structure my code across multiple files and handle the interconnections between them. That’s partly why my code organization is currently limited. While I sometimes ask AI to avoid removing and rewriting, it’s had mixed results. I appreciate your suggested solutions and will give them a try. Thank you.

Working with small modules is much better, even if it takes a lot longer. Making the modules as reusable functions cuts down on code maintenance in the long run, and improves execution efficency at the machine level.

1 Like