Claude Code now reads AGENTS.md: why yours still isn't loading

Native support is a fallback. One CLAUDE.md, even your private CLAUDE.local.md, switches it off.

November 28, 2026 10 min read

If your AGENTS.md is not loading in Claude Code, look for a CLAUDE.md first. Claude Code reads AGENTS.md on its own now, but only as a fallback: one CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in your working directory or any folder above it, and AGENTS.md is skipped without an error.

That is the usual cause. The rest is detail: which version you need, which files count, the one setting that loads both, and the sessions where native reading is not available at all. The rules here come from the Claude Code memory docs and the changelog as they stood in late November 2026. We also ran a small test on v2.1.332, and it turned up one thing the docs don't mention: an empty CLAUDE.md doesn't block anything.

Does Claude Code read AGENTS.md? Yes, since v2.1.277

The changelog entry for v2.1.277, dated 18 September 2026, reads: "Added AGENTS.md support: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead."

Note the condition: "in a project with no CLAUDE.md". The docs spell out three cases:

So the answer to "does Claude Code read AGENTS.md" is yes, by default, with no setup, as long as nothing with CLAUDE in its name is in the way. Run claude --version before anything else. Below v2.1.277 none of this exists.

Claude Code AGENTS.md not loading: the files that switch it off

The docs list exactly which files count for the check.

These count, and each one makes Claude skip AGENTS.md:

These do not count, and keep loading next to AGENTS.md:

"Any directory above it" is where people get caught. A monorepo with a CLAUDE.md at the root and an AGENTS.md in your package: the root file wins and the package file is not read. A CLAUDE.md that /init generated months ago and nobody opened since: same result. The docs call this out as the usual cause, in their own troubleshooting section titled "My AGENTS.md isn't loading".

We tested it: an empty CLAUDE.md does not block AGENTS.md

We ran this on Claude Code 2.1.332 on 28 November 2026. Each case is a fresh temp folder with an AGENTS.md holding a marker phrase, and claude -p asked to list the marker phrases in its instructions, with all tools switched off so it couldn't open files itself. Every case ran twice with the same result.

All of that matches the docs. These three do not appear in them:

So on this version a CLAUDE.md has to contain something before it switches the fallback off. A single line is enough. That is observed behaviour, not documented behaviour, so don't build on it. It does mean the obvious test, adding an empty CLAUDE.md to see what happens, tells you nothing.

The debug log shows the decision. With AGENTS.md alone it prints no CLAUDE.md found; AGENTS.md loaded: followed by the path.

One more gotcha if you let an agent run this kind of test for you. Our first attempt returned nothing in every case, including a plain CLAUDE.md. The debug log explained why: "not loading [path]/AGENTS.md: it, or what it links to, is in a session's scratchpad". Claude Code refuses to load instruction files from its own scratch folders. The same log line gives the fix: "To load it, move it out of that folder."

CLAUDE.local.md: how your private notes get AGENTS.md ignored

This is the case that looks like a ghost.

Your team commits one AGENTS.md. It works for everyone. You add a CLAUDE.local.md for your own sandbox URL and test data, and you gitignore it, as the docs tell you to. From that moment Claude stops reading the team's AGENTS.md on your machine only. Nobody else can reproduce it, because nobody else has your file.

The docs say so directly: because CLAUDE.local.md counts, adding one "stops Claude from reading AGENTS.md for you". So if you searched for "CLAUDE.local.md AGENTS.md ignored", that is the mechanism, and it is documented behaviour, not a bug.

The fix is a setting, covered next.

The Project instructions setting: load CLAUDE.md and AGENTS.md together

Type /config in a session and find Project instructions. It has four values:

If you keep a CLAUDE.local.md, or your repo has both files for good reasons, claude-md-and-agents-md is the value you want. You can also set it in a settings file:

{
  "pluginConfigs": {
    "cc-plugin-agents-md@builtin": {
      "options": { "instructionFiles": "claude-md-and-agents-md" }
    }
  }
}

Two details in the docs matter here.

First, Claude Code reads this entry from ~/.claude/settings.json, a --settings file or managed settings, and ignores it in project and local settings files. Our test agrees: the same JSON passed with --settings loaded both files, and in the project's .claude/settings.json it did nothing. You cannot commit this fix to the repo. Every teammate sets it for themselves, or an admin pushes it through managed settings.

