CODEX CLI FIELD MANUAL / 01
Direct the work.Verify the evidence.
A terminal-first field manual for turning Codex from a one-off coding assistant into a configured engineering teammate: eighteen practical CLI lessons, exact commands, and explicit safety boundaries.
TERMINAL / FIRST SAFE RUN
A safe first run
Workspace write stays bounded; approvals remain available when Codex needs more authority.
- $
cd your-repository - $
codex --sandbox workspace-write --ask-for-approval on-request - ›
/plan Map the change, risks, and verification before editing - ›
/diff - ›
/review
SYSTEM / FOUR DURABLE QUESTIONS
Eighteen CLI lessons. Six API notes in a separate archive. Every command source-checked.
- 01
CONTEXT
Name the repository, goal, constraints, and done condition.
- 02
BOUNDARY
Choose sandbox and approval settings before granting autonomy.
- 03
GUIDANCE
Encode durable team knowledge in AGENTS.md and config.toml.
- 04
EVIDENCE
Run checks, inspect the diff, and review before accepting work.
Evidence desk