Codex Command Master
A practical handbook for choosing and applying Codex CLI slash commands.
Recently Updated Chapters
Copy the latest completed Codex response as Markdown, including in-progress, rollback, and Ctrl+O behavior.
Choose or hide an ambient terminal pet in the Codex TUI.
Rename the current saved Codex chat without changing its transcript or execution state.
Set up the elevated Windows agent sandbox when Codex is running in degraded restricted-token mode.
Connect /plugins, /skills, /mcp, and /ide with Figma, ImageGen, and Playwright to design, implement, and verify UI with Codex.
This handbook is the English edition of the Codex command master. It helps engineers choose the right Codex CLI command quickly, keep long sessions under control, and standardize command usage across a team.
July 12, 2026 Design Workflow Update
Added the official Figma MCP, $imagegen, $playwright, and Build Web Apps workflows and mapped
them to /plugins, /skills, /mcp, /ide, /diff, and /review. The new guide also makes the
product boundary explicit: there is no standalone /design slash command.
Source Baseline
Checked against the official OpenAI Codex slash commands, changelog, and npm dist-tags on
2026-08-03 KST. The current stable/latest CLI baseline, local CLI, and npm latest tag are
Codex CLI v0.146.0; npm alpha=0.147.0-alpha.4 is an experiment channel.
August 3, 2026 Command Inventory Re-check
Stable remains 0.146.0. Added individual coverage for the currently documented /copy, /rename,
/pets (/pet), and Windows-only /setup-default-sandbox; synchronized the /subagents and
/btw aliases and promoted /app to official-reference coverage.
August 1, 2026 Update
- Added named
/newand/clear, pins, side switching, paginated history/forks, and replay preservation. - Expanded
/importacross Cursor and Claude Code artifacts and added Agent Plugins, workspace publishing, and additional marketplaces. - Added remote Code Mode hosts, custom-provider web search, executor-provided skills, broader proxy coverage, and MCP/App refresh guidance.
July 10, 2026 Update
- Added 0.143.0–0.144.0 guidance for default-enabled remote plugins, npm marketplace sources, system proxies,
remote-control pair, MCP tool search/authentication, app approvalwrites, reset-credit details, and review improvements. - Added reliability notes for retired-model compaction recovery, Windows writable-root deletion, terminal-control sanitization, connector auth refresh, and proxy-aware Responses WebSockets.
July 1, 2026 Update
- Refreshed the stable/latest CLI baseline to v0.142.5 from GitHub Releases and npm
latest. - Added the 0.142.5 trace-log payload protection note to separate install/security baseline from command feature baseline.
- Recorded npm
alpha=0.143.0-alpha.31as an experiment channel, not a team-standard baseline. - Kept
/delete,/import,/usage, rollout token budgets, indexed web search, scheduled UTC reminders, and multi-agent delegation guidance tied to the v0.140.0~v0.142.0 feature changes.
June 25, 2026 Update
- Added official command pages for
/delete,/import, and/usage. - Separated session deletion from archiving:
/deletepermanently removes the current transcript and spawned descendant sessions, while/archivekeeps records recoverable. - Added Claude Code import guidance for
/import, including mandatory/diffand/debug-configreview after migration. - Added
/usage daily|weekly|cumulativeand rate-limit reset guidance for long/goaland multi-agent runs. - Reflected 0.140.0~0.142.0 operating deltas: indexed web search, plugin organization, rollout token budgets, multi-agent delegation modes, UTC scheduled reminders/current-time handling, and TUI disconnect recovery.
June 12, 2026 Update
- Added a release-tracked
/apppage for handing the current CLI thread into Codex Desktop on macOS and native Windows. - Added 0.139.0 notes for code-mode standalone web search, MCP tool input schema preservation for
oneOf/allOf, and better large-schema compaction. - Updated diagnostics guidance for
codex doctoreditor/pager environment reporting with JSON redaction. - Updated
/pluginsfor richer--jsonoutput, marketplace source fields,--available --json, and marketplace install/upgrade automation. - Refreshed app-server/debug notes for account token usage, ChatGPT v2 personal access tokens, and the restored
codex debug app-server send-message-v2command. - Added operational notes for image file-path exposure, reasoning-effort fallback shortcuts, sandbox permissions-profile alias
-P, effective sandbox diagnostics,resume/fork --lastprompt handling, scoped MCP startup warnings, and cloud-managed requirement preservation.
June 8, 2026 Update
- Added a dedicated
/archivepage based on the 0.136.0 release, plus the relatedcodex archiveandcodex unarchiveCLI flow. - Updated the permissions/profile baseline for named permission profiles and the file-based
--profilemigration. - Refreshed app-server and remote-control notes for
codex app-server --stdio, archive events, and controller grant RPCs. - Added operational notes for
codex plugin list --json, cached remote catalog suggestions, Multi-agent v2 runtime metadata, richercodex doctor, remote/status, and newer TUI keymap behavior.
May 21, 2026 Update
- Added individual pages for official commands:
/approve,/ide,/memories,/raw,/skills,/theme, and/vim. - Promoted
/vimfrom changelog-only preview tracking to standard slash-command coverage. - Refreshed the CLI baseline to 0.132.0, including
codex exec resume --output-schema, Python SDK auth/turn APIs, image-fidelity preservation, and goal-continuation guardrails. - Added 0.131.0 operational notes for
codex doctor, unified@mentions, service-tier commands, remote-control daemon/API work, plugin marketplace CLI commands, and version-aware plugin sharing. - Updated the model baseline:
gpt-5.5is now documented as available in Codex with ChatGPT sign-in or API-key authentication.
Earlier May 2026 Update
/goalis documented as the experimental persistent goal surface for long-running work./keymapremaps TUI shortcuts and persists bindings inconfig.toml./sideis now treated as a standard side-conversation command./stopis the preferred command for stopping background terminals;/cleanremains an alias./hooksis now a standard command after the official slash table and 2026-05-14 Hooks GA update./vimwas later promoted after the 2026-05-21 official slash table re-check.
Fast Entry
Command System
Command categories, selection rules, and recent surface changes.
Core Commands
/status, /clear, /copy, /new, /quit, /feedback, and /stop.
Advanced Commands
Permissions, sandboxing, hooks, plugins, agents, and operational controls.
Design Workflows
Design, implement, and verify UI with Figma, ImageGen, and Playwright.
Reference Links
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex hooks: https://developers.openai.com/codex/hooks
- Codex CLI features: https://developers.openai.com/codex/cli/features
- Codex changelog: https://developers.openai.com/codex/changelog
- Codex releases: https://github.com/openai/codex/releases
- Figma designs to code: https://learn.chatgpt.com/use-cases/figma-designs-to-code
- User stories to UI mocks: https://learn.chatgpt.com/use-cases/user-stories-to-ui-mocks
Release Timeline
See /en/books/codex-command-master/verification for command-by-command source tracking and release
links.