GPT WORLD / INDEPENDENT CODEX FIELD MANUAL Source review · 2026-07-31

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.

CODEX / WORKSPACE-WRITE
  1. $cd your-repository
  2. $codex --sandbox workspace-write --ask-for-approval on-request
  3. /plan Map the change, risks, and verification before editing
  4. /diff
  5. /review

SYSTEM / FOUR DURABLE QUESTIONS

Eighteen CLI lessons. Six API notes in a separate archive. Every command source-checked.

  1. 01

    CONTEXT

    Name the repository, goal, constraints, and done condition.

  2. 02

    BOUNDARY

    Choose sandbox and approval settings before granting autonomy.

  3. 03

    GUIDANCE

    Encode durable team knowledge in AGENTS.md and config.toml.

  4. 04

    EVIDENCE

    Run checks, inspect the diff, and review before accepting work.

Evidence desk

Primary documents, visible at the point of claim.