Zero Labs
Industry News / AI

Does Claude Code Read Your AGENTS.md? We Checked 283 Repos — in 161 It Still Reads CLAUDE.md.

Source · Towards AI By Decoding AI by Nueravi

From the publisher’s feed, collected in the ZeroLabs newsroom.

Does Claude Code Read Your AGENTS.md? We Checked 283 Repos — in 161 It Still Reads CLAUDE.md Instead.Claude Code reads AGENTS.md only when no CLAUDE.md counts, and 161 of the 283 top repos shipping an AGENTS.md have one. Measured 24 September 2026.Every actively maintained top-starred repository that ships an AGENTS.md, split by which file Claude Code 2.1.277 actually loads under its default setting. Measured 24 September 2026.Key takeawaysClaude Code does read AGENTS.md — since version 2.1.277, released 18 September 2026 — but only when no CLAUDE.md counts in your working directory or above it.We checked 283 top-starred repositories that ship an AGENTS.md. In 161 of them (56.9%) a counting CLAUDE.md sits alongside it, so Claude Code reads the CLAUDE.md and the AGENTS.md is never loaded.122 repositories (43.1%) get the new behaviour: an AGENTS.md and no CLAUDE.md anywhere above..claude/CLAUDE.md counts too. Checking only for a root CLAUDE.md misclassified 4 repositories in our first pass, including python/cpython and ClickHouse/ClickHouse.283 of 815 actively maintained top repositories (34.7%) ship an AGENTS.md at all.TL;DRYes — Claude Code reads AGENTS.md, and in most repositories that have one it still won’t. The fallback fires only when no CLAUDE.md counts, and we measured how often that condition actually holds: across 815 actively maintained top-starred repositories, 283 ship an AGENTS.md, and 161 of those 283 also ship a CLAUDE.md that suppresses it. So for 56.9% of the repositories the feature was aimed at, nothing changed on 18 September.The question is not whether Claude Code supports AGENTS.md. It is whether your repository is one of the ones where support does anything.Status, 24 September 2026: measured against Claude Code 2.1.277 behaviour as documented, over a corpus regenerated the same day. Re-check with two requests per repository against raw.githubusercontent.com for AGENTS.md and CLAUDE.md; the script is linked at the end.Does Claude Code read AGENTS.md?Yes, natively, from version 2.1.277. The changelog entry dated 18 September 2026 reads: “Added AGENTS.md support: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead.” Before that release the answer was no, and the shared guidance was to import AGENTS.md from a CLAUDE.md or symlink the two. That guidance still works and is still documented — it is now one of three configurations rather than the only one.When does Claude Code read AGENTS.md instead of CLAUDE.md?Only when no CLAUDE.md counts. Anthropic’s memory documentation states the rule as a three-row table: an AGENTS.md with no CLAUDE.md or CLAUDE.local.md at or above your working directory means Claude reads your AGENTS.md; an AGENTS.md and a CLAUDE.md means Claude reads “your CLAUDE.md files only”; and a CLAUDE.md that already imports AGENTS.md means Claude reads the CLAUDE.md with the import expanded. The default is a fallback, not a merge.Which files count as “a CLAUDE.md” for that check?Three of them, and the second is the one people miss. The documentation is explicit that a CLAUDE.md, a .claude/CLAUDE.md or a CLAUDE.local.md in your working directory or any directory above it will suppress AGENTS.md. Three other files explicitly do not count and keep loading alongside it: your personal ~/.claude/CLAUDE.md, your organisation's managed CLAUDE.md, and anything in .claude/rules/. A gitignored CLAUDE.local.md of your own is enough to stop Claude reading the AGENTS.md your team committed.How many top repositories actually ship an AGENTS.md?283 of 815, or 34.7%. The corpus is every repository in the Top-100-by-stars lists for ten languages — Python, JavaScript, TypeScript, Go, Rust, Java, C++, C#, Ruby and PHP — published by the Github-Ranking project, filtered to repositories with a commit in the last 90 days, so the sample is code a coding agent could plausibly be pointed at today. Each was checked with GET requests against raw.githubusercontent.com at its default branch. The agents.md site claims adoption by "over 60k open-source projects"; a third of the most-starred active repositories is the shape of that number at the top of the distribution.In how many of those does Claude Code still ignore the AGENTS.md?161 of 283, which is 56.9%. Those repositories ship an AGENTS.md and a counting CLAUDE.md side by side, so under the default setting Claude Code loads the CLAUDE.md and never reads the AGENTS.md. The remaining 122 repositories (43.1%) have an AGENTS.md and no counting CLAUDE.md, and those are the ones where 2.1.277 changed something. The list of 161 is not obscure: it includes rust-lang/rust, pytorch/pytorch, home-assistant/core, huggingface/transformers, ollama/ollama, supabase/supabase, zed-industries/zed, cli/cli, Homebrew/brew and ansible/ansible.The same question asked of each language’s top 100 in the same week. A Python team that adopts AGENTS.md is about 1.7 times likelier than a Java team to also be carrying the CLAUDE.md that suppresses it.Why did our first count say 157 and not 161?Because the first pass checked two paths and the rule has four. Checking only root AGENTS.md and root CLAUDE.md returned 157 suppressed of 283. Re-running with .claude/CLAUDE.md and .claude/AGENTS.md included moved four repositories — python/cpython, ClickHouse/ClickHouse, photoprism/photoprism and basecamp/fizzy — out of "the fallback fires here" and into "it does not." All four keep their project instructions at .claude/CLAUDE.md with no root CLAUDE.md, which reads like an AGENTS.md-only repository until you check the second path.The lesson generalises past this count: the file that decides the behaviour is not always the file in the obvious place. If you are auditing your own repositories for this, check all three counting paths, not the one at the root.The census and the verification pass as they ran. The four repositories listed are the ones a root-only check misfiled — all four keep their project instructions at .claude/CLAUDE.md.How do I make Claude Code read both files?Change the Project instructions setting from its default claude-md-or-agents-md to claude-md-and-agents-md, in /config or in a settings file. On that setting Claude loads each directory's CLAUDE.md first and its AGENTS.md after, and skips an AGENTS.md it has already loaded through an import or symlink, so you do not get the file twice. The other two values are claude-md, which ignores AGENTS.md entirely, and managed-only, which loads just your organisation's managed instructions.Should I delete my CLAUDE.md so Claude reads my AGENTS.md?Only if you want Claude to read strictly less. The import route keeps both: a CLAUDE.md containing an @AGENTS.md import loads the shared file plus whatever Claude-specific instructions sit around it, and it works on versions older than 2.1.277 where native support is unavailable. Deleting the CLAUDE.md to trigger the fallback throws away the Claude-specific half to gain a file you could have imported.What this does not showThis is a top-of-the-distribution sample, not the 60k. 815 heavily-starred, active repositories are not representative of every project with an AGENTS.md, and a small private repo is far less likely to carry both files.CLAUDE.local.md counts and is invisible to us. It is gitignored by convention, so our 161 is a floor: any developer with a local one in a repository we counted as "fallback fires" is not actually getting the fallback.We measured files, not sessions. We did not run Claude Code against these repositories and read the no CLAUDE.md found; AGENTS.md loaded line. The claim is about which files are present against a documented rule, not an observed load.Settings override all of it. Every number here describes the default claude-md-or-agents-md behaviour; a team on claude-md-and-agents-md is in neither bucket. Directories above a working directory also count, which in a monorepo can differ from what the repository root implies.Lowercase agents.md appeared in 1 of 250 sampled repositories with no root AGENTS.md, so 283 is very slightly low.FAQDoes Codex read CLAUDE.md the way Claude Code now reads AGENTS.md? No. AGENTS.md is the format Codex and several other agents read natively; the 18 September change is Claude Code adopting someone else’s convention, not a mutual exchange. If you maintain one file for both, AGENTS.md has the wider set of readers — the argument for making it the real file and pointing CLAUDE.md at it.Does a subdirectory AGENTS.md get picked up? Yes, on demand. When the fallback is active, Claude reads a subdirectory’s AGENTS.md when it opens a file there — provided that subdirectory has none of the three counting CLAUDE.md files of its own. AGENTS.local.md, AGENTS.override.md and anything under a .agents/ directory are explicitly not read.Does this work on Bedrock or Vertex? The 2.1.277 changelog entry says “not yet on Bedrock, Vertex or Foundry.” In sessions where native AGENTS.md support is unavailable, Claude Code reads CLAUDE.md files only and the Project instructions setting does not appear — so the import route is the portable option.Is 56.9% going to fall over time? It depends which file teams delete, and that is worth watching rather than predicting. A repository leaves the suppressed group by removing its CLAUDE.md or switching the setting, and joins it the moment anyone adds one back. We will re-run the count and publish the delta rather than guess.Why measure this if the rule is documented? Because the rule says what happens in a condition, and nobody had counted how often the condition holds. The top search results for this question in the release week explain the feature correctly and contain no counts — including a widely circulated gist, written before 2.1.277, whose answer was right when published and is now out of date.What we would ask youOpen your own repository and check all three paths — CLAUDE.md, .claude/CLAUDE.md, CLAUDE.local.md. Which bucket were you in, and was it the one you assumed? We would especially like to hear from anyone who found a CLAUDE.local.md they had forgotten about.We publish one original measurement a week, with the method attached and the corpus named. The next one counts what a new agent orchestrator’s manifest actually enforces. Follow to get it when it lands.Sources & ReferencesClaude Code changelog — version 2.1.277, 18 September 2026, the AGENTS.md support entry.How Claude remembers your project — the precedence table and the list of files that count.agents.md — the format specification and its “over 60k open-source projects” adoption claim.EvanLi/Github-Ranking — the Top-100-by-stars corpus, commit 5aa9439, generated 24 September 2026.Our earlier count of 592 repositories for AGENTS.md and CLAUDE.md — what was inside those files, two weeks before the fallback shipped.Switching AI models in production isn’t routing — the interoperability pillar this belongs to.Written by Decoding AI. We measure what the AI industry asserts, and publish the method with the number.Does Claude Code Read Your AGENTS.md? We Checked 283 Repos — in 161 It Still Reads CLAUDE.md. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.