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

/quit

session-management

Cursor CLI

Exit the Cursor CLI.

exitquit
view command →

/resume

session-management

Cursor CLI

Resume a previous chat session by folder name.

resumesessionshistory
view command →

/rules

setup

Cursor CLI

Create new rules or edit existing rules in .cursor/rules (.mdc files) for persistent project guidance.

rulesconventionsproject-configcursor-rules
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 →

/agents

parallel-agents

Gemini CLI

Manage subagents — list built-in, local, and remote subagents; enable, disable, or configure.

agentssubagentsparalleldelegation
view command →

/clear

session-management

Gemini CLI

Clear the terminal screen and visible history (same as Ctrl+L).

clearterminalvisual
view command →

/commands

setup

Gemini CLI

List and reload custom .toml slash commands. Run /commands reload after adding or modifying commands without restarting.

custom-commandstomlreload
view command →

/compress

context-management

Gemini CLI

Replace the current chat context with a summary to save tokens and free up context window space.

contextsummarizetokenscompress
view command →

/init

setup

Gemini CLI

Analyze directory and generate a tailored GEMINI.md for persistent project memory.

setupgemini.mdmemoryproject-init
view command →

/mcp

integrations

Gemini CLI

Manage MCP servers — list, describe, show schema, enable, disable, reload, or configure OAuth.

mcpintegrationstoolsexternal
view command →

/memory refresh

setup

Gemini CLI

Reload memory from global, project, and subdirectory GEMINI.md files without restarting.

memorygemini.mdrefresh
view command →

/memory show

setup

Gemini CLI

Display the concatenated hierarchical memory from all active GEMINI.md files.

memorygemini.mdcontextdebug
view command →

/model set

configuration

Gemini CLI

Choose and optionally persist the active model. Pass --persist to save as default.

modelconfigurationgemini
view command →

/permissions

configuration

Gemini CLI

Manage folder trust settings. Trust a path so Gemini can operate there without per-action prompts.

permissionstrustsecuritypaths
view command →

/plan

planning

Gemini CLI

Switch to Plan Mode (read-only) where Gemini produces an approved plan before making any changes.

plan-modeplanningpre-coding
view command →

/restore

session-management

Gemini CLI

Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint.

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

/rewind

session-management

Gemini CLI

Navigate backward through history; revert chat and/or code to a prior state (also Esc Esc).

rewindundohistoryrollback
view command →

/skills

configuration

Gemini CLI

Manage agent skills — list, enable, disable, or reload.

skillscontextconfiguration
view command →

/stats

diagnostics

Gemini CLI

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

statsusagetokensmonitoring
view command →

/tools

configuration

Gemini CLI

List available tools. Pass 'desc' for descriptions or 'nodesc' for compact list.

toolsconfigurationcapabilities
view command →

/vim

configuration

Gemini CLI

Toggle Vim mode for the composer. Saved to ~/.gemini/settings.json.

vimeditorkeybindingsux
view command →

/compact

context-management

OpenCode

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

contextsummarizetokens
view command →

/connect

configuration

OpenCode

Add a provider and API key to connect a new AI model provider.

providerscredentialsconfigurationapi-key
view command →

/details

configuration

OpenCode

Toggle tool execution details in the conversation output.

detailstoolsdebugging
view command →

/editor

context-management

OpenCode

Open the external $EDITOR for composing messages — useful for long or structured prompts. Keybind: Ctrl+x e.

editorinputcompose
view command →

/exit

session-management

OpenCode

Exit OpenCode. Aliases: /quit, /q. Keybind: Ctrl+x q.

exitquit
view command →

/export

session-management

OpenCode

Export the current conversation to Markdown and open in $EDITOR. Keybind: Ctrl+x x.

exportmarkdowndocumentation
view command →

/init

setup

OpenCode

Guided AGENTS.md setup for the current project.

setupagents.mdmemoryproject-init
view command →