Codex's slash commands are control actions inside a session, and their full set depends on the runtime. Commands can be OS-only, account-only, catalog-driven and experimental, so some of them may be absent for you specifically. The most accurate source is slash autocomplete in a live session, reflecting your surface and version. This reference gives a map of the most-used built-in commands; the full list reflects the official reference at the cutoff date and changes with the product.
Diagnostics and state commands answer the question "what is in play now". /status shows the model, permissions, directories and context; /debug-config the order and sources of the config layers; /diff the working-tree changes; /mcp the state of MCP servers; /hooks the source and trust of hooks. Almost any diagnosis starts with them: look at the actual state first rather than guessing about it.
Session and work management commands lead the work cycle. /plan switches to planning mode; /new, /resume, /side manage sessions; /compact compresses the history; /review starts a review; /copy carries the result outward. Permission and model commands - /permissions, /model - change boundaries and the model choice on the fly. And extensions and interface setup - /ide, /skills, /plugins, /statusline, /theme, /personality - attach context and configure presentation.
It helps to gather the most-used commands into a table by group once. Below is the map. It is worth using with a caveat: a command's presence here does not guarantee it exists on your surface and version, and its absence does not mean it does not exist at all - skills and MCP add their own. Verify the actual menu with autocomplete, and check fast-changing and cloud commands against the official documentation before building a process on them.
| Group | Command | Purpose |
|---|---|---|
| Diagnostics/state | /status, /debug-config | Model, permissions, config layers |
| /diff, /mcp, /hooks | Changes, MCP, source and trust of hooks | |
| Session/work | /plan, /new, /resume, /side | Plan; session management |
| /compact, /review, /copy |
| Compact the history; review; carry the result out |
| Permissions/model | /permissions, /model | Boundaries and model choice on the fly |
|---|
| Extensions | /ide, /skills, /plugins | Editor context; skills; plugins |
|---|
| Interface | /statusline, /title, /theme, /personality | Presentation and style setup |
|---|
| Windows | /setup-default-sandbox, /sandbox-add-read-dir | Sandbox recovery; a read directory (Windows only) |
|---|