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.

commands
98
tools
5

/compact

context-management

Codex CLI

Summarize the visible conversation to free tokens. Use after long runs so Codex retains key points without blowing the context window.

contextsummarizetokenscompact
view command →

/diff

code-review

Codex CLI

Show the Git diff including files Git isn't tracking yet. Review Codex's edits before committing or running tests.

diffgitreviewchanges
view command →

/fast

configuration

Codex CLI

Toggle the Fast service tier for the current model/thread, or check current state.

fastspeedtierperformance
view command →

/fork

session-management

Codex CLI

Fork the current conversation into a new thread with a fresh ID, leaving the original transcript untouched for parallel exploration.

forkbranchparallelexploration
view command →

/goal

planning

Codex CLI

Set a persistent task goal (max 4,000 chars). Codex tracks it across turns. Subcommands: pause, resume, clear, view.

goalautonomouslong-runningtarget
view command →

/ide

context-management

Codex CLI

Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.

ideeditorcontextfiles
view command →

/init

setup

Codex CLI

Generate an AGENTS.md scaffold in the current directory for persistent repo instructions.

setupagents.mdmemoryproject-init
view command →

/mcp

integrations

Codex CLI

List configured Model Context Protocol (MCP) tools. Pass 'verbose' for server diagnostics.

mcpintegrationstoolsexternal
view command →

/mention

context-management

Codex CLI

Attach a file or folder to the conversation via popup picker so Codex references it directly in the next turn.

fileattachcontextpath
view command →

/model

configuration

Codex CLI

Choose the active model (and reasoning effort when available). Opens a picker; press s to switch for the current session only.

modelconfigurationopenai
view command →

/new

session-management

Codex CLI

Start a new conversation inside the same CLI session without clearing the terminal view.

newsessioncontext-reset
view command →

/permissions

configuration

Codex CLI

Set what Codex can do without asking first — switch between Auto, Read Only, or custom permission profiles mid-session.

permissionssecurityautoapproval
view command →

/personality

configuration

Codex CLI

Choose a communication style for responses — friendly, pragmatic, or none — without rewriting your instructions.

personalitycommunicationstyleux
view command →

/plan

planning

Codex CLI

Switch to plan mode and optionally send a prompt. Codex proposes an execution plan before implementation starts.

planningplan-modepre-coding
view command →

/resume

session-management

Codex CLI

Resume a saved conversation from your session list. Continue work from a previous CLI session without starting over.

resumesessionshistory
view command →

/review

code-review

Codex CLI

Ask Codex to review your working tree — summarizes issues, focusing on behavior changes and missing tests.

reviewcode-qualitytestingpr
view command →

/side

context-management

Codex CLI

Start an ephemeral side conversation for a focused detour — the parent thread keeps running and its status stays visible.

sideephemeraldetourquick
view command →

/skills

configuration

Codex CLI

Browse and use local skills to improve task-specific behavior by loading relevant skill context.

skillscontexttask-specific
view command →

/status

diagnostics

Codex CLI

Display session configuration and token usage — active model, approval policy, writable roots, and context capacity.

statusdiagnosticsconfigurationtokens
view command →

/ask

exploration

Cursor CLI

Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.

ask-moderead-onlyexplorationsafe
view command →

/auto-run

configuration

Cursor CLI

Toggle auto-run (default) or set explicitly on/off/status. Controls whether tools run without asking for confirmation.

auto-runpermissionsconfirmationtools
view command →

/commands

setup

Cursor CLI

Create or edit custom slash commands for repetitive workflows.

custom-commandsautomationworkflow
view command →

/compress

context-management

Cursor CLI

Summarize conversation to free context window space while keeping a high-level record of what happened.

contextcompresssummarizetokens
view command →

/feedback

diagnostics

Cursor CLI

Share feedback with the Cursor team directly from the CLI.

feedbackbug-report
view command →

/logout

configuration

Cursor CLI

Sign out from Cursor.

authlogoutcredentials
view command →

/max-mode

configuration

Cursor CLI

Toggle max mode on models that support it — enables extended reasoning and capability.

max-modereasoningcapability
view command →

/mcp

integrations

Cursor CLI

Browse, enable, and configure MCP servers. Subcommands: list, enable <name>, disable <name>.

mcpintegrationstools
view command →

/model

configuration

Cursor CLI

Set or list available models for the current session.

modelconfiguration
view command →

/new-chat

session-management

Cursor CLI

Start a new chat session with empty context.

new-sessioncontext-resetchat
view command →

/plan

planning

Cursor CLI

Switch to Plan mode — the agent researches your codebase, asks clarifying questions, and produces a reviewable implementation plan before writing code.

plan-modeplanningarchitecturepre-coding
view command →