Skip to content

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 ​

CommandPurpose
/aboutShow version and build information.
/agentsList, enable, disable, configure, or reload subagents.
/authConfigure authentication and API credentials.
/bugFile a bug report using the configured bug command.
/bug-memoryReport a problem with memory or context.
/chatBrowse, save, resume, delete, share, and inspect checkpoints.
/clearStart a new session (alias: /new).
/commandsList and reload available commands.
/compressCompact conversation history (aliases: /summarize, /compact).
/context-windowDisplay context window usage.
/copyCopy the last response to the clipboard.
/directoryAdd or show workspace directories (alias: /dir).
/docsOpen project documentation.
/editorPick the preferred editor interactively.
/export-sessionExport the current session to a file.
/extensionsManage extensions and explore the registry.
/helpShow in-app help.
/hooksManage and inspect hooks.
/ideManage IDE integration status and installation.
/initInitialize project context files.
/mcpManage MCP servers, tools, resources, and prompts.
/memoryShow, reload, list, or inspect memory.
/modelShow, set, or manage the active model.
/paletteOpen the fuzzy command palette.
/permissionsTrust the current folder.
/planCopy or manage a plan.
/policiesList active policy rules.
/privacyShow privacy settings.
/profileInspect performance profile (development builds only).
/quitExit M31A (alias: /exit).
/restoreRestore files from a checkpoint.
/resumeResume a saved session.
/rewindRewind the conversation to a checkpoint.
/settingsOpen the settings dialog.
/shortcutsShow keyboard shortcuts.
/sidebarToggle or configure the status sidebar (alias: /statusline).
/skillsList, link, enable, disable, or reload agent skills.
/setup-githubConfigure GitHub integration.
/statsShow usage statistics (alias: /usage).
/stashList, save, pop, or clear stashed changes.
/terminal-setupConfigure terminal integrations.
/themeChange the UI theme.
/thinkingSet the reasoning effort.
/toolsList tools and show tool descriptions.
/tasksManage background tasks (aliases: /bg, /background).
/vimToggle Vim input mode.
/voiceManage voice mode (experimental).

Subcommands ​

Several commands accept a second keyword:

CommandSubcommands
/agentslist, enable, disable, config, reload
/chatlist, save, resume (load), delete, share, debug, checkpoints
/commandslist, reload
/directoryadd, show
/extensionslist, update, disable, enable, install, link, uninstall, explore, reload, config
/hookspanel (list, show), enable, disable, enable-all, disable-all
/idestatus, install, enable, disable
/mcpauth, list (ls), desc (description), schema, reload, enable, disable
/memoryshow, reload, list, inbox
/modelset, manage
/permissionstrust
/plancopy
/policieslist
/stashlist, save, pop, clear
/statssession, model, tools, heatmap
/toolslist, desc
/skillslist, link, disable, enable, reload
/thinkingdefault, off, minimal, low, medium, high
/voicemodel

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 ​

Built with VitePress. Powered by NVIDIA NIM.