AGENTS.md
AGENTS.md is a shared instructions file for a project that many agents read. Codex, Cursor, Copilot, Windsurf, OpenCode and others use it, and Claude Code does when the project has no CLAUDE.md, so it is a vendor-neutral counterpart of CLAUDE.md.
Frequently asked questions
Which agents read AGENTS.md?
Codex, Cursor, Copilot, Windsurf, OpenCode and others. Claude Code reads AGENTS.md when the project has no CLAUDE.md; Gemini CLI does after the name is added to the context.fileName setting. A per-agent table is in the article, checked 15.11.2026.AGENTS.md or Cursor rules?
Cursor reads both AGENTS.md and its own rules in .cursor/rules. AGENTS.md is a shared file for different agents, at the root and in subfolders, with no modes; rules in .cursor/rules are .mdc files that can apply always, by description, by file pattern or manually. Cursor docs advise replacing the legacy .cursorrules with a rule in Always Apply mode.How is AGENTS.md different from spec.md?
AGENTS.md sets rules for the whole project and enters every agent session. spec.md describes one task — requirements and done criteria — and lives until the task is closed.Source: AGENTS.md official site
Read more: AGENTS.md, CLAUDE.md and spec.md: what goes whereCursor rules vs AGENTS.md: what goes where
Where it appears · 10
- Codex CLI not available in your country · Harness
- Claude Code · Harness
- Codex vs ChatGPT · Harness
- Cursor rules vs AGENTS.md · Specs and context
- AI agent maturity levels · Specs and context
More 5
- What is OpenSpec, setup and commands · Specs and context
- AI agent = LLM + harness · Harness
- Will AI agents take your job · Harness
- Harness engineering in practice · Harness
- What are AGENTS.md and CLAUDE.md and how they differ from spec.md · Specs and context