Skip to content

Claude CLI & Assistant Shortcuts

A quick reference of essential slash commands and productivity shortcuts for working with Claude-based AI developer tooling and CLI sessions.


Slash Commands Reference

Command Action Description
/model Model Selection Switch between Claude models (e.g. Claude 3.5 Sonnet, Claude 3 Opus, Claude 3.5 Haiku).
/context Inspect Context Display current tokens used, file attachments, and active context window limits.
/compact Compact Conversation Summarize earlier turns to reduce context token consumption while retaining key decisions.
/clear Reset Session Clear conversation history and start a fresh context session.
/init Workspace Analysis Initialize project context by scanning repo structure, README, and dependencies.
/help Help & Documentation Display available commands, keyboard shortcuts, and configuration options.