Slash Commands

In addition to commands you define yourself, MiMo Code ships with a set of built-in slash commands. When using the TUI, type / followed by a command name to quickly execute actions. For example:

none
/help

Most commands also have keybind using ctrl+x as the leader key, where ctrl+x is the default leader key. Learn more.

NOTE

Custom commands can override built-in commands. If you define a custom command with the same name, it will override the built-in command. Learn more.

Here are all available built-in slash commands:


connect

Add a provider to MiMo Code. Allows you to select from available providers and add their API keys.

none
/connect

compact

Compact the current session. Alias: /summarize

none
/compact

Keybind: ctrl+x c


details

Toggle tool execution details.

none
/details

Keybind: ctrl+x d


editor

Open external editor for composing messages. Uses the editor set in your EDITOR environment variable. Learn more.

none
/editor

Keybind: ctrl+x e


exit

Exit MiMo Code. Aliases: /quit, /q

none
/exit

Keybind: ctrl+x q


export

Export current conversation to Markdown and open in your default editor. Uses the editor set in your EDITOR environment variable. Learn more.

none
/export

Keybind: ctrl+x x


help

Show the help dialog.

none
/help

Keybind: ctrl+x h


init

Guided setup for creating or updating AGENTS.md. Learn more.

none
/init

Keybind: ctrl+x i


models

List available models.

none
/models

Keybind: ctrl+x m


new

Start a new session. Alias: /clear

none
/new

Keybind: ctrl+x n


redo

Redo a previously undone message. Only available after using /undo.

TIP

Any file changes will also be restored.

Internally, this uses Git to manage the file changes. So your project needs to be a Git repository.

none
/redo

Keybind: ctrl+x r


sessions

List and switch between sessions. Aliases: /resume, /continue

none
/sessions

Keybind: ctrl+x l


share

Share current session. Learn more.

none
/share

Keybind: ctrl+x s


themes

List available themes.

none
/themes

Keybind: ctrl+x t


thinking

Toggle the visibility of thinking/reasoning blocks in the conversation. When enabled, you can see the model's reasoning process for models that support extended thinking.

NOTE

This command only controls whether thinking blocks are displayed - it does not enable or disable the model's reasoning capabilities. To toggle actual reasoning capabilities, use ctrl+tto cycle through model variants.

none
/thinking

undo

Undo last message in the conversation. Removes the most recent user message, all subsequent responses, and any file changes.

TIP

Any file changes made will also be reverted.

Internally, this uses Git to manage the file changes. So your project needs to be a Git repository.

none
/undo

Keybind: ctrl+x u


unshare

Unshare current session. Learn more.

none
/unshare