One AGENTS.md for Claude Code, Codex and Cursor
Write your agent rules once and have every coding agent you use read them. Checked against the official docs on Oct 19, 2026. Updated Oct 23 with Agent Skills.
Why bother
Most people don't stick to one agent anymore. Theo shared that over 60% of T3 Code users who used Codex in the last 2 weeks also used Claude Code (source). If your rules live in three different files, they drift apart, and one agent ends up following last month's rules.
Who reads AGENTS.md
- Codex (OpenAI): listed as a supported agent on agents.md, the format's home page, along with Jules, Gemini CLI, GitHub Copilot's coding agent, Windsurf, Zed, Aider and others.
- Cursor: reads
AGENTS.mdin the project root and in subdirectories. A nested file applies when the agent works on files in that folder (Cursor docs). - Claude Code: from v2.1.277 it reads
AGENTS.mdon its own, but by default only when there's noCLAUDE.md,.claude/CLAUDE.mdorCLAUDE.local.mdin your working directory or above it (Claude Code docs).
Setup in 3 steps
- Put your rules in
AGENTS.mdat the repo root: setup commands, the one command that checks your work, code style, and what the agent must never do. - Delete or merge any old project
CLAUDE.mdinto it, so Claude Code doesn't skipAGENTS.md. - If you need a
CLAUDE.mdtoo, open/configin Claude Code and set Project instructions toclaude-md-and-agents-mdso it reads both.
# check what Claude Code loaded: start a session and look for
# "no CLAUDE.md found; AGENTS.md loaded: /path/to/repo/AGENTS.md"
claude
Gotchas
- Adding a personal
CLAUDE.local.mdmakes Claude Code stop readingAGENTS.mdby default. Use theclaude-md-and-agents-mdsetting if you want both. - Claude Code doesn't read
AGENTS.local.md,AGENTS.override.mdor anything in a.agents/folder. - On Claude Code versions before v2.1.277, it reads
CLAUDE.mdonly. Update, or importAGENTS.mdfrom aCLAUDE.md. The oldln -s AGENTS.md CLAUDE.mdtrick also still works.
AGENTS.md or Agent Skills?
Use both. They do different jobs, and since Oct 22, 2026 both live at the Linux Foundation's Agentic AI Foundation, next to MCP (AAIF announcement).
- AGENTS.md holds the rules for one repo that every session should follow: setup, the check command, style, and what never to touch.
- Agent Skills are folders with a
SKILL.mdplus any scripts or reference files, for a task the agent only needs sometimes, like a release checklist or a PDF workflow. Anthropic says 70+ agent platforms, including ChatGPT, Cursor, GitHub Copilot and VS Code, support the format, with 1 million skills published and nearly 280 million installs (Anthropic, Oct 22).
Rule of thumb: if it applies to every task in the repo, put it in AGENTS.md. If it's a repeatable procedure you'd hand to a specialist, make it a skill. Skills can ship scripts, so read any skill you didn't write before you install it.
A starter AGENTS.md that keeps builds green
Our free Checkpoint Loop is an AGENTS.md plus a one-command check script. The agent works on a branch in small steps and only commits when the check passes. Making a game? Pack #001 ($19) adds an AGENTS.md for game projects, a playtest agent and a fun review.
Next: make your coding agent prove it's done, a verification checklist based on how the Claude Code team reviews code.
Free, weekly, one-click unsubscribe. We note changes like this one every week.