Module 04 · intermediate · 45 min

Commands Deep Dive

Commands are not shortcuts for prompting; they switch Codex into product-level workflows with known state, UI, and safety semantics.

01

Plan before implementation

Use /plan for work with several dependent steps or meaningful architectural choices. A good plan is concrete enough to verify and small enough to update as evidence changes.

/plan
Migrate authentication to passkeys while preserving existing sessions.
02

Review at the right scope

Use the review surface for unstaged, staged, last-turn, or branch changes. Review should prioritize correctness and regressions, cite exact files, and avoid inventing findings just to fill a quota.

  • Unstaged: Working tree changes
  • Staged: Ready-to-commit diff
  • Branch: Compare with a base ref
03

Manage context intentionally

Compact when the task history is long but the active objective is stable. Fork when you need to explore a materially different path without contaminating the original task.

/compact
/fork
/model
/ide-context
04

Choose speed and reasoning

Use the model and reasoning controls supported by the current host. Faster settings suit focused edits; deeper reasoning suits ambiguous architecture, diagnosis, and multi-system work.

Continue learning

Use the official OpenAI Codex documentation as the final reference for current commands, settings, and availability.

Return to the full curriculum.

Search Codex Me

navigateEnter openEsc close