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

commands
38
tools
5

/batch

parallel-agents

Claude Code

Orchestrate large-scale changes across a codebase in parallel. Decomposes work into 5–30 independent units, each in its own git worktree with its own PR.

batchparallelmigrationworktree
view command →

/clear

session-management

Claude Code

Start a new conversation with empty context. The previous conversation stays available in /resume. Optionally name the previous conversation.

clearnew-sessioncontext-reset
view command →

/code-review

code-review

Claude Code

Review the current diff for correctness bugs and for reuse, simplification, and efficiency cleanups. Pass --fix to apply findings, --comment to post as GitHub PR comments, or ultra for a deep cloud review.

reviewcode-qualitybugscleanup
view command →

/doctor

diagnostics

Claude Code

Diagnose and verify your Claude Code installation and settings. Press f to have Claude fix any reported issues.

diagnosticstroubleshootinginstallationhealth
view command →

/hooks

configuration

Claude Code

View hook configurations for tool events — pre- and post-tool hooks that run shell commands around Claude's actions.

hooksautomationshellevents
view command →

/init

setup

Claude Code

Initialize project with a CLAUDE.md guide covering repo conventions, commands, and agent instructions.

setupmemoryclaude.mdproject-init
view command →

/loop

automation

Claude Code

Run a prompt repeatedly on a schedule while the session stays open. Omit the interval and Claude self-paces between iterations.

loopscheduleautomationpolling
view command →

/plan

planning

Claude Code

Enter plan mode to design your approach before coding. Claude proposes an execution plan for review before any implementation starts.

planningplan-modearchitecturepre-coding
view command →

/resume

session-management

Claude Code

Resume a previous conversation by ID or name, or open the session picker.

resumesessionshistory
view command →

/rewind

session-management

Claude Code

Rewind the conversation and/or code to a previous checkpoint, or summarize from a selected message.

undocheckpointrevertrollback
view command →

/skills

configuration

Claude Code

List available skills and manage which are shown to Claude. Press t to sort by token count, Space to hide a skill.

skillsconfigurationcontext
view command →

/approve

configuration

Codex CLI

Approve one retry of a recent auto review denial — lets Codex attempt a blocked action once under current policy.

approvepermissionsoverrideretry
view command →

/ide

context-management

Codex CLI

Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.

ideeditorcontextfiles
view command →

/mcp

integrations

Codex CLI

List configured Model Context Protocol (MCP) tools. Pass 'verbose' for server diagnostics.

mcpintegrationstoolsexternal
view command →

/model

configuration

Codex CLI

Choose the active model (and reasoning effort when available). Opens a picker; press s to switch for the current session only.

modelconfigurationopenai
view command →

/permissions

configuration

Codex CLI

Set what Codex can do without asking first — switch between Auto, Read Only, or custom permission profiles mid-session.

permissionssecurityautoapproval
view command →

/personality

configuration

Codex CLI

Choose a communication style for responses — friendly, pragmatic, or none — without rewriting your instructions.

personalitycommunicationstyleux
view command →

/plan

planning

Codex CLI

Switch to plan mode and optionally send a prompt. Codex proposes an execution plan before implementation starts.

planningplan-modepre-coding
view command →

/resume

session-management

Codex CLI

Resume a saved conversation from your session list. Continue work from a previous CLI session without starting over.

resumesessionshistory
view command →

/review

code-review

Codex CLI

Ask Codex to review your working tree — summarizes issues, focusing on behavior changes and missing tests.

reviewcode-qualitytestingpr
view command →

/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 →
Page 1 / 2