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. 48 commands indexed.

commands
48
tools
6

/skills

configuration

Codex CLI

Browse and use local skills to improve task-specific behavior by loading relevant skill context.

skillscontexttask-specific
view command →

/status

diagnostics

Codex CLI

Display session configuration and token usage — active model, approval policy, writable roots, and context capacity.

statusdiagnosticsconfigurationtokens
view command →

/compress

context-management

Cursor CLI

Summarize conversation to free context window space while keeping a high-level record of what happened.

contextcompresssummarizetokens
view command →

/plan

planning

Cursor CLI

Switch to Plan mode — the agent researches your codebase, asks clarifying questions, and produces a reviewable implementation plan before writing code.

plan-modeplanningarchitecturepre-coding
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 →

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

/memory refresh

setup

Gemini CLI

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

memorygemini.mdrefresh
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 →

/rewind

session-management

Gemini CLI

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

rewindundohistoryrollback
view command →

/connect

configuration

OpenCode

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

providerscredentialsconfigurationapi-key
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 →

/init

setup

OpenCode

Guided AGENTS.md setup for the current project.

setupagents.mdmemoryproject-init
view command →

/models

configuration

OpenCode

List available models across all configured providers. Keybind: Ctrl+x m.

modelsprovidersconfiguration
view command →

/redo

session-management

OpenCode

Restore a previously undone message and file changes. Git-backed. Keybind: Ctrl+x r.

redorestoregit
view command →
Page 2 / 2