HOW-TO GUIDE
How to check which instruction files Claude Code, Codex, and Copilot CLI read
Based on a guide by joshinamsterdam-ai on DEV Community · Dec 1, 2026
You'll end with: A tested map of which instruction files each coding agent loads, from AGENTS.md and CLAUDE.md to Copilot's file and Cursor rules.
Why it's worth having: In the test, Claude Code dropped AGENTS.md once a CLAUDE.md existed, Codex skipped CLAUDE.md, and Copilot CLI read three files while answering NONE.
At a glance
WHO IT'S FOR
Software engineers and team leads who run more than one AI coding agent in a repository.
LEVEL
Intermediate
COST
Free to read. Claude Code, Codex, and Copilot CLI each run on their own plan.
YOU NEED
A throwaway git repo · Claude Code, Codex CLI, or GitHub Copilot CLI · One instruction file per tool
The method, in short
- 1Put a different codeword in AGENTS.md, CLAUDE.md, the Copilot instructions file, and a Cursor rule, then ask each agent.
- 2Check what loaded with the tool, not the model: /memory in Claude Code and copilot instruction list in Copilot CLI.
- 3Keep shared rules in one root AGENTS.md and start any CLAUDE.md with an @AGENTS.md import so Claude Code reads both.
- 4Add CLAUDE.md to project_doc_fallback_filenames in the Codex config for folders that have no AGENTS.md.
Read the full guide from joshinamsterdam-ai on DEV Community
The post has the five test setups, the result table, and the settings that brought each file back.