Skip to content

Built-in Slash Commands

Type / in any session to see all available commands.

CommandPurpose
/clearStart a new conversation (keeps session ID)
/compactSummarize conversation to free context window
/contextShow current context window usage
/statusShow model, permissions, context stats
/costShow token usage and estimated cost
/recapGenerate a summary of the current session
/backgroundMove entire session to background
/resumeSwitch to a different saved conversation
/rename <name>Name this session (resumable by name)
/branch [name]Fork the conversation to try another approach
/rewindOpen checkpoint menu (restore code/conversation)
/export [file]Export conversation to clipboard or file
CommandPurpose
/helpShow all available commands
/configOpen interactive settings UI
/modelSwitch Claude model mid-session
/effortAdjust reasoning level (auto/low/medium/high/max)
/fastToggle fast mode
/planEnter read-only plan/explore mode
/permissionsView and manage permission rules
/hooksView configured hooks
/mcpManage MCP servers
/agentsView and configure subagents
/memoryView/edit CLAUDE.md and auto memory
/themeChange color theme
/vimToggle vim keybindings
/terminal-setupInstall keybindings for multiline input
/cd <path>Change working directory
/add-dir <path>Grant access to an additional directory
/sandboxConfigure the sandboxed Bash tool
/statuslineConfigure your status line
/loginSwitch account / re-authenticate
CommandPurpose
/initGenerate a starter CLAUDE.md for this project
/doctorRun configuration diagnostics
CommandPurpose
/code-reviewReview current diff (supports --effort, --fix, --comment)
/reviewReview a GitHub pull request
/simplifySimplify changed code for readability
/verifyRun app and verify changes work
/security-reviewSecurity review of pending changes
CommandPurpose
/desktopHand this session off to the Desktop app
/remote-controlDrive this session from phone/browser
/chromeConnect/manage the Chrome browser integration
/scheduleCreate scheduled cloud routines
/loop <interval> <prompt>Repeat a prompt on an interval
/pluginInstall/manage plugins and marketplaces
CommandPurpose
/btw <question>Ask a quick side question without logging it
/usageShow plan usage limits
/exit or Ctrl+DExit the session
!<command>Run a shell command directly (e.g. !git status)
Terminal window
/config # interactive UI
/config model=claude-opus-4-8 # set a specific value
/config theme=light
/config verbose=true
  • Trick: type / and read the menu — you never memorize commands.
  • Buckets: session (/clear /compact) · config (/model /config) · quality (/code-review).
  • Show: /context then /compact — the pair everyone needs weekly.
  • They’ll trip on: fearing /clear — the old conversation stays resumable.

Learning path:03-core-cli-usage.md · Index · ➡ 05-interactive-mode-shortcuts.md

Written by Fenil Patel