I use Cursor’s Project Rules to create rules by having the generated AI summarize the things I want to remember, in the same way as the Memory function in Cursor’s rival app.
I have summarized the method in the following article.
I use Cursor’s Project Rules to create rules by having the generated AI summarize the things I want to remember, in the same way as the Memory function in Cursor’s rival app.
I have summarized the method in the following article.
Thanks for the detailed write-up.
I had issues with the md formatting when copying from the article.
It should be fixed below:
We will create a rule file in which to store instructions (essentially, our “memory”).
.cursor/rules/
Use a name composed of letters, digits, and hyphens.
mdc
The content is stored in a code block. The frontmatter changes depending on the rule type:
---
description:
globs:
alwaysApply:
---
Provide the rule content in proper Markdown format.
Rules can have the following types. Choose the one that best fits your needs:
agent
decides it’s relevant, based on the description.The frontmatter differs based on the rule type. Include the proper fields:
globs: *
Leave description
blank. Include globs
. If you specify multiple globs, separate them with commas:
description:
globs: comma-separated globs
Include a description
. Do not include globs
; otherwise, it becomes Auto Attached:
description: Put your description here
globs:
alwaysApply: false
Leave description
and globs
empty. Set alwaysApply
to false:
description:
globs:
alwaysApply: false
What is the difference between Cursor’s “Settings > Role Rules” feature and the “Memory” function found in its competitor apps? What conveniences does Cursor offer in this regard?
Thank you, best regards.
The Memory feature of the competing application automatically summarizes the main points and creates something similar to Project Rules, called Memory, when you tell the Generation AI to remember something.
The advantage is that the generating AI summarizes the main points and that they are created automatically.