Slash Commands
Slash commands control your Claude Code session. The official documentation at code.claude.com/docs/en/slash-commands is canonical and covers all commands and options.
Most Useful in Daily Flow
These are the commands Agronod engineers reach for most often:
/clear— Discard conversation history and start fresh. Use when context drift pulls focus away from the task./compact— Summarize the conversation and trim context. Add a focus instruction to steer the summary:/compact focus on error handling./memory— Edit.claude/CLAUDE.mdfiles to store project conventions and decisions. Claude reads these automatically in future sessions./model— Switch the AI model mid-session. Useful when you need a different capability (e.g., Opus for complex reasoning, Haiku for lightweight tasks)./mcp— View, authenticate, and manage MCP server connections. Critical for configuring tool access and credentials.
For initialization, use /init on a new project to set up .claude/CLAUDE.md automatically. For status checks, /status shows account and system information.
Related
- Keyboard Shortcuts - Speed up your interactions
- Permission Modes - Control what runs without prompting
- Context Management - Optimize conversation scope