Software Factories at enterprise scale: A federated platform for agentic developmentDownload the free Whitepaper

AGENTS.md

What Is AGENTS.md?

In short

AGENTS.md is a Markdown file placed in a code repository to give AI coding agents project-specific instructions: how to build and test the project, its conventions, and anything an agent should know before changing code. It has no required sections and no schema, and agents read the file closest to the code they are editing.

Updated 16 September 20263 min read

Keep up with the Knowledge BaseEvery month, get new terms and updated definitions straight to your inbox.

Frequently asked questions#

Does Claude Code read AGENTS.md?
No. Claude Code reads CLAUDE.md, and Anthropic's documentation says so directly. The fix it recommends is a CLAUDE.md that imports the other file with a line reading @AGENTS.md, so both tools work from the same instructions without a second copy, and any Claude-specific guidance goes underneath. A symlink does the same job when nothing Claude-specific is needed, though it needs Developer Mode on Windows. Run /context afterwards and check that CLAUDE.md appears under memory files.
Is AGENTS.md the same as CLAUDE.md?
They do the same job for different tools, and CLAUDE.md does considerably more. AGENTS.md is a filename and a nearest-file-wins convention. CLAUDE.md has a defined hierarchy of managed policy, user, project and local scopes, an import syntax, path-scoped rules and organisation-wide deployment. The interoperation runs both ways: GitHub Copilot's coding agent reads CLAUDE.md and GEMINI.md as well as AGENTS.md, so CLAUDE.md is itself a cross-vendor file in practice.
Where do you put an AGENTS.md file, and should it be committed?
At the root of the repository, committed like any other project documentation, because its whole purpose is that every contributor and every agent gets the same instructions. Monorepos add one per package, and the file closest to the code being edited is the one that applies. Personal preferences belong in a local or user-scoped file instead, which is what the tools provide for exactly this reason.
What should go in an AGENTS.md file?
The commands an agent cannot guess and the rules it would otherwise break: how to build, how to run tests, how to lint, which directories are off limits, and the conventions your reviewers enforce. Keep it short and specific. Every instruction is loaded into context on every turn, so a long file costs tokens continuously and buries the lines that matter.

Sources

  1. AGENTS.md — project site and FAQagents.md
  2. AGENTS.md — project repositorygithub.com
  3. OpenAI — Custom instructions with AGENTS.md, Codex documentationlearn.chatgpt.com
  4. GitHub — Add repository instructions in your IDEdocs.github.com
  5. Cursor — Rulescursor.com
  6. Anthropic — How Claude remembers your projectcode.claude.com
  7. The Linux Foundation — Formation of the Agentic AI Foundation, 9 December 2025linuxfoundation.org
  8. Josh Mock — AGENTS.md as a dark signal, 22 January 2026joshmock.com
  9. Simon Maple, Tessl — Your AGENTS.md file isn't the problem. Your lack of AI evals is., 24 February 2026tessl.io

Train your engineers

See the service →

Found something wrong, missing or badly explained? Tell us. We credit every correction we publish.