Interaction & Input

MiMo Code provides an interactive terminal interface or TUI for working on your projects with an LLM. This page covers how to enter messages, reference files, run commands, and steer the model while you work in the TUI.

Running MiMo Code starts the TUI for the current directory.

1mimo

Or you can start it for a specific working directory.

1mimo /path/to/project

Once you're in the TUI, you can prompt it with a message.

1Give me a quick summary of the codebase.

Input basics

Type your message in the input box at the bottom and press enter to send.

  • New line: press shift+enter, ctrl+j, ctrl+return, or alt+return to insert a line break without sending.
  • In-line editing: the input box supports common cursor and deletion shortcuts, e.g. ctrl+a / ctrl+e to jump to the start/end of the line, ctrl+w to delete the previous word, ctrl+u to delete to the start of the line.
  • Exit: press ctrl+c or ctrl+d, or use the /exit command.

File references

You can reference files in your messages using @. This does a fuzzy file search in the current working directory.

1How is auth handled in @packages/functions/src/api/index.ts?

The content of the file is added to the conversation automatically.

Image input

MiMo Code can scan images you provide and add them to your prompt. Just drag and drop the image into the terminal window.

1[Image #1] Take a look at this image and use it as a reference.

Image support depends on whether the selected model supports multimodal input.

Bash commands

Start a message with ! to run a shell command.

1!ls -la

The output of the command is added to the conversation as a tool result.

Slash commands

Type / followed by a command name to quickly execute actions. For example:

1/help

Most commands also have a keybind using ctrl+x as the leader key.

Mode switching and interrupts

MiMo Code provides two built-in working modes, Build and Plan. Build mode can read and write files and run commands directly; Plan mode only outputs an action plan without modifying files, which suits complex or high-risk tasks.

  • Switch modes: press tab during a session to toggle between Build and Plan.
  • Interrupt a response: while the model is streaming output or calling tools, press esc to interrupt the current turn.

For more on configuring and customizing modes, see Modes.