Slash command
Set a persistent task goal (max 4,000 chars). Codex tracks it across turns. Subcommands: pause, resume, clear, view.
Syntax
/goal <objective> | pause | resume | clearExample
/goal all integration tests pass with no flaky failuresplanning
Switch to plan mode and optionally send a prompt. Codex proposes an execution plan before implementation starts.
context-management
Attach a file or folder to the conversation via popup picker so Codex references it directly in the next turn.
session-management
Fork the current conversation into a new thread with a fresh ID, leaving the original transcript untouched for parallel exploration.
configuration
Choose a communication style for responses — friendly, pragmatic, or none — without rewriting your instructions.
context-management
Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.
session-management
Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.