Checked against official docs on

AGENTS.md vs CLAUDE.md vs Cursor rules: who reads what

Short answer: put shared instructions in AGENTS.md. Then add only agent-specific extras: an @AGENTS.md import in CLAUDE.md, .cursor/rules/*.mdc for glob-scoped Cursor rules, and .github/copilot-instructions.md if you need Copilot Chat on GitHub.com.

FileClaude CodeCodexCursorGitHub CopilotAntigravity
AGENTS.mdYes (v2.1.277+), by default only when no CLAUDE.md existsYes: global ~/.codex/AGENTS.md plus one per directoryYes, root and nestedMost surfaces (not Copilot Chat on GitHub.com)Yes, any directory, always on
CLAUDE.mdYes (primary)Only if added to project_doc_fallback_filenamesNot documentedCopilot CLI and cloud agentNot documented
.cursor/rules/*.mdc/init can import themNoYes (.mdc with frontmatter)NoNo
.github/copilot-instructions.md/init can import itNoNoYesNo
GEMINI.mdNoOnly via fallback filenamesNoCopilot CLI and cloud agentYes
Scoped rules.claude/rules/*.md (paths)Nested AGENTS.md / AGENTS.override.md.cursor/rules (globs).github/instructions/*.instructions.md (applyTo).agents/rules/*.md (trigger)

Gotchas

Convert a rules file between agents →

Frequently asked questions

Yes, since v2.1.277, but by default only when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in your working directory or above it. Put @AGENTS.md at the top of CLAUDE.md to use both.

Sources