← all repositories
XiaomiMiMo/MiMo-Code

An AI Coding Agent That Never Forgets and Sometimes Dreams

MiMoCode exists so a terminal AI assistant can remember your codebase across sessions, delegate to parallel subagents, and turn its own traces into reusable skills.

12.6k stars TypeScript Coding AssistantsAgents
Feature · 18 Jun 2026
Xiaomi’s Terminal Bet: Building an Agent That Remembers the Week Before

MiMo Code is an open-source terminal agent that treats persistent memory and state continuity as the bottleneck for long-horizon programming, not raw model capability.

Read the in-depth article
MiMo-Code
Velocity · 7d
+41
★ / day
Trend
accelerating
star history

What it does

MiMoCode is a terminal-native AI coding assistant forked from OpenCode. It reads and writes code, runs commands, manages Git, and connects to mainstream LLM APIs. The difference is a persistent memory system—built on SQLite FTS5—that maintains project knowledge, session checkpoints, and task progress across restarts, plus a subagent system that lets the primary agent spin up parallel workers on demand.

The interesting bit

When context windows fill up, MiMoCode reconstructs state from its latest checkpoint, project memory, and recent messages rather than starting cold. It also runs an independent judge model to evaluate whether a /goal stop condition is truly met, preventing agents from declaring victory too early. After sessions, /dream extracts knowledge into long-term memory and /distill packages repeated workflows into reusable skills—hence the “co-evolve” pitch.

Key highlights

  • Persistent cross-session memory via SQLite FTS5, with automatic injection on resume and token-budgeted context reconstruction when limits approach.
  • Tree-shaped task tracking integrated with checkpoints, plus on-demand subagents that share session context and run in parallel with lifecycle management.
  • Compose mode for specs-driven development, orchestrating planning, TDD, code review, debugging, and merging from spec to shipped code.
  • Goal-driven autonomy via /goal with a separate judge model that vets stop conditions before the agent quits.
  • Built-in MiMo Auto channel (free for a limited time) with zero configuration, plus support for any OpenAI-compatible API provider.

Caveats

  • MiMo Auto is free only for a limited time; long-term pricing and availability are unspecified.
  • Voice input and the MiMo ASR model require a MiMo logged-in account; OpenRouter and other providers are limited to voice control only.
  • The MIT-licensed source is also subject to separate Use Restrictions and MiMo Trademark Policies, and hosted services fall under Xiaomi’s Terms of Service.

Verdict

Developers who want a terminal AI that maintains deep project context across sessions and can delegate to parallel subagents should look here. If you need a GUI, a from-scratch codebase, or a permanently free hosted option, this isn’t your tool.

Frequently asked

What is XiaomiMiMo/MiMo-Code?
MiMoCode exists so a terminal AI assistant can remember your codebase across sessions, delegate to parallel subagents, and turn its own traces into reusable skills.
Is MiMo-Code open source?
Yes — XiaomiMiMo/MiMo-Code is open source, released under the MIT license.
What language is MiMo-Code written in?
XiaomiMiMo/MiMo-Code is primarily written in TypeScript.
How popular is MiMo-Code?
XiaomiMiMo/MiMo-Code has 12.6k stars on GitHub and is currently accelerating.
Where can I find MiMo-Code?
XiaomiMiMo/MiMo-Code is on GitHub at https://github.com/XiaomiMiMo/MiMo-Code.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.