Urgent.News

What's breaking now, across thousands of outlets.

AI

No, CLAUDE.md and AGENTS.md do not load twice. The docs say why

"CLAUDE.md and AGENTS.md load twice." They don't - the docs say the opposite. And the file that actually costs is 1.4 MB, not 100 KB The pain (19 November, 08:15): his CLAUDE.md and AGENTS.md load twice. He opens a session in Claude and the instructions load two times over - first Claude reads CLAUDE.md, then AGENTS.md as well. Although, he reasons, those files should be identical: his…

Claude.md and Agents.md do not load twice according to the documentation. The user reports that their CLAUDE.md and AGENTS.md files are loading twice in Claude sessions. The files read are 115KB, 54KB, and 11KB in size, totaling over 1.4MB. The documentation states that AGENTS.md is not read if a CLAUDE.md exists in the same directory.

The user's project has 9 files, none of which are identical or symlinked. The main issue is that the project file is 14 times larger than expected, not doubling the load time. The solution is to import AGENTS.md into CLAUDE.md and avoid using symlinks. Alternatively, the user can set claude-md-and-agents-md to true in the configuration.

The user file does not affect whether AGENTS.md is loaded. The documentation confirms that the described issue is not occurring in the user's setup.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

More from Thursday 19 November →