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.
/quit
session-management
Exit the Cursor CLI.
/resume
session-management
Resume a previous chat session by folder name.
/rules
setup
Create new rules or edit existing rules in .cursor/rules (.mdc files) for persistent project guidance.
/sandbox
configuration
Configure sandbox mode and network access settings for the current session.
/usage
diagnostics
View Cursor streaks and usage statistics for the current session.
/agents
parallel-agents
Manage subagents — list built-in, local, and remote subagents; enable, disable, or configure.
/clear
session-management
Clear the terminal screen and visible history (same as Ctrl+L).
/commands
setup
List and reload custom .toml slash commands. Run /commands reload after adding or modifying commands without restarting.
/compress
context-management
Replace the current chat context with a summary to save tokens and free up context window space.
/init
setup
Analyze directory and generate a tailored GEMINI.md for persistent project memory.
/mcp
integrations
Manage MCP servers — list, describe, show schema, enable, disable, reload, or configure OAuth.
/memory refresh
setup
Reload memory from global, project, and subdirectory GEMINI.md files without restarting.
/memory show
setup
Display the concatenated hierarchical memory from all active GEMINI.md files.
/model set
configuration
Choose and optionally persist the active model. Pass --persist to save as default.
/permissions
configuration
Manage folder trust settings. Trust a path so Gemini can operate there without per-action prompts.
/plan
planning
Switch to Plan Mode (read-only) where Gemini produces an approved plan before making any changes.
/restore
session-management
Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint.
/resume
session-management
Browse auto-saved sessions and manage manual checkpoints. Conversations are auto-saved; use tags for manual checkpoints.
/rewind
session-management
Navigate backward through history; revert chat and/or code to a prior state (also Esc Esc).
/skills
configuration
Manage agent skills — list, enable, disable, or reload.
/stats
diagnostics
Detailed usage statistics — session totals, per-model breakdown, and tool call counts.
/tools
configuration
List available tools. Pass 'desc' for descriptions or 'nodesc' for compact list.
/vim
configuration
Toggle Vim mode for the composer. Saved to ~/.gemini/settings.json.
/compact
context-management
Summarize the current session to save tokens. Alias: /summarize.
/connect
configuration
Add a provider and API key to connect a new AI model provider.
/details
configuration
Toggle tool execution details in the conversation output.
/editor
context-management
Open the external $EDITOR for composing messages — useful for long or structured prompts. Keybind: Ctrl+x e.
/exit
session-management
Exit OpenCode. Aliases: /quit, /q. Keybind: Ctrl+x q.
/export
session-management
Export the current conversation to Markdown and open in $EDITOR. Keybind: Ctrl+x x.
/init
setup
Guided AGENTS.md setup for the current project.