Slash command
Choose the active model (and reasoning effort when available). Opens a picker; press s to switch for the current session only.
Syntax
/model [model]Example
/model gpt-4.1session-management
Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.
planning
Switch to plan mode and optionally send a prompt. Codex proposes an execution plan before implementation starts.
planning
Set a persistent task goal (max 4,000 chars). Codex tracks it across turns. Subcommands: pause, resume, clear, view.
code-review
Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.
code-review
Ask Codex to review your working tree — summarizes issues, focusing on behavior changes and missing tests.
context-management
Start an ephemeral side conversation for a focused detour — the parent thread keeps running and its status stays visible.