Mimicking Cursor's rival app’s “Memory” Feature in Cursor

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.

2 Likes

Thanks for the detailed write-up. :slightly_smiling_face:

I had issues with the md formatting when copying from the article.
It should be fixed below:

Summary

Storing Rules

We will create a rule file in which to store instructions (essentially, our “memory”).

Location

.cursor/rules/

File Name

Use a name composed of letters, digits, and hyphens.

File Extension

mdc

Content

The content is stored in a code block. The frontmatter changes depending on the rule type:

---
description:
globs:
alwaysApply:
---

Rule Title

Provide the rule content in proper Markdown format.

Rule Types

Rules can have the following types. Choose the one that best fits your needs:

  • Always: Always applied.
  • Auto Attached: Automatically applied to files matching specified globs.
  • Agent Requested: Applied only when an agent decides it’s relevant, based on the description.
  • Manual: Applied only when the user explicitly says so.

Frontmatter Details

The frontmatter differs based on the rule type. Include the proper fields:

Always

globs: *

Auto Attached

Leave description blank. Include globs. If you specify multiple globs, separate them with commas:

description:
globs: comma-separated globs

Agent Requested

Include a description. Do not include globs; otherwise, it becomes Auto Attached:

description: Put your description here
globs:
alwaysApply: false

Manual

Leave description and globs empty. Set alwaysApply to false:

description:
globs:
alwaysApply: false

Reporting After CreationOnce you create your rule file, report:

  • Which rule type you chose and why
  • An explanation of the rule’s content
3 Likes

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.