Slash commands are typed into the M31A prompt with a leading /. They are registered by BuiltinCommandLoader and defined under packages/cli/src/ui/commands/. Some commands are gated behind experimental settings or feature flags.
Command catalog
| Command | Purpose |
|---|---|
/about | Show version and build information. |
/agents | List, enable, disable, configure, or reload subagents. |
/auth | Configure authentication and API credentials. |
/bug | File a bug report using the configured bug command. |
/bug-memory | Report a problem with memory or context. |
/chat | Browse, save, resume, delete, share, and inspect checkpoints. |
/clear | Start a new session (alias: /new). |
/commands | List and reload available commands. |
/compress | Compact conversation history (aliases: /summarize, /compact). |
/context-window | Display context window usage. |
/copy | Copy the last response to the clipboard. |
/directory | Add or show workspace directories (alias: /dir). |
/docs | Open project documentation. |
/editor | Pick the preferred editor interactively. |
/export-session | Export the current session to a file. |
/extensions | Manage extensions and explore the registry. |
/help | Show in-app help. |
/hooks | Manage and inspect hooks. |
/ide | Manage IDE integration status and installation. |
/init | Initialize project context files. |
/mcp | Manage MCP servers, tools, resources, and prompts. |
/memory | Show, reload, list, or inspect memory. |
/model | Show, set, or manage the active model. |
/palette | Open the fuzzy command palette. |
/permissions | Trust the current folder. |
/plan | Copy or manage a plan. |
/policies | List active policy rules. |
/privacy | Show privacy settings. |
/profile | Inspect performance profile (development builds only). |
/quit | Exit M31A (alias: /exit). |
/restore | Restore files from a checkpoint. |
/resume | Resume a saved session. |
/rewind | Rewind the conversation to a checkpoint. |
/settings | Open the settings dialog. |
/shortcuts | Show keyboard shortcuts. |
/sidebar | Toggle or configure the status sidebar (alias: /statusline). |
/skills | List, link, enable, disable, or reload agent skills. |
/setup-github | Configure GitHub integration. |
/stats | Show usage statistics (alias: /usage). |
/stash | List, save, pop, or clear stashed changes. |
/terminal-setup | Configure terminal integrations. |
/theme | Change the UI theme. |
/thinking | Set the reasoning effort. |
/tools | List tools and show tool descriptions. |
/tasks | Manage background tasks (aliases: /bg, /background). |
/vim | Toggle Vim input mode. |
/voice | Manage voice mode (experimental). |
Subcommands
Several commands accept a second keyword:
| Command | Subcommands |
|---|---|
/agents | list, enable, disable, config, reload |
/chat | list, save, resume (load), delete, share, debug, checkpoints |
/commands | list, reload |
/directory | add, show |
/extensions | list, update, disable, enable, install, link, uninstall, explore, reload, config |
/hooks | panel (list, show), enable, disable, enable-all, disable-all |
/ide | status, install, enable, disable |
/mcp | auth, list (ls), desc (description), schema, reload, enable, disable |
/memory | show, reload, list, inbox |
/model | set, manage |
/permissions | trust |
/plan | copy |
/policies | list |
/stash | list, save, pop, clear |
/stats | session, model, tools, heatmap |
/tools | list, desc |
/skills | list, link, disable, enable, reload |
/thinking | default, off, minimal, low, medium, high |
/voice | model |
Custom commands
In addition to built-ins, M31A loads commands from three sources:
- File commands — Markdown command definitions discovered from the user and workspace command directories (
FileCommandLoader). - Skill commands — skills exposed as commands (
SkillCommandLoader). - MCP prompts — prompts advertised by connected MCP servers (
McpPromptLoader).
Reload them with /commands reload.
Command processing
Input is parsed by slashCommandProcessor.ts. Built-in command definitions declare altNames (aliases), subcommands, and gating predicates. Gated commands appear only when their underlying feature is enabled — for example /skills requires skills support and /agents requires experimental.enableAgents.
Next steps
- See Keybindings for the accelerator keys.
- See MCP, Skills, and Hooks for command-specific guides.