What MiMo Code Is—and Why Persistent Memory Matters
MiMo Code is an open-source AI coding agent that runs in the terminal and uses persistent memory workflows to execute long, multi-step software tasks without losing context mid-way. Instead of acting like a short-lived autocomplete plugin, MiMo Code is built as a terminal coding assistant that can plan, write, test, and revise code over extended sessions. It builds on Xiaomi’s MiMo-7B and MiMo-V2.5 models and is released under the MIT license, so teams can use and modify it freely. Unlike many AI coding tools that live inside an IDE or browser, MiMo Code operates where build systems, compilers, and scripts already run: the command line. That makes it feel less like a chat window and more like an agentic developer tool that shares your workspace, shells into your project, and handles repetitive engineering workflows end to end.
Inside MiMo Code’s Memory System: From Subagents to /dream
Most AI coding assistants rely on a limited context window: once the conversation history grows, they forget earlier design decisions or file changes. MiMo Code tackles this by pairing the main AI coding agent with a background subagent that continuously manages context. When the active conversation nears its limit, the subagent condenses prior steps into structured summaries, so the AI coding agent can keep working without losing the thread. Xiaomi also added a scheduled maintenance feature called /dream that runs every seven days. It launches a separate agent to scan old sessions and memory files, remove duplicates, verify paths, and compress them into a refreshed long-term memory store. This design anchors memory to durable summaries and project files instead of relying only on transient chat history, which is vital for persistent memory workflows that span dozens of commands, edits, and test cycles.
Terminal-Native Agentic Workflows That Reach 200 Steps
MiMo Code’s biggest differentiator is that it operates as a terminal coding assistant rather than a passive text generator. It intercepts raw terminal output, inspects directory structures, reads environment variables, and executes local bash commands. In Xiaomi’s internal beta across 576 engineers, the tool completed long-horizon objectives exceeding 200 operational steps, including repository cloning, dependency updates, and multi-file refactors. Compiler errors kick off an autonomous diagnostic loop where the agent parses stack traces, finds the failing line, and attempts a targeted fix—no extra prompt required. A typical 200-step agentic run might update package manifests, adjust APIs across files, run unit tests, patch failed cases, and open a formatted pull request. According to benchmark data reported by Xiaomi, MiMo Code executed 200-step workflows that caused Claude Code to fall into continuous terminal hallucination loops, highlighting the impact of its persistent memory design.
Compose Mode, MiMo Harness, and Checkpointing for Developers
Beyond raw terminal control, MiMo Code introduces the MiMo Harness—an execution framework tailored for MiMo models rather than treating them as generic APIs. Pressing Tab enters Compose mode, where developers describe a goal and let the agent plan and execute an entire workflow, from design and implementation to testing and review. Xiaomi claims this can yield “industrial-grade finished product” quality and backs it with benchmark scores of 62% on SWE-Bench Pro and 73% on Terminal Bench 2, outperforming Claude Code on the same base model. To avoid failure late in a long run, the harness includes deterministic checkpointing: it records every bash command, file change, and dependency install. Developers can inspect these checkpoints to see where logic diverged or to audit agent actions. Air-gapped sandboxing keeps these powerful agentic developer tools away from production databases and sensitive infrastructure during experimentation.
Open-Source Economics and the Competitive Landscape
MiMo Code is released under the MIT license and is designed to be open and composable: it ships with free access to MiMo-V2.5 but can also use third-party backends such as DeepSeek, Kimi, and GLM. Lengthy agentic runs can consume large token volumes with commercial APIs, so Xiaomi highlights that enterprises can self-host the model on internal GPUs to avoid recurring token bills while running frequent 200-step workflows. Internally, engineering teams used MiMo Code on tasks ranging from Android Open Source Project modifications to device firmware updates, where the agent adjusted memory allocation parameters and handled low-level builds. This open-source, terminal-native AI coding agent positions Xiaomi as a serious contender in AI developer tooling, competing directly with proprietary coding environments. For individual developers, the combination of no license lock-in and deep terminal integration means enterprise-style agentic workflows are now accessible from a local shell.






