I used to ask agent to update .cursorrules and it worked nicely, got really good rules set up super fast, but after update to .cursor/rules logics agent is not able to update the rules files any more.
Anyone else having the same issue? Did I missed something in docs?
In my case when agent try to update any of .cursor/rules , the diff in the composer window is okay but it seems it has some problems to access the file to update it, I ended up copying the code and pasting manually. It happens to only .cursor/rules path, do anyone else have this issue?
would you mind sharing the header part of the modified mdc file (you can change the text but the key part of key: value would be helpful) to see why it doesnt work?
I’m really surprised this isn’t being seen as a large issue. This tells me either 1. not many people are using the new .cursor/rules or 2. Not many people utilize a self-improving loop
Just two or three days using it and it’s like you say. I think it has to do with the rare description and file pattern at the top of the file. I don’t like that and I believe that’s making the agent go numb on the file, hope they fix it soon, it’s annoying
I’m not sure what you mean by templates. But I’m quite used to asking Composer (agent mode) to update .cursorrules. For example - if it finally solves some issue it struggles with I usually ask - “write the solution down to .cursorrules file so that you dont forget it next time.”
It works for standalone .cursorules, but does not work for .cursor/rules folder and .mdc files
Its not a good idea to update .cursorrules file by AI. Well, there is no need for that and it will not do the right thing if there is too much in there.
.cursor/rules/ .mdc files have a structure (header). Create one manually then use it as a template for AI to create new ones. thats wht i meant with template.
Once you create a rule_name.mdc under .cursor/rules, the interface change to input the description and globs, you can try that way or you can try the other way (manually), none works.
And as an extra information, once you create a .mdc file under .cursor/rules and populate a description It becomes part of the Project Rules, listed in Cursor Settings > General.
I’ve been trying to follow You are using Cursor AI incorrectly…. I created Cursor Rules for Editing Cursor Rules for this purpose. However, for me, it’s a very painful experience to get cursor to update project rules. How do the rest of you do it? Each time it suggests an update, the file opens, and when the .mdc file opens, it erases the change. I have to trick the agent to change the project rule by writing it to a temp file than force overriding the project rule
I have exactly the same problem. When I ask Cursor Agent to add something to the existing .cursor/rules file - it shows the diff in the chat window, but doesn’t actually apply the changes to the file. With some back and forth and re-apply I’m sometimes able to get it to apply the changes to the actual file that then starts showing a conflict.
Sometimes it also creates the mdc file in the project root directly, but it has the same problem - changes are not applied to the file. Feels like there is some special handling of mdc files in the IDE.
In my humble opinion, the cursor team made a mistake in trying to change the editor to add additional customization for .mdc files. If they wanted to add syntax highlighting for file references, that would have been fine, but they broke what I consider to be a cardinal rule in IDEs: it’s just text.
Guys I think I’ve found a workaround:
Open VS Code Settings from the menu, search for editorAssociations, in the Workbench: Editor Associations section, Add Item where item being *.mdc and value being default.
This should bypass Cursor’s custom editor behaviour with mdc files that allows agent to edit those files.