AGENTS.md, a README for coding agents
Checked on 28 Nov 2026
The format
The official site describes AGENTS.md as "a simple, open format for guiding coding agents", best thought of as "a README for agents": a dedicated, predictable place to give AI coding agents the context and instructions they need to work on a project.
README files remain for humans (quick starts, project descriptions, contribution guidelines). AGENTS.md complements them with what an agent needs and what would clutter a README: build steps, tests, conventions.
What the official FAQ says
- Required fields: none. It is standard Markdown; use any headings you like.
- Conflicts: the AGENTS.md closest to the edited file wins; explicit user chat prompts override everything.
- Test commands: if they are listed, the agent attempts to run the relevant checks and fix failures before finishing.
- Updates: treat the file as living documentation.
- Migration: rename the existing file and add a symbolic link for backward compatibility.
mv AGENT.md AGENTS.md && ln -s AGENTS.md AGENT.md
Getting started
- Create
AGENTS.mdat the repository root. - Cover what matters. Common sections named by the site: project overview, build and test commands, code style guidelines, testing instructions, security considerations.
- Add the rest: commit messages, pull request guidelines, security gotchas, deployment steps.
- In a monorepo, put an AGENTS.md in each package: agents read the nearest file in the directory tree. The site notes that, at the time of writing, the main OpenAI repository had 88 of them.
Example from the site:
# AGENTS.md
## Setup commands
- Install deps: `pnpm install`
- Start dev server: `pnpm dev`
- Run tests: `pnpm test`
## Code style
- TypeScript strict mode
- Single quotes, no semicolons
- Use functional patterns where possible
Configuring two tools (per the site)
Aider, in .aider.conf.yml:
read: AGENTS.md
Gemini CLI, in .gemini/settings.json:
{ "context": { "fileName": "AGENTS.md" } }
Tools listed on the site
The home page says the format works with: Codex (OpenAI), Jules (Google), Factory, Aider, goose, opencode, Zed, Warp, VS Code, Devin (Cognition), Autopilot & Coded Agents (UiPath), Junie (JetBrains), Amp, Cursor, RooCode, Gemini CLI (Google), Kilo Code, Phoenix, Semgrep, GitHub Copilot's coding agent, Ona, Windsurf (Cognition) and Augment Code.
This list only reflects what agents.md displays. How each tool actually loads the file (nesting, precedence, alternative file names) depends on the tool and should be checked in its own documentation.
Origin and stewardship
According to the site, AGENTS.md emerged from collaborative work across the ecosystem, including OpenAI Codex, Amp, Jules (Google), Cursor and Factory. It is now stewarded by the Agentic AI Foundation under the Linux Foundation; the footer reads "AGENTS.md a Series of LF Projects, LLC". The site states that more than 60,000 open-source projects use the format.
AGENTS.md and skills
AGENTS.md holds instructions that always apply to a repository. Skills package procedures loaded on demand. The two are complementary. For the wider picture, see How to choose.