This page may contain stale information. Last updated: 2026-06-12

Definition

MiMo Code is an open-source terminal-native AI coding agent released by xiaomi’s MiMo team on June 10, 2026 (v0.1.0, MIT license). Forked from opencode, it targets long-horizon software engineering — maintaining context and decision quality across dozens to 200+ sequential execution steps.

Installation

  • macOS/Linux: curl -fsSL https://mimo.xiaomi.com/install | bash
  • Windows: npm install -g @mimo-ai/cli

Memory Architecture

Four-layer persistent memory (SQLite FTS5):

  1. Project memory (MEMORY.md) — rules, architecture decisions
  2. Session checkpoints — checkpoint-writer subagent maintains structured snapshots concurrently with main agent
  3. Scratch notes (notes.md)
  4. Task progress (tasks/*/progress.md)

Checkpoints trigger at ~20%, 45%, 70% of context budget; runtime rebuilds window from persisted state when limit approached.

Evolution: Dream and Distill

  • /dream: Auto-runs ~every 7 days; deduplicates sessions, verifies paths, compresses long-term memory
  • Distill: Automates repeated workflows mined from session history

Computation Features

  • Max Mode: Parallel candidate sampling (N=5) with judge selection
  • Goal: Independent verifier for natural-language stopping conditions
  • Compose mode: Tab-triggered spec-driven full SDLC workflow
  • Dynamic Workflow: Deterministic JavaScript orchestration in sandbox

Model Access

  • MiMo Auto: Zero-config, free limited-time, MiMo-V2.5 (1M context)
  • BYOM: DeepSeek, Kimi, GLM, any OpenAI-compatible API
  • Claude Code config import (MCP, skills, API keys)

Benchmark Claims

All benchmark figures are Xiaomi internal/self-reported — not independently verified.

BenchmarkMiMo Code + V2.5-ProClaude Code + Sonnet 4.6
SWE-bench Verified82%79%
SWE-bench Pro62%55%
Terminal Bench 273%69%

Past 200 steps: >65% win rate in internal A/B (576 developers, 1,213 pairs).

Privacy Considerations

Telemetry ("analysis") enabled by default, sends metrics including model name to tracking.miui.com. Opt-out: MIMOCODE_ENABLE_ANALYSIS=false. MiMo Auto routes code context through Xiaomi servers.

Sources