Claude Code now supports the universal AGENTS.md instruction file

Until recently, every AI coding assistant had its own quirk: Claude Code wanted a CLAUDE.md file, Codex used AGENTS.md, Cursor required a .cursor/rules folder, and Gemini CLI looked for GEMINI.md. If you managed a project using two or three tools at once, you had to duplicate the same rules across multiple files and ensure they stayed in sync. In September, this inconvenience finally began to disappear: Claude Code has also learned to understand the universal AGENTS.md format.
What is AGENTS.md and why has it become a standard?
AGENTS.md is a simple markdown file in the root of a repository, which explains to an AI agent what usually only a human developer knows: which command to use to build the project, how to run tests, which folders should not be touched, and what coding style to follow. It is a 'README for agents': a dedicated, predictable place where AI finds context and rules for working with the project.
The format was created by OpenAI for Codex back in August 2025, but it has been adopted much more widely. Since its release in August 2025, AGENTS.md has been adopted by over 60,000 open-source projects and agent frameworks, including Amp, Codex, Cursor, Devin, Factory, Gemini CLI, GitHub Copilot, Jules, and VS Code. In December 2025, the format was placed under neutral governance: AGENTS.md is now a simple, universal standard that provides AI coding agents with a single source of project-specific instructions necessary for reliable operation across different repositories and toolsets. It now resides within the Agentic AI Foundation at the Linux Foundation, alongside Anthropic's MCP protocol.
What exactly changed in Claude Code
Before September, Claude Code strictly adhered to its own CLAUDE.md format and simply ignored AGENTS.md files—requiring manual import configurations. The situation changed with the release of version 2.1.277: Claude Code now reads AGENTS.md natively, starting from version v2.1.277 or newer (released on September 18, 2026, when Anthropic adopted the cross-tool specification). Thanks to this, a repository already understood by other agents works with Claude Code without the need to add a CLAUDE.md file, import strings, or extra configuration. An important nuance: this is not a file merge, but a priority system. If a repository contains both AGENTS.md and CLAUDE.md, Claude reads only the CLAUDE.md file. In other words, AGENTS.md is a fallback for projects where CLAUDE.md was never created. If you want to combine both formats, it is easier to add an import string to a short CLAUDE.md file that pulls in the contents of AGENTS.md.
The update was released almost quietly—just one line in the changelog—but the community's reaction showed how much this was in demand: a discussion on Hacker News garnered 719 points and 271 comments within 48 hours, a strong signal that many teams were waiting for exactly this.
How to set up AGENTS.md: a step-by-step guide
If you don't have such a file yet, but your project is being managed through Claude Code, Codex, or Cursor simultaneously, here is a simple plan:
- Create an AGENTS.md file in the root of the repository. No special markup is needed: just plain markdown, without YAML headers or special syntax.
- Describe build and test commands. For example: which package manager to use, how to run the linter, and which command to run tests before committing.
- Specify forbidden zones. Folders with auto-generated code, migrations, environment configs—anything the agent should not touch without explicit permission.
- Add pull request expectations — header format, mandatory checks before committing.
- For different parts of a monorepo you can create separate nested AGENTS.md files—the one closest to the file being edited takes priority.
For a beginner, this is especially useful: instead of explaining the same things to the assistant in every new session, you define the rules once, and the agent reads them automatically before its first action.
How it works in Codex and Cursor
In Codex, it is set up as a 'native' format: when you start a Codex session, it automatically traverses the file system from the git repository root to the current working directory, reading every AGENTS.md it finds. There is a size limit—by default, about 32 KiB of total instructions—so you shouldn't bloat the file indefinitely.
In Cursor, AGENTS.md works as a lightweight alternative to its own rules: these are instructions for the agent in markdown format—a simple alternative to .cursor/rules. If you need precise configuration by file type and conditional rule activation, it is better to keep .cursor/rules, while using AGENTS.md as a general, cross-tool context layer.
For Gemini CLI, a small configuration tweak is required: the filename format is set manually in the settings. To specify a different name or a list of names, you use the context.fileName property, where you can add AGENTS.md alongside GEMINI.md.
What this means in practice
The main benefit is not the support itself, but the time saved on synchronizing rules between tools. If a team is simultaneously trying out Claude Code for complex tasks, Codex for background agents, and Cursor for daily development, it is now enough to keep one file in order instead of three. This is especially noticeable in projects where different team members prefer different assistants—there is no longer a need to argue about whose format is the 'main' one.
If you haven't tried AI coding assistants yet or want to test several models without being tied to a single service, you can interact with GPT, Claude, and Gemini in one window at GEMERA AI—via a Telegram bot or web dashboard—and see which tool is more convenient for you personally.