Verified Codex
Generate AGENTS.md with /init to record project rules
What it does
Type /init in the TUI to scaffold AGENTS.md. Put build commands, style rules and no-go areas there; Codex reads it every session.
How
- Run
codexat the repo root - Type
/init - Edit the generated
AGENTS.md
How much to trust this
| Applies to | ≥ 0.163.0 |
|---|---|
| Verified | Oct 17, 2026 · v0.163.0 · checked against docs 按官方 CLI reference 核对;/init 是交互界面命令,未在本机实测 |
| Depends on | /initAGENTS.md |
| Source | https://developers.openai.com/codex/cli/reference (official_docs) |