Skip to content

Slash Commands

List

/add-dir - Add a new working directory /agents - Manage agent configurations /bug - Submit feedback about Claude Code /clear - Clear conversation history and free up context /compact - Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization] /config - Open config panel /cost - Show the total cost and duration of the current session /doctor - Diagnose and verify your Claude Code installation and settings /exit - Exit the REPL /export - Export the current conversation to a file or clipboard /help - Show help and available commands /hooks - Manage hook configurations for tool events /ide - Manage IDE integrations and show status /init - Initialize a new CLAUDE.md file with codebase documentation /install-github-app - Set up Claude GitHub Actions for a repository /login - Sign in with your Anthropic account /logout - Sign out from your Anthropic account /mcp - Manage MCP servers /memory - Edit Claude memory files /migrate-installer - Migrate from global npm installation to local installation /model - Set the AI model for Claude Code /permissions - Manage allow & deny tool permission rules /pr-comments - Get comments from a GitHub pull request /release-notes - View release notes /resume - Resume a conversation /review - Review a pull request /status - Show Claude Code status including version, model, account, API connectivity, and tool statuses /upgrade - Upgrade to Max for higher rate limits and more Opus /vim - Toggle between Vim and Normal editing modes

  • see vscode for terminal-setup

Custom commands

It possible to define custom slash commands via md files

  • Per user
~/.claude/commands/

  • Per project
.claude/commands/
  • Slash commands

https://docs.anthropic.com/en/docs/claude-code/slash-commands