Slash command
Start an ephemeral side conversation for a focused detour — the parent thread keeps running and its status stays visible.
Syntax
/side [prompt]Example
/side check whether this plan has an obvious security riskplanning
Set a persistent task goal (max 4,000 chars). Codex tracks it across turns. Subcommands: pause, resume, clear, view.
setup
Generate an AGENTS.md scaffold in the current directory for persistent repo instructions.
integrations
List configured Model Context Protocol (MCP) tools. Pass 'verbose' for server diagnostics.
context-management
Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.
diagnostics
Display session configuration and token usage — active model, approval policy, writable roots, and context capacity.
session-management
Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.