Home › Rules › Cursor rules vs AGENTS.md

Cursor rules vs AGENTS.md: which should you use?

Checked against Cursor's docs on Oct 19, 2026.

Short answer: start with AGENTS.md. Cursor reads it, and so do other tools. Move to .cursor/rules/*.mdc when you want a rule to load only for certain files, or only when it's relevant.

What Cursor supports

Cursor's docs list four kinds of rules: Project Rules (.cursor/rules, in git), User Rules (your global preferences in Cursor's settings), Team Rules (from the dashboard, Team and Enterprise plans), and AGENTS.md, which Cursor describes as a simple alternative to .cursor/rules.

AGENTS.md.cursor/rules/*.mdc
Works in other toolsYes (Codex, Copilot, Claude Code and more)Cursor only
FormatPlain MarkdownMarkdown with frontmatter: description, globs, alwaysApply
ScopingBy folder (nested AGENTS.md files)By file pattern, by relevance, always, or manual @-mention
Best forOne shared set of rulesMany focused rules that shouldn't all load at once

Common mistakes

A good split

Keep the project overview, commands and working habits in one always-on place (AGENTS.md or core.mdc with alwaysApply: true). Put file-specific rules (database migrations, components, tests) in .mdc files with globs.

.cursor/rules/migrations.mdc
---
globs: supabase/**/*.sql
alwaysApply: false
---

- Turn on Row Level Security for every new table, with explicit policies.
- Ask before dropping or renaming a column or table.

Get ready-made files

Every page in the rules library gives you both: an AGENTS.md and the same rules split into core.mdc plus a glob-scoped project rule. Or generate a Cursor rule.

Sources

Get the free Starter Rules, emailed instantly

  • A copy-paste rules file to save as AGENTS.md or CLAUDE.md, or paste into Lovable, Bolt, v0 or Replit: small steps, ask before risky changes, no fake "it works", secrets kept out of code.
  • A kickoff prompt that makes your AI ask up to 3 questions and plan 5 to 8 small, testable steps before it writes any code.
  • The habit that saves projects: work, test, commit.

After that, an occasional email when we publish a new guide or rules file.

Free. No spam. Unsubscribe anytime. See our privacy note.