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

commands
28
tools
5

/agents

parallel-agents

Claude Code

Manage agent configurations and monitor background agents running in parallel.

agentsparallelbackgroundsubagents
view command →

/background

parallel-agents

Claude Code

Detach the current session to run as a background agent and free this terminal. Optionally pass a final instruction before detaching.

backgroundautonomousparalleldetach
view command →

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

/btw

context-management

Claude Code

Ask a quick side question without adding it to the main conversation history.

side-questioncontextquick
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 →

/compact

context-management

Claude Code

Free up context by summarizing the conversation so far. Optionally pass focus instructions for the summary.

contextmemorysummarizetokens
view command →

/context

context-management

Claude Code

Visualize current context usage as a colored grid. Shows optimization suggestions for context-heavy tools and capacity warnings.

contexttokensusagediagnostics
view command →

/diff

code-review

Claude Code

Open an interactive diff viewer showing uncommitted changes and per-turn diffs. Navigate with arrow keys between the git diff and individual Claude turns.

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

/effort

configuration

Claude Code

Set the model effort level: low, medium, high, xhigh, max, or ultracode. Takes effect immediately without waiting for the current response.

effortreasoningmodelcost
view command →

/fork

parallel-agents

Claude Code

Spawn a forked subagent that inherits the full conversation and works on a directive while you keep going in the main session.

forksubagentparalleldelegation
view command →

/goal

planning

Claude Code

Set a persistent goal — Claude keeps working across turns until the condition is met. View, pause, resume, or clear with subcommands.

goalautonomouslong-runningagentic
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 →

/mcp

integrations

Claude Code

Manage MCP server connections and OAuth authentication. Browse servers, reconnect disconnected ones, or enable/disable them.

mcpintegrationstoolsexternal
view command →

/memory

setup

Claude Code

Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries.

memoryclaude.mdproject-configauto-memory
view command →

/model

configuration

Claude Code

Switch the AI model and save it as your default for new sessions. Adjust effort level with left/right arrows on models that support it.

modelconfigurationeffortspeed
view command →

/permissions

configuration

Claude Code

Manage allow, ask, and deny rules for tool permissions. Opens a dialog to view rules by scope, add or remove rules, and review auto-mode denials.

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

/security-review

code-review

Claude Code

Analyze pending branch for security vulnerabilities — injection, auth issues, data exposure, and other OWASP risks.

securityowaspvulnerabilitiesaudit
view command →

/simplify

code-review

Claude Code

Review changed code for cleanup opportunities and apply the fixes. Four review agents run in parallel covering reuse, simplification, efficiency, and abstraction level.

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

/tasks

parallel-agents

Claude Code

View and manage everything running in the background in the current session.

tasksbackgroundparallelmonitoring
view command →

/usage

diagnostics

Claude Code

Show session cost, plan usage limits, and activity stats. Includes breakdown by skill, subagent, plugin, and MCP server on paid plans.

usagecostlimitsmonitoring
view command →