Give Codex project-specific instructions
configuration
// what it does
AGENTS.md holds standing instructions Codex merges into every prompt — build and test commands, conventions, review rules. It is read from the repo root, nested folders, and ~/.codex/AGENTS.md for personal defaults; /init scaffolds one for the repo by inspecting the project.
// shell
$ /init// gotcha
Multiple AGENTS.md files stack (personal, repo, nested), and the file nearest the edited code wins on conflicts. Very large files are truncated at project_doc_max_bytes, so keep the rules tight.