Skip to content

AGENTS.md explained: what it is, who reads it and how it relates to CLAUDE.md

AGENTS.md is a plain Markdown file with instructions for coding agents, read by Codex and other tools. What goes in it, and how it fits with CLAUDE.md.

Published by Contextingo.

AGENTS.md is a Markdown file in a repository that tells coding agents how to work there. It is an open convention rather than a strict format, and Codex CLI reads it. Claude Code reads CLAUDE.md instead.

What it is for

  • Commands to install, build, test and lint.
  • A short description of the layout.
  • Conventions the code follows.
  • Boundaries: what not to edit.
  • How to submit work.

Format

There is no required schema. Plain headings and lists work, and the agent reads it as text. Keep it short, because everything in it is read each session.

One file for two tools

If your team uses both Claude Code and Codex, keep the rules in one file and have the other point to it, so the two never drift. The comparison page shows which file each tool reads, checked against the tools’ documentation.

What it cannot do

It holds rules that stay true. It is a poor place for findings, failed attempts and who is working on what. Those change daily and need a status and a source. See what belongs in CLAUDE.md and AGENTS.md.

Questions

Good to know.

Is AGENTS.md an official standard?

It is a convention that several tools read. Check each tool’s documentation for how it treats the file.

Where do I put it?

In the repository root. Some tools also read files in subfolders.

Nothing learned is lost. Nothing unchecked is done.