Which coding agent reads which instruction file

4 tools, 9 file types, 36 cells. Last reviewed 2026-10-16.

Each cell cites an official page and the date we checked it. A cell reads "unverified" when the page we checked does not mention the file. We then have no source, which says nothing about whether the tool reads it. A cell reads "migration only" when the page mentions the file only as input to a migration command such as /init. Counts: Reads: 12, Reads, with conditions: 1, Only if configured: 3, Migration only: 4, Not read: 1, Unverified: 15.

Scroll sideways to see every tool. The file column stays in place.

Instruction files by tool, with source and check date per cell
FileCursorClaude CodeCodexGitHub CopilotRepository custom instructions on GitHub.com (cloud agent, code review)
AGENTS.mdOpen format for agent instructions. May sit in the repository root or in subdirectories.

Reads

The page documents AGENTS.md in the project root and in subdirectories; nested files are combined, with more specific instructions taking precedence.

Sourcechecked

Reads, with conditions from v2.1.277

Reads AGENTS.md only when there is no CLAUDE.md or CLAUDE.local.md in the working directory or above. Reading AGENTS.md directly needs v2.1.277 or later.

Sourcechecked

Reads

Reads AGENTS.md from the global Codex home and from the project root down to the working directory, at most one file per directory, up to 32 KiB combined by default.

Sourcechecked

Reads

Agent instructions: one or more AGENTS.md files anywhere in the repository; the nearest file in the directory tree takes precedence.

Sourcechecked

AGENTS.override.mdOverride file used by Codex in place of AGENTS.md in the same directory.

Unverified

Not mentioned on cursor.com/docs/rules or on cursor.com/help/customization/rules when checked.

Sourcechecked

Not read

The page lists AGENTS.local.md, AGENTS.override.md and anything under a .agents/ directory as not read.

Sourcechecked

Reads

Checked before AGENTS.md in each directory. In the Codex home, AGENTS.override.md replaces AGENTS.md when it exists.

Sourcechecked

Unverified

Not mentioned on the cited page or in GitHub's "Support for different types of custom instructions" table when checked. That table names copilot-instructions.md, *.instructions.md, AGENTS.md, CLAUDE.md, GEMINI.md and, for code review, REVIEW.md.

Sourcechecked

CLAUDE.mdClaude Code project instructions file.

Reads

The help page says: "Cursor reads CLAUDE.md files the same way it reads AGENTS.md." It names the project root and says these files are always applied, whatever alwaysApply says.

Sourcechecked

Reads

Reads ./CLAUDE.md or ./.claude/CLAUDE.md, plus user, managed and local (CLAUDE.local.md) scopes.

Sourcechecked

Only if configured

Not part of default discovery. The page says Codex also reads names listed in project_doc_fallback_filenames and ignores names not on that list.

Sourcechecked

Reads

Alternative to AGENTS.md: a single CLAUDE.md in the repository root.

Sourcechecked

GEMINI.mdGemini CLI instructions file.

Unverified

Not mentioned on cursor.com/docs/rules or on cursor.com/help/customization/rules when checked.

Sourcechecked

Unverified

Not mentioned on the cited page when checked, including its /init migration list.

Sourcechecked

Only if configured

Not part of default discovery. The page says Codex also reads names listed in project_doc_fallback_filenames and ignores names not on that list.

Sourcechecked

Reads

Alternative to AGENTS.md: a single GEMINI.md in the repository root.

Sourcechecked

.cursorrulesSingle-file rules format used by early Cursor versions.

Migration only

The help page mentions the file only in a migration section, where it calls it "legacy and will be deprecated". It does not say whether Cursor still loads it.

Sourcechecked

Migration only

Mentioned only in the /init migration section. /init reads Cursor rules in .cursor/rules/ or .cursorrules and incorporates the relevant parts into the generated CLAUDE.md. The page does not say Claude Code loads the file itself.

Sourcechecked

Only if configured

Not part of default discovery. The page says Codex also reads names listed in project_doc_fallback_filenames and ignores names not on that list.

Sourcechecked

Unverified

Not mentioned on the cited page or in GitHub's "Support for different types of custom instructions" table when checked. That table names copilot-instructions.md, *.instructions.md, AGENTS.md, CLAUDE.md, GEMINI.md and, for code review, REVIEW.md.

Sourcechecked

.cursor/rules/*.mdcCursor project rules with frontmatter (description, globs, alwaysApply).

Reads

Project rules live in .cursor/rules as .mdc files. A plain .md file in that folder is ignored.

Sourcechecked

Migration only

Mentioned only in the /init migration section, as Cursor rules in .cursor/rules/. /init incorporates the relevant parts into the generated CLAUDE.md. The page does not say Claude Code loads these files itself.

Sourcechecked

Unverified

Not mentioned on the cited page, or in the configuration reference entry for project_doc_fallback_filenames, when checked.

Sourcechecked

Unverified

Not mentioned on the cited page or in GitHub's "Support for different types of custom instructions" table when checked. That table names copilot-instructions.md, *.instructions.md, AGENTS.md, CLAUDE.md, GEMINI.md and, for code review, REVIEW.md.

Sourcechecked

.claude/rules/*.mdClaude Code topic and path-scoped rules.

Unverified

Not mentioned on cursor.com/docs/rules or on cursor.com/help/customization/rules when checked.

Sourcechecked

Reads

The page documents .claude/rules/ for topic-specific and path-scoped rules.

Sourcechecked

Unverified

Not mentioned on the cited page, or in the configuration reference entry for project_doc_fallback_filenames, when checked.

Sourcechecked

Unverified

Not mentioned on the cited page or in GitHub's "Support for different types of custom instructions" table when checked. That table names copilot-instructions.md, *.instructions.md, AGENTS.md, CLAUDE.md, GEMINI.md and, for code review, REVIEW.md.

Sourcechecked

.github/copilot-instructions.mdRepository-wide GitHub Copilot instructions.

Unverified

Not mentioned on cursor.com/docs/rules or on cursor.com/help/customization/rules when checked.

Sourcechecked

Migration only

Mentioned only in the /init migration section. /init reads Copilot rules in .github/copilot-instructions.md and incorporates the relevant parts into the generated CLAUDE.md. The page does not say Claude Code loads the file itself.

Sourcechecked

Unverified

The page says Codex checks fallback names from project_doc_fallback_filenames in each directory from the project root to the working directory. It does not say whether a path such as .github/copilot-instructions.md can be listed.

Sourcechecked

Reads

Repository-wide instructions in .github/copilot-instructions.md.

Sourcechecked

.github/instructions/*.instructions.mdPath-specific GitHub Copilot instructions with an applyTo glob.

Unverified

Not mentioned on cursor.com/docs/rules or on cursor.com/help/customization/rules when checked.

Sourcechecked

Unverified

Not mentioned on the cited page when checked, including its /init migration list.

Sourcechecked

Unverified

Not mentioned on the cited page, or in the configuration reference entry for project_doc_fallback_filenames, when checked.

Sourcechecked

Reads

NAME.instructions.md files under .github/instructions with an applyTo glob. On GitHub.com, supported for the cloud agent and code review only.

Sourcechecked

Legend

Data

The same data is published as matrix.json. Need a starting file? Use the generator.

GitHub Copilot cells describe repository custom instructions on GitHub.com. Editor-specific behavior can differ and is not covered here.