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. 18 commands indexed.
/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.