I created a rule file which supposed to be trigger when working in agent mode (.mdc) and copy it to the folder ~./cursor/rules.
the rule is not being triggered when working with the agent.
Steps to Reproduce
Create a rule file (.mdc) and copy it to the folder ~./cursor/rules.
use the agent to do something which is supposed to trigger the rule.
Expected Behavior
I expect the rule to be triggered
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. Looks like a known issue with automatic rule application in agent mode.
Could you please share:
Full contents of your .mdc file
Whether there’s alwaysApply: true or other metadata in the file
Request ID from the chat (chat menu → Copy Request ID) where the rule didn’t work
Exact steps you took in the agent when the rule should have worked.
Similar issue: Why does Cursor ignore rules? - it discusses how rules sometimes don’t apply automatically even with alwaysApply: true. Solution: simplify rule format (use plain text instead of complex structures), explicitly mention rules at the start of the conversation, or attach them as markdown.
Workaround: At the start of each agent request, explicitly refer to the rule or attach critical rules as markdown files in the chat.