All slash commands, keyboard shortcuts, CLI flags, and prompt patterns — in one searchable reference.
/helpShow all available commands and keybindings.
/clearClear conversation history and start fresh. Context is wiped.
/compact [instructions]Compress conversation history to save context window space.
/compact focus on the auth module changes/configOpen the Claude Code configuration editor. Manage models, permissions, and settings.
/costShow token usage and estimated cost for the current session.
/doctorCheck Claude Code installation health. Verifies dependencies, auth, and configuration.
/exit /quitExit Claude Code. Ctrl+D also works.
/initGenerate a CLAUDE.md file. Claude analyses the codebase and creates project-specific instructions.
Power/loginAuthenticate with your Anthropic account via browser OAuth or API key.
/logoutSign out from your Anthropic account and clear saved credentials.
/memoryOpen memory files editor. Manage persistent notes that Claude remembers across sessions.
Power/modelSelect the AI model: Claude Opus 4.7, Sonnet 4.6, or Haiku 4.5.
/permissionsView and manage tool permissions — files, bash, browser, etc.
/pr_commentsFetch and display comments from the current GitHub pull request.
/release-notesView the Claude Code release notes and changelog for the installed version.
/reviewRequest a code review. Claude analyses the diff and suggests improvements.
/statusShow current account status, plan, and usage limits for the session.
/terminal-setupInstall shell integration (bash/zsh/fish). Enables Shift+Tab and other terminal features.
/vimToggle vim keybindings in the input prompt.
/bugOpen GitHub issue to report a Claude Code bug. Automatically includes version info.
/commitCreate a git commit with an AI-generated message based on staged changes.
Power/fastToggle fast output mode for quicker responses with Opus 4.7.
New/mcpList connected MCP servers and their available tools and status.
Power/ideConnect and manage IDE integrations (VS Code, JetBrains, Cursor). Enables real-time file sync.
New/rewindOpen the rewind UI — restore a past checkpoint, rolling back both chat history AND file changes. Also triggered by Esc+Esc.
Power/plan [description]Enter plan mode — read-only. Claude researches and proposes a plan without making file changes.
Power/effort [level]Set reasoning effort: low, medium, high, max, auto. Higher = more thinking tokens (Opus 4.7 only).
/effort max/diffOpen the interactive diff viewer showing all file changes made in the current session.
/contextVisualize context window usage as a colored grid. Shows what's consuming space.
/tasksList and manage background tasks (subagents). View progress, outputs, stop tasks.
/loop [interval] [prompt]Run a prompt on a recurring interval. Use to poll status, monitor builds, or run periodic checks.
/loop 5m check test statusSkill/btw <question>Ask a side question without adding it to conversation history.
/btw what does RFC 9110 say about 408?/voiceToggle voice dictation. Hold Space to record, release to transcribe. 20+ languages.
New/keybindingsOpen the keybindings editor (~/.claude/keybindings.json). Remap any shortcut or create chord sequences.
/add-dir <path>Add a directory to Claude's working context mid-session.
/add-dir ../shared-lib/usageShow your current plan limits, rate limits, and usage quotas. More detailed than /cost.
/copy [N]Copy the last assistant response to clipboard. Pass N to copy the Nth-last response.
/rename [name]Rename the current session. Easier to resume with claude -r "name".
/export [filename]Export the current conversation as a text file.
/hooksView all configured hooks. Hooks run shell commands on events like PreToolUse, PostToolUse, SessionEnd.
AdvancedCtrl + CCancel the current operation or interrupt Claude mid-response.
Ctrl + DExit Claude Code (EOF signal). Same as /exit.
Shift + TabAuto-accept all pending edits. Cycles permission modes: default → acceptEdits → plan.
PowerTabAccept current autocomplete suggestion in the input prompt.
EscReturn to normal mode (vim) or dismiss autocomplete.
Esc + EscEnter rewind mode. Pick a past checkpoint to restore — rolls back conversation AND file changes.
Power↑ / ↓Navigate through prompt history.
Ctrl + LClear the terminal screen.
Ctrl + AMove cursor to beginning of the current input line.
Ctrl + EMove cursor to end of the current input line.
Ctrl + KCut text from cursor to end of line. Ctrl+Y to paste back.
Ctrl + UCut text from cursor to start of line. Quick way to clear input.
Ctrl + WDelete the word before the cursor.
Ctrl + YPaste the last cut text back. Works with Ctrl+K and Ctrl+U cuts.
Ctrl + TToggle the background task list panel.
Ctrl + OToggle verbose transcript — shows all tool calls and their full inputs/outputs.
Ctrl + GOpen the current prompt in your $EDITOR for multi-line editing.
Ctrl + BBackground the current running task. Continue chatting while the previous task runs.
Meta + OToggle fast mode. Alt+O on Windows/Linux. Same as /fast.
⌘ + T / Meta + TToggle extended thinking mode. ⌘+T on macOS, Meta+T on Linux/Windows.
macOS⌘ + P / Meta + POpen the inline model picker. Quickly switch between Opus, Sonnet, and Haiku.
macOS⌥ ← / ⌥ →Jump word by word. Alt+←/→ on Windows/Linux.
macOS\ + EnterInsert a newline without submitting. Write multi-line prompts.
Space (hold)In voice mode: hold Space to record, release to transcribe and send.
Ctrl + SStash the current prompt draft without sending. Retrieve it later in the same session.
Ctrl + RIncremental reverse history search. Requires shell integration.
! <command>Run a shell command directly. Output appears in conversation so Claude can read it.
! git status! npm run testPower# <note>Add a note directly to Claude's memory. Persists across sessions.
# always use TypeScript strict mode# project uses Tailwind v4, not v3Power@ <filepath>Reference a file in your message. Claude reads and includes file content in context.
Review @src/auth.ts for security issuesPowerThink step by stepForces structured reasoning. Dramatically improves accuracy on complex problems.
Don't ask — just do itStops Claude asking clarifying questions. Use when you want immediate action.
Don't ask clarifying questions — just do your best with what you haveMinimal changes onlyPrevents over-engineering. Critical when you want surgical fixes, not rewrites.
Make only the minimal changes needed to fix this. Don't refactor anything else.ultrathinkTriggers maximum reasoning budget. Use for hardest problems. Also: "think hard", "think harder", "think very hard".
ultrathink about the architecture for this systemPowerNo yapping / Be conciseEliminates unnecessary explanation. Use when you want the answer, not the commentary.
Be concise. No preamble, no trailing summary. Just the code/answer.Read before editingEnsures Claude reads full context before touching anything. Avoids half-baked edits.
Read the full file before making any changes.Act as [role]Assigns an expert persona. Changes tone, depth, and focus of response.
Act as a senior security engineer reviewing this code for vulnerabilities.Output as [format]Specify the exact output format. Eliminates guessing and post-processing.
Output the result as a JSON array. No explanation, just the JSON.Use a todo listForces structured task decomposition. Great for complex multi-file changes.
Use a todo list to track each step. Check off tasks as you complete them.Commit after each stepCreates git checkpoints throughout the task. Lets you review or roll back incremental changes.
Commit your changes after completing each task step with a descriptive message.Write tests first (TDD)Enforces test-driven development. Ensures correctness from the start.
Write the failing tests first, then implement the code to make them pass.ELI5Explain this like I'm a complete beginner. Great for unfamiliar codebases.
Explain this like I'm a complete beginner, use simple analogies.What's wrong with this?Triggers critical analysis. Ask Claude to critique before fixing.
What's wrong with this code? Be critical and thorough. Don't suggest fixes yet.ContinueResume a cut-off response. Claude picks up exactly where it stopped.
List pros & consForces balanced analysis before a recommendation.
List the pros and cons of each approach before recommending one.Rubber duck meClaude asks questions to help you think through the problem yourself.
Help me think through this problem out loud. Ask me clarifying questions.Security auditFull security audit. Checks for OWASP top 10, injection, auth, data exposure.
Perform a security audit of this code. Check for OWASP top 10 vulnerabilities.Optimize for performanceAnalyse for performance bottlenecks with estimated impact per fix.
Analyse this code for performance bottlenecks. Suggest specific optimizations with estimated impact.No commands found for ""