Codex CLIplanningbuilt-in

/plan

Switch to plan mode and optionally send a prompt. Codex proposes an execution plan before implementation starts.

Syntax

/plan [prompt]

Example

/plan refactor the database layer to use connection pooling

When to use

  • Large feature work where you want to review the approach first
  • Passing inline context with /plan <description>
  • Supports pasted content and images as inline arguments

More Codex CLI commands