Repository or project specific cursor rules
Is your feature request related to a problem? Please describe. I often work on multiple projects that involve different stuff, such as UI libraries, languages, and frameworks. And it's frustrating to copy and paste rules each time when we open the project.
Describe the solution you'd like It would be extremely helpful to have repository- or project-specific cursor rules, so I don't have to update them each time I switch between projects.
Additional context Add any other context or screenshots about the feature request here.
I think .cursorrules is what you're looking for. You can add it to the root of your repo and define project-specific rules and instructions for the AI.
I think .cursorrules is deprecated in favour of .cursor/rules now.
I have the same problem, but I already use .cursor/rules
Cursor only applies these rules on one of the several open projects I work on. This seems to be the first workspace loaded/opened. All other windows ignore their respective .cursor/rules directories and the models reply they do not see any rules given to them in the prefix of the prompt (the first window does).
I have to completely close cursor and restart with the next project to switch between rules, it seems. That is a major hurdle in the workflow.
I also have a similar issue, I have some repos that are being reused as a common dependency. It would be nice to have a way to inject rules from those repos to parent repos.
As a workaround, I ended up using a local MCP memory server instead, so all Cursor has access to my ‘repository’ of information, from the stuff I’ve had it ‘remember.'