BuildGist

Which coding agents read AGENTS.md: Claude Code, Codex, Cursor, Copilot, Windsurf and Gemini CLI?

Kayvan Zahiri ·

Codex, Cursor, GitHub Copilot and Windsurf read AGENTS.md as written. Claude Code reads it when the project has no CLAUDE.md (v2.1.277 or later); with a CLAUDE.md, add @AGENTS.md to it. Gemini CLI reads GEMINI.md by default and reads AGENTS.md once you add it to context.fileName. So one AGENTS.md at the root, plus a one-line CLAUDE.md, covers all six.

BuildGist is a Mac app for Claude Code, Cursor and Codex. Download for Mac.

Tool by tool

The setup that works in all six

AGENTS.md                       shared rules: stack, commands, style, what never to touch
CLAUDE.md                       @AGENTS.md
.gemini/settings.json           {"context": {"fileName": ["AGENTS.md", "GEMINI.md"]}}
packages/api/AGENTS.md          optional: rules for that folder only

Some people symlink instead, ln -s AGENTS.md CLAUDE.md. It works on a Mac, but an import keeps room for a few lines only Claude Code needs, and it survives tools and systems that handle symlinks badly.

What to put in it

Keep it short. Anthropic suggests under 200 lines for CLAUDE.md, and Codex stops at 32 KiB by default. Long files cost context in every session.

Files in subfolders

A nested AGENTS.md adds rules for one part of the project, and each tool resolves it its own way. Codex joins files from the root down, so the one closest to your current folder comes last and wins. Cursor combines nested files with their parents, with the more specific one taking precedence. Windsurf applies a subfolder file only to files under that folder. Copilot uses the nearest file. In Claude Code, nested CLAUDE.md files load when Claude works in that folder.

Check what each tool loaded

What AGENTS.md does not carry

It holds rules, not the task. It cannot say what you asked for an hour ago, what is half done, or what you already ruled out. That lives in each tool's own chat, which the others cannot read. A short handoff note covers it, and so does BuildGist's Continue between Claude Code, Cursor and Codex: start a new chat in one of them in the same project and the card offers the earlier task. Continue does not read or change AGENTS.md or CLAUDE.md. How the two approaches compare is in BuildGist vs CLAUDE.md, AGENTS.md and HANDOFF.md, and the full layout with a handoff note is in how to keep context across Claude Code, Cursor and Codex.

Questions

Does Claude Code support AGENTS.md?

Yes, from v2.1.277, when there is no CLAUDE.md in the working directory or above. Otherwise put @AGENTS.md in CLAUDE.md.

Does Gemini CLI read AGENTS.md?

When you list it in context.fileName in .gemini/settings.json. By default it reads GEMINI.md.

Should I symlink CLAUDE.md to AGENTS.md?

It works, but a CLAUDE.md that imports @AGENTS.md does the same job and leaves room for lines only Claude Code needs.

Sources

What you need

Codex needs you to approve BuildGist once, in Codex. BuildGist shows the steps. Setup is in Getting started.

To explain a run, your computer sends BuildGist what that run needs, and BuildGist passes it to Anthropic. BuildGist does not keep this material. It does not send your whole repository, files the run did not change, or files named like secrets, such as .env files and keys. It keeps the explanation and short cited excerpts of changed code, at most 12 lines each. Secret masking is best-effort. Privacy has the full list.

Every account gets 7 days of BuildGist Pro free, with no card. The 7 days start at your first explanation or Continue handoff. Nobody is charged when the trial ends. After that, BuildGist Pro is $12 per month, plus any applicable tax shown at checkout. See pricing.

Try BuildGist Download for Mac

Apple silicon, macOS 12 or later. United States, 18 or older.

Related

Questions: kayvanandre@gmail.com.