agents.md are actually found recursively

This commit is contained in:
pap
2025-07-29 22:02:52 +01:00
parent fcfcf310e1
commit 875d6a2691

View File

@@ -253,11 +253,7 @@ 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 order and uses the first one:
1. `AGENTS.md` in the current working directory
2. `AGENTS.md` at repo root
You can provide Codex with additional instructions by adding an `AGENTS.md` file. Codex first checks your current working directory, and if no file is found, it searches upward through parent directories until it reaches the root of your Git repository.
---