Menu

AGENTS.md ignored in a monorepo? Claude Code and Codex walk the tree in opposite directions
📰

AGENTS.md ignored in a monorepo? Claude Code and Codex walk the tree in opposite directions

DEV Community·Iliya Oblakov·6 days ago
#X6QHzmGY
#dev#claude#agents#codex#file
Reading 0:00
15s threshold

Start Codex at the root of a monorepo and the AGENTS.md in your package stays out of that run. Leave a CLAUDE.md in any folder above your working directory and Claude Code, under its default setting, reads that file instead of AGENTS.md . In both cases the AGENTS.md sits where you put it.

So when an AGENTS.md looks ignored, check the path around it before you edit the file. Three things decide what loads: the folder you launched from, a file higher up that takes its place, and a size cap.

The same problem shows up on Stack Overflow for other setups. A question about GitHub Copilot reporting no instructions while AGENTS.md is in the repository had 1,584 views on 5 November 2026, and one about AGENTS.md in a Gradle multi-module project had 149. This post covers Claude Code and Codex, the two I use, per their official docs as of 5 November 2026.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.