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. 24 commands indexed.

commands
24
tools
5

/background

parallel-agents

Claude Code

Detach the current session to run as a background agent and free this terminal. Optionally pass a final instruction before detaching.

backgroundautonomousparalleldetach
view command →

/fork

parallel-agents

Claude Code

Spawn a forked subagent that inherits the full conversation and works on a directive while you keep going in the main session.

forksubagentparalleldelegation
view command →

/loop

automation

Claude Code

Run a prompt repeatedly on a schedule while the session stays open. Omit the interval and Claude self-paces between iterations.

loopscheduleautomationpolling
view command →

/model

configuration

Claude Code

Switch the AI model and save it as your default for new sessions. Adjust effort level with left/right arrows on models that support it.

modelconfigurationeffortspeed
view command →

/resume

session-management

Claude Code

Resume a previous conversation by ID or name, or open the session picker.

resumesessionshistory
view command →

/tasks

parallel-agents

Claude Code

View and manage everything running in the background in the current session.

tasksbackgroundparallelmonitoring
view command →

/usage

diagnostics

Claude Code

Show session cost, plan usage limits, and activity stats. Includes breakdown by skill, subagent, plugin, and MCP server on paid plans.

usagecostlimitsmonitoring
view command →

/archive

session-management

Codex CLI

Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.

archivesessioncleanup
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 →

/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 →

/status

diagnostics

Codex CLI

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

statusdiagnosticsconfigurationtokens
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 →

/resume

session-management

Cursor CLI

Resume a previous chat session by folder name.

resumesessionshistory
view command →

/sandbox

configuration

Cursor CLI

Configure sandbox mode and network access settings for the current session.

sandboxsecuritynetworkisolation
view command →

/usage

diagnostics

Cursor CLI

View Cursor streaks and usage statistics for the current session.

usagestatsquotamonitoring
view command →

/resume

session-management

Gemini CLI

Browse auto-saved sessions and manage manual checkpoints. Conversations are auto-saved; use tags for manual checkpoints.

resumesessionscheckpointshistory
view command →

/stats

diagnostics

Gemini CLI

Detailed usage statistics — session totals, per-model breakdown, and tool call counts.

statsusagetokensmonitoring
view command →

/compact

context-management

OpenCode

Summarize the current session to save tokens. Alias: /summarize.

contextsummarizetokens
view command →

/new

session-management

OpenCode

Start a new session. Aliases: /clear. Keybind: Ctrl+x n.

newsessionclearcontext-reset
view command →

/sessions

session-management

OpenCode

List and switch sessions. Aliases: /resume, /continue. Keybind: Ctrl+x l.

sessionsresumehistory
view command →

/share

session-management

OpenCode

Share the current session publicly.

sharecollaborationpublic
view command →