Slash Commands
Use Codex slash commands as an operating surface for sessions, review, models, and status.
Key takeaways
- Slash commands are the control panel of an interactive Codex session, so teams should standardize the ones expected during planning, review, and handoff.
- Group commands by purpose: Status, Review, Planning, Context, and Lifecycle (stop, resume, fork, compact, archive, hand off, or start a new thread).
- Run review commands before requesting human review on risky changes, and keep slash-command output tied to actual verification rather than treating commands as magic words.
- Track release-specific behavior:
/archiveis official table coverage,/appis a 0.138.0 handoff command, and 0.139.0 adds code-mode web search, MCP schema preservation,resume/fork --lasthandling, and sandbox diagnostics. - Follow a repeatable routine: inspect status, attach relevant files, request a plan, review the diff, then run verification and summarize evidence.
Slash commands are the control panel of an interactive Codex session. Teams should standardize the commands they expect developers to use during planning, review, and handoff.
Command Categories
| Category | Purpose |
|---|---|
| Status | Inspect current session, model, permissions, or workspace |
| Review | Ask Codex to examine diffs, risks, and tests |
| Planning | Switch into planning, goal, or structured task mode |
| Context | Attach files, pages, images, or repository references |
| Lifecycle | Stop, resume, fork, compact, archive, hand off, or start a new thread |
Team Practices
- Use review commands before requesting human review on risky changes.
- Record useful command sequences in repository docs.
- Keep slash-command output tied to actual verification.
- Avoid using commands as magic words; define what decision each one supports.
- Treat
/archiveas official table coverage and/appas a 0.138.0 release-tracked handoff command until it appears in the slash table. - Track the adjacent 0.139.0 operational changes with command docs: code-mode web search, MCP schema preservation,
resume/fork --lastprompt handling, and sandbox diagnostics.
Example Routine
- Inspect status and permissions.
- Attach or mention the files that matter.
- Ask for a plan or scoped implementation.
- Review the diff.
- Run verification and summarize evidence.