Skip to content

CLAUDE.md or AGENTS.md: which file does each tool read?

Short answer. As of 26 October 2026, Claude Code reads CLAUDE.md, and from v2.1.277 reads AGENTS.md only when no CLAUDE.md or CLAUDE.local.md exists or when CLAUDE.md imports it. Codex reads AGENTS.md and ignores CLAUDE.md. For both, keep shared rules in AGENTS.md and start CLAUDE.md with `@AGENTS.md`.

Updated by Contextingo.

A catch

A personal CLAUDE.local.md counts as a CLAUDE.md. Adding one stops Claude Code from reading an AGENTS.md that nothing imports.

What belongs in the file

Build and test commands, code style, repository rules. Things that change while the work happens (decisions, findings, failed attempts, handoffs) belong in project records instead.

These rules move with releases. Check the dated table on the comparison page.

Questions

Good to know.

Does Contextingo need either file?

No. Your AI reads the project over MCP. The setup command only adds a short pointer section.

Nothing learned is lost. Nothing unchecked is done.