From fcfcf310e1d0ec248d0c22d7a7054bf59e9ff2d9 Mon Sep 17 00:00:00 2001 From: pap Date: Tue, 29 Jul 2025 21:49:31 +0100 Subject: [PATCH] agents.md behavior doc fix --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 60e44298a3..4b5e6faf74 100644 --- a/README.md +++ b/README.md @@ -253,11 +253,11 @@ Key flags: `--model/-m`, `--ask-for-approval/-a`. ## Memory & project docs -You can give Codex extra instructions and guidance using `AGENTS.md` files. Codex looks for `AGENTS.md` files in the following places, and merges them top-down: +You can give Codex extra instructions and guidance using `AGENTS.md` files. Codex looks for `AGENTS.md` files in the following order and uses the first one: + +1. `AGENTS.md` in the current working directory +2. `AGENTS.md` at repo root -1. `~/.codex/AGENTS.md` - personal global guidance -2. `AGENTS.md` at repo root - shared project notes -3. `AGENTS.md` in the current working directory - sub-folder/feature specifics ---