MiMo Code Commands Reference

Every slash command, keyboard shortcut, and work mode explained.

Slash CommandsKeyboard ShortcutsWork ModesMemory System

Slash Commands

CommandDescriptionUsage
/initInitialize project context and memoryRun first in any project. Creates .mimocode/ directory with project rules.
/connectConnect or switch model providerChange API provider mid-session without restarting.
/thinkingToggle thinking/planning visibilityShow or hide the agent's reasoning process.
/memoryView, edit, or reset project memoryManage persistent memory: view history, add rules, clear context.
/planEnter plan modeAgent analyzes and proposes a plan before making changes.
/buildEnter build modeAgent makes code changes immediately (skip planning).
/composeEnter compose modeAgent plans first, then builds (recommended for complex tasks).
/checkpointSave a checkpointCreate a restore point before major changes.
/rollbackRoll back to a checkpointUndo changes since last checkpoint. Useful for failed experiments.
/dreamConsolidate project memoryAgent reviews and distills project context into compact form.
/distillDistill task learningsSave lessons learned from a completed task into memory.
/configView or edit current configShow current provider, model, mode, and environment settings.
/clearClear conversation contextReset the current session's chat history (memory persists).
/statusShow session statusDisplay current model, token usage, memory state, and active tools.
/exitExit MiMo CodeSave session and return to terminal.

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

Work Modes in Detail

Plan Mode

Use /plan or start with --mode plan. The agent analyzes your request, studies the codebase, and presents a detailed plan. No code is modified. Approve the plan, then switch to build mode.

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

Build Mode

Use /build or start with --mode build. The agent makes changes immediately. Good for simple, well-understood tasks.

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

Compose Mode

Use /compose or start with --mode compose. The agent plans first, then asks for approval before building. Best of both worlds.

Best for: New features, multi-file changes, most tasks (recommended default).

Memory System

MiMo Code's persistent memory system is what sets it apart for long-horizon tasks. Here's how it works:

Project Memory

Stored in .mimocode/memory.json. Contains project rules, architecture decisions, and learned patterns. Persists across sessions.

Checkpoints

Use /checkpoint before risky changes. Create named restore points. /rollback to undo. Stored in .mimocode/checkpoints/.

Dream & Distill

/dream consolidates project knowledge. /distill extracts lessons from completed tasks. These processes keep memory compact and relevant.

AGENTS.md / MEMORY.md

Create AGENTS.md at project root for rules the agent should always follow. MEMORY.md for project-specific context. Similar 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.