Second, the plugin was renamed. Before v2.1.285 its ID was agents-md@builtin, and those versions ignore an entry under the new name. From v2.1.285 either ID works. If older installs read the same settings file, use the old ID.

Sessions where AGENTS.md support is unavailable

In some sessions the Project instructions row does not appear in /config at all, and Claude reads CLAUDE.md files only. The docs list three reasons:

There is a fourth one for anyone pinned to an old build. Before v2.1.281, sessions on Amazon Bedrock, or with telemetry disabled, read CLAUDE.md only. The changelog for v2.1.281 (23 September 2026) widened support to Bedrock, Google Vertex AI, Microsoft Foundry, LLM gateways and sessions with telemetry off. For five days, turning off telemetry also turned off your AGENTS.md.

For any of these sessions the docs give one answer: import the file from a CLAUDE.md. This is the same import people used before native support, and it still works everywhere.

@AGENTS.md
## Claude Code
Use plan mode for changes under `src/billing/`.

Save that as CLAUDE.md next to your AGENTS.md. Claude reads the imported file first, then the lines below it. The docs also confirm that keeping the import never makes Claude read AGENTS.md twice, whichever setting value you use.

A symlink (ln -s AGENTS.md CLAUDE.md) also works, with a catch the docs flag for mixed teams. On Windows, Git checks a committed symlink out as a plain text file unless core.symlinks is enabled. That clone ends up with a one-line CLAUDE.md containing the text AGENTS.md and none of your instructions. If anyone on the team uses Windows, use the import.

What Claude Code still does not read

Native support covers AGENTS.md and .claude/AGENTS.md. The docs list what is not read:

If you came from Codex, where AGENTS.override.md is a real feature, or from a tool that reads AGENTS.local.md, those files do nothing in Claude Code.

A natively read AGENTS.md also behaves a little differently from a CLAUDE.md. InstructionsLoaded hooks do not fire for it. Directories you add with --add-dir load their CLAUDE.md (when CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD is set) but not their AGENTS.md. If you log instruction loading with a hook and see nothing for AGENTS.md, that is why.

Old workarounds that now hurt

Plenty of repos carry a workaround from before September 2026. The docs go through each:

The plain-words version deserves a second look, because it fails twice. The sentence alone guarantees nothing, and the CLAUDE.md that holds it is one of the files that switches off the native fallback.

How to confirm AGENTS.md loaded

Run /memory and look for the AGENTS.md path in the list. In an interactive session with no CLAUDE.md, the docs say you also see a line like this in the conversation:

no CLAUDE.md found; AGENTS.md loaded: /home/you/repo/AGENTS.md

One trap: before v2.1.280, /memory and /context did not list an AGENTS.md that Claude read directly. On those versions the file can be loaded and still be missing from the list. Update, or ask Claude what its project instructions say.

If the file is loaded and Claude still does not follow it, that is a different problem. An instruction file is context, not enforcement, and a long one gets followed less. Our guide on structuring CLAUDE.md for large projects applies to AGENTS.md line for line. The Cursor version of the same complaint is in Cursor rules not working.

AGENTS.md vs CLAUDE.md in 2026: which one to keep

Our opinion, as of December 2026: keep AGENTS.md as the one shared file, and add a CLAUDE.md only when you have Claude-specific lines to put under an @AGENTS.md import.

A correction is due here. Our March post, AGENTS.md vs CLAUDE.md, tagged AGENTS.md as "legacy" and recommended a separate native file per tool. That advice is out of date. Claude Code now reads the file directly, and so do the other major coding agents.

The short checklist for "Claude Code AGENTS.md not loading":

If you are starting from an empty repo, you can generate an AGENTS.md for your stack and trim it from there. Keep it short. The docs recommend under 200 lines per instruction file, and say plainly that longer files reduce adherence.

Doing this across a whole company? contextarch for teams shows which AI tool loads which instructions in every repo you have, and stops a pull request from breaking them.
contextarch.ai·Context Doctor·Setup check·Generator·Templates·Blog·Newsletter