Skip to Content
CommandsSlash Commands

Slash Commands

Slash commands provide quick access to functionality within the interactive REPL.

Usage

Type / followed by the command name:

> /commit

Commands can accept arguments:

> /diff --staged

Auto-completion

The REPL provides tab-completion for slash commands. Type / and press Tab to see available commands.

Relationship to Skills

Some slash commands are powered by the Skills System. Skills are extended command definitions that can:

  • Load custom prompts
  • Chain multiple operations
  • Accept structured input
  • Provide specialized UI

When a user invokes a skill via /skill-name, the skill’s prompt is expanded and executed.

Common Slash Commands

CommandCategoryDescription
/helpInfoList available commands
/clearSessionClear conversation
/compactSessionCompress context
/commitGitCreate AI-assisted commit
/diffGitShow changes
/costInfoToken/cost summary
/configConfigEdit settings
/mcpExtensionManage MCP servers

Parsing

Slash commands are parsed by the command system in src/commands.ts. The parser:

  1. Detects the / prefix in user input
  2. Extracts the command name and arguments
  3. Resolves to a registered command handler
  4. Executes with parsed arguments
Last updated on