MiMo Code Commands Reference

Every slash command, keyboard shortcut, and agent explained.

Slash CommandsKeyboard ShortcutsWork ModesMemory System

Slash Commands

CommandDescriptionUsage
/initGenerate or update AGENTS.mdRun first in a project. The agent studies the codebase and writes guidance into AGENTS.md.
/connectConnect or sign in to a model providerChange provider or credentials without restarting.
/modelsSwitch modelsPick a different model for the current session.
/agentsSwitch agentsMove between the build, plan and compose agents (also via Tab).
/thinkingToggle thinking-block visibilityShow or hide the agent's reasoning blocks.
/rebuildRebuild context from the latest checkpointFrees context while keeping recent messages verbatim.
/undoUndo the latest message and its file changesRevert the last turn, including edits it made.
/redoRestore an undone message and its file changesRe-apply a change you undid.
/compactSummarize a long sessionShrink the context without losing the thread (alias /summarize).
/dreamConsolidate project memoryFold durable knowledge from recent work into memory.
/distillDistill repeated workflowsPackage workflows you repeat into skills, subagents or commands.
/goalSet a judge-verified stop conditionRuns until a judge model agrees the condition is met; /goal clear aborts.
/reviewReview a commit, branch or pull requestDefaults to uncommitted changes.
/clearStart a new sessionReset the conversation; project memory persists (alias /new).
/statusShow system and session statusModel, session and system information.
/exitExit MiMoCodeLeave the TUI (aliases /quit, /q).

Keyboard Shortcuts

ShortcutAction
Ctrl+CInterrupt agent's current action
Ctrl+DExit MiMo Code (EOF)
Ctrl+LClear screen
Up ArrowPrevious command in history
TabAutocomplete file paths

Agents in Detail

Plan (read-only)

Press Tab before your first message, or start with mimo --agent plan. The agent analyses your request and the codebase and presents a plan. No code is modified. Approve it, then switch to the build agent.

Best for: Complex refactors, architecture changes, unfamiliar codebases.

Build (default)

The build agent is the default and has full tool permissions, so it makes changes immediately. Good for simple, well-understood tasks.

Best for: Bug fixes, small features, known codebases.

Compose

Press Tab before your first message to enter the compose agent (Compose stays locked once entered). It plans first, then builds. For spec-driven work the docs recommend the /compose-next skill on the build agent.

Best for: New features, multi-file changes.

Memory System

MiMo Code's persistent memory system is what sets it apart for long-horizon tasks. Checkpoints are written automatically as a session runs — there is no manual checkpoint command. Here's how it works:

Project Memory

Stored under the MiMoCode data directory (~/.local/share/mimocode/memory/). Contains project rules, architecture decisions, and learned patterns. Persists across sessions.

Checkpoints & Rebuild

A checkpoint-writer subagent snapshots session state automatically. When the context fills up, /rebuild reconstructs it from the latest checkpoint while keeping recent messages; /undo reverts the latest message and its file changes.

Dream & Distill

/dream consolidates project knowledge. /distill packages repeated workflows into skills, subagents or commands. These processes keep memory compact and relevant.

AGENTS.md

Create AGENTS.md at the project root for rules the agent should always follow; /init generates or updates it from the codebase. Similar in spirit to Claude Code's CLAUDE.md.

Quick Tips

Independent reference. Commands may change with new MiMo Code releases. Always check official docs for the latest.

Mastered the Commands?

Install MiMo Code and put your knowledge to work.