Unless I end every prompt with “do not make changes ask for approval first” it will pretty much always find some random code to update and change as part of any question I ask. It appears to ignore the cursor settings->rules for AI as well.
Is there anyway to better give it guidance, or are there conflicts in the agents rulesets we can relax a bit to not be quite so ready to change code?
It also loves removing comments. All comments are vaporized in any update it does, would love it if it did not do this without explict prompting. Anyone else see this behavior?
Hey, do you have an example of when this is happening? Screenshots are best here!
The agent can be over eager sometimes to fix things without the user asking for them. But if you have something in your rules for AI to instruct it not to do this, it should follow that, even without it being in each prompt.
I have had the same problem lately - deleting code, removing files etc…despite having rules in place as well as a very explicit safety protocols doc that i have to remind the assistant of about every third message it seems but it still keeps both ignoring the rules as well as the protocols doc. I had to revert my project over 6 times yesterday because of errant assumptions the ai made as well as blatantly ignoring both the rules set as well as the safety protocols doc
My guess is that the composer and agent has a system/developer prompt provided by Cursor that tells it to edit, since that is what it supposed to do. If you don’t like that, I’d recommend using the chat instead, and only apply what you think is reasonable.
I assume this issue is actually less to do with our Composer itself, but more with our Apply functionality, which can, on occasion, delete more code than it should!
We do have some upgrades coming to apply soon, but if anyone has any screenshots of where the Composer outputs a suggestion which causes more changes in your file than intended when its applied, that would be super useful for the team!
No this is really the agent. If I say “hey how does this work” or “Why might this be happening?” it will automatically loften go “Hey I saw something” and start making changes to the code base. I literally have to add “no changes” to every prompt I write to get it to stop updating code. It’s pretty frustrating behavior. Also doesnt pay any attention to the rules I’ve placed in my settings->rules configuration either. I would love a mode that say “never ever update code without approval”