Understand the four types of Cursor Rules
mainCursor provides four distinct ways to provide persistent instructions to the AI Agent. Rules are included at the start of the model context to ensure consistent guidance.
- Project Rules: Stored in
.cursor/ruleswithin your codebase. They are version-controlled and can be scoped to specific files or applied intelligently. - User Rules: Global to your specific Cursor environment; used by the Agent in Chat.
- Team Rules: Managed via the Cursor dashboard (available on Team/Enterprise plans). These apply across all repositories for the team and take precedence over Project and User rules.
- AGENTS.md: A simple markdown file used for agent instructions as an alternative to the
.cursor/rulesfolder structure.