slash commands / reference
COMMAND REFERENCE▌
Slash commands for every AI coding tool — Claude Code, Cursor, Codex CLI, Gemini CLI, and OpenCode. Find the right command for your workflow. 98 commands indexed.
/compact
context-management
Summarize the visible conversation to free tokens. Use after long runs so Codex retains key points without blowing the context window.
/diff
code-review
Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.
/fast
configuration
Toggle the Fast service tier for the current model/thread, or check current state.
/fork
session-management
Fork the current conversation into a new thread with a fresh ID, leaving the original transcript untouched for parallel exploration.
/goal
planning
Set a persistent task goal (max 4,000 chars). Codex tracks it across turns. Subcommands: pause, resume, clear, view.
/ide
context-management
Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.
/init
setup
Generate an AGENTS.md scaffold in the current directory for persistent repo instructions.
/mcp
integrations
List configured Model Context Protocol (MCP) tools. Pass 'verbose' for server diagnostics.
/mention
context-management
Attach a file or folder to the conversation via popup picker so Codex references it directly in the next turn.
/model
configuration
Choose the active model (and reasoning effort when available). Opens a picker; press s to switch for the current session only.
/new
session-management
Start a new conversation inside the same CLI session without clearing the terminal view.
/permissions
configuration
Set what Codex can do without asking first — switch between Auto, Read Only, or custom permission profiles mid-session.
/personality
configuration
Choose a communication style for responses — friendly, pragmatic, or none — without rewriting your instructions.
/plan
planning
Switch to plan mode and optionally send a prompt. Codex proposes an execution plan before implementation starts.
/resume
session-management
Resume a saved conversation from your session list. Continue work from a previous CLI session without starting over.
/review
code-review
Ask Codex to review your working tree — summarizes issues, focusing on behavior changes and missing tests.
/side
context-management
Start an ephemeral side conversation for a focused detour — the parent thread keeps running and its status stays visible.
/skills
configuration
Browse and use local skills to improve task-specific behavior by loading relevant skill context.
/status
diagnostics
Display session configuration and token usage — active model, approval policy, writable roots, and context capacity.
/ask
exploration
Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.
/auto-run
configuration
Toggle auto-run (default) or set explicitly on/off/status. Controls whether tools run without asking for confirmation.
/commands
setup
Create or edit custom slash commands for repetitive workflows.
/compress
context-management
Summarize conversation to free context window space while keeping a high-level record of what happened.
/feedback
diagnostics
Share feedback with the Cursor team directly from the CLI.
/logout
configuration
Sign out from Cursor.
/max-mode
configuration
Toggle max mode on models that support it — enables extended reasoning and capability.
/mcp
integrations
Browse, enable, and configure MCP servers. Subcommands: list, enable <name>, disable <name>.
/model
configuration
Set or list available models for the current session.
/new-chat
session-management
Start a new chat session with empty context.
/plan
planning
Switch to Plan mode — the agent researches your codebase, asks clarifying questions, and produces a reviewable implementation plan before writing code.