Skip to main content
Type / in the chat input to see available commands. Slash commands provide shortcuts for common actions, letting you switch modes, review code, run workflows, and access utilities without leaving the conversation.
Slash command autocomplete dropdown

Session commands

Control your current chat session and context:
CommandDescription
/planSwitch to Plan mode for strategic thinking and high-level design
/agentSwitch to Agent mode for autonomous task execution
/clearStart a new sub-chat while preserving conversation context
/compactCompact conversation context to reduce token usage
Use cases:
  • Use /plan when you need to think through architecture or design decisions before coding
  • Use /agent to let p0 work autonomously on implementing features
  • Use /clear to start fresh without losing important context from earlier in the session
  • Use /compact when approaching context limits to condense the conversation

Code review commands

Analyze and audit your code:
CommandDescription
/reviewComprehensive code review with suggestions for improvements
/pr-commentsGenerate review comments for a pull request
/release-notesGenerate release notes from recent commits and changes
/security-reviewSecurity-focused audit looking for vulnerabilities
Use cases:
  • Run /review before committing to catch issues early
  • Use /pr-comments to generate thorough PR feedback for team reviews
  • Generate /release-notes for changelog updates and user communication
  • Run /security-review before deploying to production

Workflow commands

Execute Purple’s multi-step development workflows:
CommandDescription
/build-from-specFull pipeline: import spec → engineer tasks → implement → test
/import-specImport and parse a product specification document
/engineer-tasksCreate detailed engineering plan from product spec
/orchestrateParallel implementation of engineering tasks from spec
/refineIncremental changes and improvements to existing features
/create-standardsGenerate coding standards by analyzing your codebase
/review-standardsReview code for compliance with workspace coding standards
Use cases:
  • Use /build-from-spec for complete feature development from product requirements
  • Use /import-spec when you have a product spec and want to start planning
  • Use /engineer-tasks to break down specs into actionable engineering tasks
  • Use /orchestrate to implement multiple tasks in parallel
  • Use /refine for iterative improvements to existing code
  • Use /create-standards to document your team’s coding patterns
  • Use /review-standards to ensure code consistency

Utility commands

Access configuration, diagnostics, and system information:
CommandDescription
/helpShow available commands and quick help
/modelSwitch between Claude models (Sonnet, Opus, Haiku)
/costShow token usage and estimated costs for the session
/memoryView and edit memory files for persistent context
/doctorRun diagnostics to check installation health
/mcpManage Model Context Protocol (MCP) servers
/configView current workspace and app configuration
/permissionsManage tool permissions and security settings
/statusShow current session status and active context
/vimToggle vim keybindings in the chat input
Use cases:
  • Use /model to switch to Opus for complex tasks or Haiku for simple queries
  • Check /cost to monitor token usage and stay within budget
  • Use /memory to view what p0 has remembered across sessions
  • Run /doctor if you’re experiencing issues
  • Use /mcp to add tools and integrations via MCP servers
  • Use /permissions to review what tools p0 can access
  • Use /vim if you prefer vim keybindings for text editing

Custom commands from plugins

Installed plugins can add their own slash commands. These appear in the autocomplete dropdown with a plugin icon and are documented in the plugin’s description. To see all available commands including those from plugins, type / in the chat input or use the /help command.
Type / in the chat input to see the autocomplete dropdown with all available commands, their descriptions, and keyboard shortcuts. Start typing to filter commands by name.

Command shortcuts

Many commands have keyboard shortcuts for faster access:
  • Cmd+K (macOS) / Ctrl+K (Windows/Linux) — Equivalent to /clear
  • Cmd+Shift+P (macOS) / Ctrl+Shift+P (Windows/Linux) — Command palette with all actions
For the complete list of keyboard shortcuts, see keyboard shortcuts.