AGENTS.md
AGENTS.md: A plain Markdown file of project instructions for coding agents — commands, conventions, folders to leave alone — that several tools read, so one file can serve every agent working on a repository.
Not the same as CLAUDE.md
CLAUDE.md is Claude Code’s own file. AGENTS.md is the one Codex, Cursor and others read; Claude Code reads it only when there is no CLAUDE.md, and otherwise through an @AGENTS.md import or its Project instructions setting.
Where it bites
Each tool reads it differently. Codex walks from the project root down and lets nearer files override, Cursor also reads nested ones, Gemini CLI ignores it until you list it in context.fileName, and Claude Code drops it the moment a CLAUDE.md or even a personal CLAUDE.local.md appears.
Covered in these lessons
Related terms
Where this comes up
Also written as agents.md, agents-md. Checked 2026-10-22.