- Symptom
- Rules in packages/api/AGENTS.md are not followed when Codex starts at the repo rootEdits to AGENTS.md during a session have no effect until a new session
- Cause
- Codex builds its instruction chain once per run, walking from the project root down to the current working directory and no further. Files in deeper folders, and edits made after launch, are not read.
- Fix
- Start Codex in the folder whose rules apply with --cd, keep shared rules in the root AGENTS.md, and restart after changing instructions.
- Apply
codex --cd services/payments- Affected
- Codex CLI, IDE extension, and ChatGPT desktop app, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders