claude10 min read
AGENTS.md and CLAUDE.md in a Monorepo: Where Instruction Files Go and Which One Wins
Coding agents resolve nested instruction files differently: AGENTS.md uses the closest file, Claude Code stacks every CLAUDE.md from the root down. How to lay out instruction files in a monorepo, what goes at each level, and how to stop them contradicting each other.
By The Moxie Docs teamMoxie Docs Blog

Read the full story
Originally published by Moxie Docs Blog on Sep 24, 2026.
Comments
Sign in to join the discussion.