Xiaomi’s open-source MiMo Code puts an AI coding assistant inside the terminal, where plenty of developers across Asia already spend their working day. It reads and writes code, runs commands and handles Git. Its main selling point is a memory that carries a project’s context from one session to the next, so the user does not have to explain the codebase again each time.
Memory and long sessions
The memory is stored locally and searched with SQLite full-text search. It holds project knowledge and architecture decisions in a MEMORY.md file, structured session checkpoints written automatically by a dedicated subagent, scratch notes, and a progress log for each task. When a session resumes, that material is injected back into context. A token budget limits how much goes in, ranked by importance.
When a conversation nears the model’s context limit, MiMo Code rebuilds the context from the latest checkpoint, project memory, task progress and recent messages, so the agent can carry on with the job. A /context-limit command lets users make a model compact earlier than its own window, for example at 300K tokens. The project gives two reasons: some providers charge more for very long prompts, and very long contexts are slower and, past a point, not better.
Agents, goals and workflows
Users press Tab to switch between primary agents. Build and Plan can swap at any time, while other modes lock once the first message goes out. The main agent can spin up subagents that share session context and work in parallel. Tasks follow a tree structure (T1, T1.1, T1.2) tied into the checkpoints, so progress survives a resumed session.
A /goal command sets a stopping condition, and an independent judge model checks whether it has really been met before the agent is allowed to quit. Workflows, written as deterministic JavaScript scripts, run fixed phases with bounded retries and no user interaction. Skills, reusable instruction sets for tasks such as generating PDFs or searching arXiv, load automatically when they match a task.
Models and the desktop app
MiMo Code connects to mainstream LLM providers. First launch offers an OpenAI login for ChatGPT Pro or Plus, a one-step import of existing Claude Code authentication, a provider list that includes xAI Grok, and a custom option for any OpenAI-compatible API. Xiaomi’s MiMo-V2.6-Pro and MiMo-V2.6-Flash models power it, and Xiaomi says MiMo models also work in Cursor, Cline and Zed.
The same engine drives Xiaomi MiMo Desktop. There, smart orchestration weighs task type and cost to pick models and tools, and complex jobs can run across several agents at once. Xiaomi says its caching reaches up to 99 percent hit rates within a session and 95 percent across sessions, which it presents as a way to hold down the cost of long tasks. The desktop app can build presentations, webpages and 3D assets, control a browser, and, in the international version only, operate the mouse and keyboard across apps.
Rough edges
The project lists platform problems. The built-in macOS Terminal is unsupported, so users should switch to iTerm2 or the VS Code terminal. On Windows with a non-UTF-8 locale such as zh-CN, CJK output may come out garbled. The workaround is the system-wide UTF-8 beta setting, which can make older non-Unicode programs display wrongly. Over SSH the interface can lag, and the fix is to render it locally while running only the server on the remote machine, or to switch off decorative animation with /vivid. On WSL, copying text may need the xsel package installed.





