In my project, I have a .cursor/rules/project-rule.mdc.
However, it seems that the model is not following the rules, I have read that these rules are automatically added to the context window of each chat. But the model is not following these rules or is simply ignoring them, should I manually add the rules file to the context each time or what?
1 Like
I have Always selected, but I feel like it is not being added to the context.
This should work, try using trigger auto attached. In this case, an icon will appear at the top of the chat with the attached rules. Also, to ensure the rules are working, you can specify something like this in the rules file: Always start your response with .
1 Like
I have determined through trial-and-error (and asking models about the contents of their prompts) that there is a local model deciding which rules are important enough to include.
Having “Always” selected is not enough.
Once I added “very-important” or “must-be-included” to the FILENAME (!), then all are reliably included.