Claude Code merges conflicting CLAUDE.md rules; Codex picks the nearest AGENTS.md
11/10/2026 — 11/11, 18:19·1 sources (all)·2 reports (all)
Key takeaways
- Claude Code has no stated priority order for CLAUDE.md files and appends every one it finds, so Anthropic's docs say Claude may pick either…
Background & analysis
On 2026-11-10, the AI section of DEV Community published a piece titled 'AGENTS.md ignored in monorepos? Claude Code and Codex look in different directions.' It argues that the two tools differ in how they locate AGENTS.md inside a monorepo.
Start Codex at the root of a monorepo, and the AGENTS.md sitting in a package inside that repo never enters the current 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 exactly where you put it; what keeps it out is the path around it rather than the file itself.
Drawing on each company's official documentation, the author identifies three factors that decide what gets loaded: the folder you launched from, a replacement file higher up the tree, and a size cap. So when an AGENTS.md looks ignored, check the path around it before you edit anything. The article does not trace an earlier origin or any later developments, so the discussion stops at this troubleshooting guidance.
AI-generated from 1 reports · updated 4 days ago
Latest turnAccording to the post, Claude Code has no precedence order: every CLAUDE.md it finds is concatenated into context, and Anthropic's docs say Claude "may pick one arbitrarily" when two instructions conflict. Codex takes the nearest AGENTS.md and Cursor orders Team → Project → User rules, but those orderings are only hints to the model, so the reliable fix is keeping each rule in exactly one place.
Related AI tools
- Heat index
- 25
- All sources
- 1
- All reports
- 2
- First seen
- 4 days ago
Reports on this story headlines open the original
According to the post, Claude Code has no precedence order: every CLAUDE.md it finds is concatenated into context, and Anthropic's docs say Claude "may pick one arbitrarily" when two instructions conflict. Codex takes the nearest AGENTS.md and Cursor orders Team → Project → User rules, but those orderings are only hints to the model, so the reliable fix is keeping each rule in exactly one place.
DEV Community · AIAI score 58
If you start Codex at the root of a monorepo, an AGENTS.md inside a package is skipped for that run; under default settings, Claude Code reads a CLAUDE.md in a parent folder instead. The author, citing official docs for both tools, says three factors decide what loads: the launch directory, a higher-level file that takes precedence, and a size cap, so check the path before editing the file.
DEV Community · AIAI score 55
Other stories people are talking about
- Heat index 71Shared memory for Claude Code and Codex: pull it on demand, don't inject it1 sources
- Heat index 98NewDeveloper shares Claude Code context control and subagent model routing1 sources
- Heat index 90NewDeveloper Shares Experience Using Claude to Structure 3D Configurator Rules from Catalogs1 sources
- Heat index 84Developers Discuss Boundaries and Challenges of Claude Opus 5.5 in Multi-Round Code Reviews1 sources
- Heat index 96NewClaude and Kimi take down a simulated wind farm in test1 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

