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.

commands
18
tools
5

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