Codex commands, plugins and hidden features

OpenAI's Codex coding agent: CLI commands, flags, AGENTS.md and cloud tasks.

Commands

Slash commands and CLI commands

/goalSets, edits, pauses or clears a persistent goal./planMakes a plan before any implementation./reviewReviews code in your working tree or against a base branch./statusShows the model, approval policy, writable paths and token usage./initCreates an AGENTS.md template./mcpLists the configured MCP tools./modelChooses the model./fastChooses the fast service tier./reasoningChooses the reasoning effort./compactSummarizes the conversation to free up context./permissionsChanges what Codex can do without asking for approval./approveRetries once an action that auto-review denied./diffShows the git diff, including untracked files./copyCopies the last output./newStarts a new chat./clearResets the conversation./resumeOpens a saved chat./forkBranches off from the current conversation./sideOpens a temporary side conversation that does not disturb the main one./skillsLists and uses skills./pluginsManages plugins./appsShows the connected apps./mentionAttaches a file./hooksShows the hooks./agentsOpens the agent command center./subagentsSwitches between subagent threads./psLists background terminals./stopStops background terminals./cloudSwitches to cloud execution./localSwitches to local execution./cloud-environmentChooses the cloud execution environment./worktreeCreates a new git worktree for isolated work./memoriesSets whether this chat uses or creates memories./petShows the desktop pet.New 2026-09/usageShows your usage./renameRenames the chat./archiveArchives the chat./deleteDeletes the chat./pinPins the chat./feedbackSends feedback./statuslineConfigures the status line./titleSets the screen title./themeChanges the theme./keymapSets up key mappings./tuiSets the display mode.