agents.md
agents.md copied to clipboard
Question - When there are multiple agents.md files in a large monorepo, will it ignore the one at repo and use the nearest agents.md?
I see this on the homepage:
- Large monorepo? Use nested AGENTS.md files for subprojects Place another AGENTS.md inside each package. Agents automatically read the nearest file in the directory tree, so the closest one takes precedence and every subproject can ship tailored instructions. For example, at time of writing the main OpenAI repo has 88 AGENTS.md files.
When there are multiple agents.md files in a repo with conflicting instructions, which one gets precedence? Whether the agents.md at the root and the nearest both get considered and merged?
The Webseite says only the closes one.