▲

Anysphere · Cursor editor · Cursor CLI

Cursor rules files explained

Which instruction files Cursor reads (.cursor/rules/*.mdc, AGENTS.md, .cursorrules (legacy)), where to put them, and how to convert from other agents.

Files Cursor reads

  • .cursor/rules/*.mdc
  • AGENTS.md
  • .cursorrules (legacy)

AGENTS.md: Yes, in the project root and in subdirectories (nested files combine).

Skills folders: .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/

Who reads what

AgentRules filesAGENTS.md
ClaudeCLAUDE.md, .claude/rules/*.mdOnly when no CLAUDE.md / CLAUDE.local.md exists (default, v2.1.277+); or import it with @AGENTS.md
CodexAGENTS.md, AGENTS.override.mdYes: global ~/.codex/AGENTS.md plus one AGENTS.md (or AGENTS.override.md) per directory from the repo root down
Cursor.cursor/rules/*.mdc, AGENTS.md, .cursorrules (legacy)Yes, in the project root and in subdirectories (nested files combine)
Copilot.github/copilot-instructions.md, .github/instructions/*.instructions.md, AGENTS.mdYes on most surfaces (cloud agent, CLI, VS Code chat, code review); not Copilot Chat on GitHub.com
AntigravityAGENTS.md, GEMINI.md, .agents/rules/*.mdYes: AGENTS.md or GEMINI.md at any directory level, always on
Convert your rules file →
+ Featured spot on the rules libraryReach developers choosing tools for their coding agent. Labeled, and it never affects ratings.

Agent Stack Weekly · free

What changed across coding agents this week

Limit and pricing changes, new MCP servers, and setup fixes for Claude Code, Codex, Cursor, Copilot and Antigravity.

No spam. Unsubscribe anytime. Read past issues

Guides & comparisons