Slash Commands
The slash / in Codex is the slash commands system.
After entering the / symbol in the dialog box, the system immediately pops up a command panel, listing all available commands and their descriptions.
To use MCP, Skills, browser, etc., just enter / and then select the corresponding function.
!(https://example.com/wp-content/uploads/2026/05/tutorial_1778497354295.png)
If you want to summon the pet, you can enter /Pet, English version enter /pet:
!(https://example.com/wp-content/uploads/2026/05/tutorial_1778498123092.png)
If Chinese usage feels awkward, you can set the language to English:
!(https://example.com/wp-content/uploads/2026/05/tutorial_1778499288849.png)
## Command Categories
Can be divided into four major categories by function: Context Management, Code & Development Workflow, Model & Reasoning Control, Personalization & Others.
### Context Management
A group of commands that control conversation threads and context windows.
| Command | Function | Description | Applicable Scenario |
| --- | --- | --- | --- |
| /compact, /compress | Compress context | Intelligently summarize current conversation history, retain key information, free up token space | When "context full" warning appears in long conversations |
| /status, /state | View status | Output current conversation ID, consumed context tokens, remaining quota, and other key runtime parameters | Before deciding whether to perform token-consuming operations |
> /compact does not lose key context; it intelligently retains important code snippets and decision information, only compressing redundant conversation rounds.
### Code & Development Workflow
Core functional command group for developers.
| Command | Function | Description | Applicable Scenario |
| --- | --- | --- | --- |
| /review, /code review | Code review | Have Claude systematically review current file or specified code segments, checking for potential bugs, security issues, performance bottlenecks, and code style | Before submitting PR, after code refactoring |
| /side, /sidebar | Side conversation | Initiate independent conversation in temporary branch without affecting main line, can merge, discard or retain after completion | When you want to quickly try a scheme without polluting main conversation history |
| /fork, /branch | Fork branch | Fork conversation into local Git branch or new working tree, support parallel exploration of different schemes | When you need to compare scheme A and scheme B |
| /mcp | MCP status | List all MCP (Model Context Protocol) servers connected in current conversation, view online status and available tools list | Check connection status when external tools are not responding |
> Difference between /side and /fork: /side is a branch at the conversation level, suitable for quick experiments; /fork creates a Git branch, suitable for parallel development at the code level.
### Model & Reasoning Control
A group of commands to adjust AI capabilities and thinking depth.
| Command | Function | Description | Applicable Scenario |
| --- | --- | --- | --- |
| /reasoning, /reasoning mode | Reasoning intensity | Switch between low/medium/high reasoning intensity, display current level in real-time after command | Raise intensity for complex algorithm problems, keep at low-medium for daily Q&A |
| /model, /model | Model switching | Switch between different AI models, display current model name after command | Use lightweight model for quick template generation, flagship model for in-depth architecture analysis |
> High-intensity reasoning responds slower but with more accurate answers,
YouTip