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

Canonical: [CLAUDE.md or AGENTS.md: which file does each tool read?](https://contextingo.com/answers/claude-md-or-agents-md-which-file-does-each-tool-read)

Locale: en

Purpose: 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`.

Content updated: 2026-10-29

Source revision: content.ts 2026-10-29

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/answers.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

**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`.

## 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.

## Go deeper

- [Contextingo vs CLAUDE.md and AGENTS.md](https://contextingo.com/compare/claude-md-agents-md)
- [AGENTS.md explained: what it is, who reads it and how it relates to CLAUDE.md](https://contextingo.com/blog/agents-md-explained)

## Questions

### Does Contextingo need either file?

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