Tokencito Game of the day Play

What is AGENTS.md and which agents read it?

AGENTS.md is a text file in your repository with instructions for coding agents: how to install, how to run the tests and which conventions to follow. It is an open format read by many tools, such as Codex, Cursor and GitHub Copilot. The idea is to keep a single rules file, no matter which agent opens the project.

📄You write one AGENTS.md🤖Many agents read it🤝Claude Code too✅Same rules for all

Put it to the test

A question from the app. Pick an answer.

You use two agents and each reads a different rules file. How do you keep them in sync?

Play the full lesson: Your project rules

A README for agents

A README explains the project to a person; AGENTS.md explains it to a coding agent. It holds what the agent cannot guess: the command that runs the tests, the naming convention, the folder nobody should touch. There are no required fields: it is plain Markdown, with whatever headings you like.

In a repo with several parts, each folder can have its own, and the agent uses the one closest to the file it is working on. Whatever the file says goes into the model's prompt and takes room in its context window every session, so keep it short. As of October 2026, the format is stewarded by the Agentic AI Foundation, part of the Linux Foundation.

AGENTS.md vs CLAUDE.md: does Claude Code read both?

As of October 2026, Codex, Cursor, GitHub Copilot, Gemini CLI and many others read AGENTS.md. Claude Code started out reading its own CLAUDE.md, and since September 2026 (version 2.1.277) it reads AGENTS.md on its own too, with one condition: by default, only if it finds no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the project folder or the folders above it. If both are there, it reads CLAUDE.md and leaves AGENTS.md out. In its settings ("Project instructions", under /config) you can have it read both.

The other way around is similar: Codex does not read CLAUDE.md unless you set it up. So if your team uses several tools, having both files is not enough: you have to decide which one is in charge.

One file for every agent

The simplest setup today: just AGENTS.md, no CLAUDE.md. Claude Code and the other tools all read it, and you change a rule in one place. If you also want Claude only rules, create a CLAUDE.md that imports the other one with a single line: @AGENTS.md. Claude Code reads the imported file first and then whatever you add below, without reading AGENTS.md twice.

The import also helps if someone on the team runs a Claude Code version from before September 2026, which does not read AGENTS.md on its own. Another option is making CLAUDE.md a symbolic link to AGENTS.md, but if someone uses Windows the link can arrive as a one line file. And if a long instruction is only for one task, like shipping a release, it usually fits better in a skill, which loads when needed.

A CLAUDE.md that imports AGENTS.md and adds one rule just for Claude Code
@AGENTS.md

## Claude Code

Use plan mode for changes under src/billing/.

Common mistakes

"If I have both files, Claude reads both." Not by default: it reads CLAUDE.md. "I write 'also read AGENTS.md' in CLAUDE.md and that is that." Then the agent opens it only if it decides to; the @ import always loads it. "I copy the rules into both." It works until the day you change one and forget the other. "I add a CLAUDE.local.md with my personal notes." It counts as a CLAUDE.md: from then on, Claude Code stops reading the project's AGENTS.md, unless you import it there.