AGENTS.md – Open format for guiding coding agents
TL;DR Highlight
One AGENTS.md next to your README gives many coding agents the same instructions.
Who Should Read
A developer using several coding agents like Codex, Cursor, and Claude Code who is tired of maintaining separate instruction files per tool.
Core Mechanics
- AGENTS.md is a README for agents
- It is a plain Markdown file at the repo root.
- It holds context agents need, like build steps, tests, and code style.
- It is deliberately separate from README
- README stays short and written for human contributors.
- Detailed agent-focused guidance that would clutter it goes in AGENTS.md.
- There are no required fields
- You can use any headings you like.
- The agent just reads the text you provide.
- Monorepos use nested files
- Each package can have its own AGENTS.md.
- The closest file to the edited file wins, and explicit user chat prompts override everything.
- Per the source, the main OpenAI repo has 88 AGENTS.md files.
- Listed test commands get run
- The FAQ says agents will try to run the checks you list and fix failures before finishing.
- Wide tool support, now under a foundation
- The source lists Codex, Jules, Cursor, Gemini CLI, Aider, VS Code and more as compatible.
- It is now stewarded by the Agentic AI Foundation under the Linux Foundation.
- It claims use by over 60k open-source projects.
Community Reactions
- Objection: it's just a filename, not a format
- One commenter said it's just Markdown in a namespace.
- Another saw it as OpenAI marketing and noted Anthropic/Claude is missing.
- Experience: a folder beats one big file
- A commenter said an .agents folder with index.md and topic files worked much better than one giant file.
- They said it saves tokens, improves accuracy, and is easier to maintain.
- Experience: tools use different filenames
- A commenter uses ruler to generate files for Claude Code, Gemini, and Aider.
- Another suggested symlinking CLAUDE.md to AGENTS.md.
- Concern: subfolder context may not merge into root
- A commenter said Claude Code adds subfolder context files to the root context, which AGENTS.md seems not to support.
- Opinion: models need different prompts
- One commenter argued a single context can't be best for all models.
- They said GPT-5 in OpenCode was terrible compared with Claude Code.
How to Apply
- Create a root AGENTS.md with three commands
- Add the file at the root of a repo you use.
- Write the install, dev server, and test commands plus a few style rules.
- Give an agent a task and check that it runs the tests itself.
- Unify existing instruction files into AGENTS.md
- If you have CLAUDE.md or similar, rename it to AGENTS.md.
- Create a symlink as in the source to keep old tools working.
- Point Aider and Gemini CLI at the file
- For Aider, add read: AGENTS.md to .aider.conf.yml.
- For Gemini CLI, set context.fileName to AGENTS.md in .gemini/settings.json.
- Split monorepo guidance per package
- Put package-specific instructions in each package folder.
- Keep only shared rules at the root.
Try It
# Paste into Claude Code or Codex, run from the repo root
Explore this repo and create an AGENTS.md at the root.
Sections: Project overview, Setup commands, Build and test commands, Code style, Testing instructions, PR instructions, Security considerations.
Rules:
- Only include commands you verified from scripts and config files in the repo
- Mark unverified items as TODO
- Leave human-facing intro material in the README, not in AGENTS.md
- Main language/package manager: {{language and package manager}}
- Must-follow rules: {{team rules}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques