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. 7 commands indexed.
/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.
/memory refresh
setup
Reload memory from global, project, and subdirectory GEMINI.md files without restarting.
/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.
/rewind
session-management
Navigate backward through history; revert chat and/or code to a prior state (also Esc Esc).