Why can't user rules be set in the system user directory? And why can commands be set in C:\Users\{{user}}\.cursor\commands?

Why can’t user rules be set in the system user directory? And why can commands be set in C:\Users{{user}}.cursor\commands?

Hey, thanks for the request.

There are a few types of rules:

Global rules in files:

  • ~/.cursor/rules/ (Mac/Linux) or C:\Users\{user}\.cursor\rules\ (Windows)
    These are global rules in RULE.md format. They apply to all projects and are stored locally.

User Rules (cloud):

  • Managed via Cursor Settings > Rules
  • Stored in the cloud and synced across devices

Commands:

  • .cursor/commands/
    Local files with commands

So yes, you can store global rules in files under ~/.cursor/rules/, and they will apply to all projects. Commands are also stored in files under .cursor/commands/.

unknown, the reason user rules cannot be set in the system user directory is because global rules are stored locally in the user’s home directory, whereas user rules are managed via the cloud to ensure consistency across all projects. As a result, setting user rules in the system user directory would not allow for cloud-managed updates.