MiMo-Code
AGENTS.md14k starsChanged 2 months agoMITView on GitHub
Reduce total variable count by inlining when a value is only used once. Avoid unnecessary destructuring. Use dot notation to preserve context. Prefer const over let. Use ternaries or early returns instead of reassignment. Avoid else statements. Prefer early returns. Use snake_case for field names so column names don't need to be redefined as strings. Two independent absences meet in one expression, and only one of them is undefined. .get() yields undefined when no row matches — Drizzle normalises the…
Trending
Less talk lately.about the whole repository
Who's talking about XiaomiMiMo/MiMo-Code
- anomalyco/opencode“fix: subagent permission asks hang indefinitely (sync subagents treated as interactive)”GitHub · Jul 3, 2026 · 6 reactions
- Graphify-Labs/graphify“Support MiMo Code platform”GitHub · Jun 27, 2026 · 3 reactions
- @github-trending-js.bsky.social“📦 XiaomiMiMo / MiMo-Code ⭐ 13,425 (+87) 🗒 TypeScript MiMo Code: Where Models and Agents Co-Evolve”Bluesky · Sep 23, 2026 · 2 likes
- @agentpalisade.bsky.social“MiMoCode is Xiaomi's terminal coding agent, an OpenCode fork whose bet is memory: persistent project …”Bluesky · Jul 3, 2026 · 2 likes
- @thinkronicity.ispost.ing“#ClaudeCode? Nah Man #Xiaomi Mimo Code v2.5 #AmericanAI now has head to head Chinese firm's #LLMs advancing …”Bluesky · Jun 15, 2026 · 2 likes
The biggest 5 of 38 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 38
Talked about on GitHub and Bluesky (38 times).
On GitHub · 32
- Jul 3, 2026fix: subagent permission asks hang indefinitely (sync subagents treated as interactive) — anomalyco/opencode6 reactions · 2 comments
- Jun 27, 2026Support MiMo Code platform — Graphify-Labs/graphify3 reactions
- Jun 12, 2026feat: add MiMoCode agent support — vercel-labs/skills2 reactions
- Jun 11, 2026feat(hook): Add MiMo-Code as supported agent — rtk-ai/rtk2 reactions · 1 comment
- Sep 7, 2026Assistant: support for OpenCode Go provider — posit-dev/positron1 reaction · 3 comments
27 more on GitHub
- Jul 3, 2026fix: preserve UTF-8 BOM when reading/writing files — Kilo-Org/kilocode1 reaction · 1 comment
- Jun 21, 2026feat(clients): add mimocode (Xiaomi MiMo Code) client adapter — applicate2628/mcp-local-hub1 reaction · 20 comments
- Jun 13, 2026[Feature Request] Add support for mimocode — openchamber/openchamber1 reaction · 3 comments
- Jun 11, 2026MiMo Code — AAswordman/OperitPackageMarket1 reaction
- Sep 30, 2026[reading-list] hunyuan-agent-team · E Xiaomi MiMo — xianbintang/tech-tree0 reactions · 2 comments
- Sep 28, 2026[topic] 混元 Agent 团队协同:环境/数据平台与 RL 框架的目标、对沙盒平台的需求(学习清单,待选择) — xianbintang/tech-tree0 reactions · 1 comment
- Sep 26, 2026Propose a MiMo Code target: .mimocode/ tree (mimocode.jsonc mcp/permissions, commands, agents, skills, plugins) — dyoshikawa/rulesync0 reactions
- Sep 23, 2026feat(catalog): add MiMo Code, codebase-memory-mcp, claude-mem, Oh My OpenAgent, CLI-Anything — QAInsights/awesome-ai-tools0 reactions · 3 comments
- Sep 23, 2026opencode-go: mimo-v2.6-flash vision reads a stale image after ≥5 images in one session — anomalyco/opencode0 reactions
- Sep 22, 2026Technology Radar — 2026-09-22 — carlosasantoss73-tech/AUREA0 reactions
- Sep 22, 2026Add MiMo Code default system prompt from official source — 0xeb/TheBigPromptLibrary0 reactions
- Sep 18, 2026Support MiMo Code — GuanceCloud/obs-agent-connector0 reactions
- Aug 18, 2026Fix infinite looping for MiMo — ltmoerdani/opencode-copilot-chat0 reactions · 1 comment
- Jul 3, 2026fix: context limit display uses stale model after model switch — Kilo-Org/kilocode0 reactions · 1 comment
- Jul 3, 2026fix: context limit display uses stale model after model switch — anomalyco/opencode0 reactions · 2 comments
- Jul 3, 2026fix: preserve UTF-8 BOM when reading/writing files — anomalyco/opencode0 reactions · 2 comments
- Jul 1, 2026new version mimo — termuxvoid/repo0 reactions · 1 comment
- Jul 1, 2026update version — Hope2333/MiMoCode-Termux0 reactions · 2 comments
- Jun 29, 2026[Feature] Support MiMo Code — siteboon/claudecodeui0 reactions · 1 comment
- Jun 27, 2026feat: add MiMo Code agent to registry — agentclientprotocol/registry0 reactions
- Jun 23, 2026https://github.com/XiaomiMiMo/MiMo-Code — weihubeats/Asuna0 reactions · 1 comment
- Jun 22, 2026[Feature] MiMo Code Support — diegosouzapw/OmniRoute0 reactions
- Jun 17, 2026quick-note:https://github.com/XiaomiMiMo/MiMo-Code — strikersam/autonomous-ai-agency0 reactions · 16 comments
- Jun 12, 2026Support https://github.com/XiaomiMiMo/MiMo-Code — jellydn/my-ai-tools0 reactions
- Jun 11, 2026[Support Request] Xiaomi MiMo-Code CLI as a new Agent — chenhg5/cc-connect0 reactions · 5 comments
- Jun 11, 2026新功能建议-增加对mimo code的支持 — coulsontl/ai-toolbox0 reactions
- Jun 11, 2026[Request]: mimo-code — ScoopInstaller/Main0 reactions
On Bluesky · 6
- Sep 23, 2026📦 XiaomiMiMo / MiMo-Code ⭐ 13,425 (+87) 🗒 TypeScript MiMo Code: Where Models and Agents Co-Evolve — @github-trending-js.bsky.social2 likes and reposts
- Jul 3, 2026MiMoCode is Xiaomi's terminal coding agent, an OpenCode fork whose bet is memory: persistent project knowledge, context rebuilding near the… — @agentpalisade.bsky.social2 likes and reposts · 1 reply
- Jun 15, 2026#ClaudeCode? Nah Man #Xiaomi Mimo Code v2.5 #AmericanAI now has head to head Chinese firm's #LLMs advancing to equals. With the last 4 m.… — @thinkronicity.ispost.ing2 likes and reposts · 2 replies
- Oct 4, 2026MiMo Code, a terminal-based (command-line) AI coding assistant with persistent project memory. We've tried it, we'll install it on customer… — @eracks.com1 likes and repost
- Jun 11, 2026セッションを跨いでプロジェクトの文脈を記憶できるターミナル特化のAIコーディングツールらしい 自律的にタスクを管理して開発を支援してくれる機能がかなり便利そう yug1224 starred XiaomiMiMo/MiMo-Code… — @yug1224.com1 likes and repost
1 more on Bluesky
- Jul 16, 2026If you're looking for cost-effective options I would recommend you to check MiMo models and token subs They're not as smart as GLM, BUT you… — @tunaxor.me0 likes and reposts · 3 replies
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- drive-mimoSkill
- effectSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 0 are common, 9 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use MiMoCode Compose skills when available, otherwise use superpowers skill if installed.
- Distinctive: line 7
ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE.
- Distinctive: line 10
Prefer automation: execute requested actions without confirmation unless blocked by missing info or safety/irreversibility.
- Very specific: line 13
Do not edit packages/cli/migration/*/migration.sql that already shipped — engines have applied those journals.
- Distinctive: line 19
Keep things in one function unless composable or reusable
- Very specific: line 20
Avoid try/catch where possible
- Very specific: line 21
Avoid using the any type
- Very specific: line 22
Use Bun APIs where the runtime is Bun-only, like Bun.file() in the TUI (src/cli/cmd/tui/).
- Distinctive: line 26
Prefer functional array methods (flatMap, filter, map) over for loops.
- Distinctive: line 42
Avoid unnecessary destructuring.
- Very specific: line 55
Prefer const over let. Use ternaries or early returns instead of reassignment.
- Very specific: line 69
Avoid else statements. Prefer early returns.
- Distinctive: line 87
Use snake_case for field names so column names don't need to be redefined as strings.
- Very specific: line 112
When a caller only asks "is there a value", flatten to undefined, and write the flattening as an annotation rather than an as cast:
- Distinctive: line 130
Avoid mocks as much as possible
- Distinctive: line 131
Test actual implementation, do not duplicate logic into tests
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MiMo-Code
Conventions
- Use MiMoCode Compose skills when available, otherwise use superpowers skill if installed.
- To regenerate the JavaScript SDK, run
./packages/sdk/script/build.ts. - ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE.
- The default branch in this repo is
main. - CI triggers on
main. - Prefer automation: execute requested actions without confirmation unless blocked by missing info or safety/irreversibility.
- Install deps with
bun ci(=bun install --frozen-lockfile) — install perbun.lock, don't mutate the lockfile. ⛔ Do NOT usebun install/npm install. - Comments, docs, shipped skill content and test assertions use synthetic values, never machine-specific ones —
/tmp/examplefor paths,test/modelfor model refs,feat/examplefor branches. - Do not edit
packages/cli/migration/*/migration.sqlthat already shipped — engines have applied those journals; new schema changes get a new migration directory underpackages/cli/migration/.
Style Guide
General Principles
- Keep things in one function unless composable or reusable
- Avoid
try/catchwhere possible - Avoid using the
anytype - Use Bun APIs where the runtime is Bun-only, like
Bun.file()in the TUI (src/cli/cmd/tui/); build-time macros are fine anywhere, as they never reach the shipped runtime - In core code reachable from
src/node.ts, prefer the Node equivalent when one exists —createHashoverBun.CryptoHasher,prepare()over bun:sqlite'squery()— as that code also ships throughscript/build-node.tsand must run on plain Node - Bun-only calls in core escape both
typecheckandbun test, which run on Bun; existing usage needs no urgent removal, and APIs with no Node equivalent may stay until a runtime seam exists - Rely on type inference when possible; avoid explicit type annotations or interfaces unless necessary for exports or clarity
- Prefer functional array methods (flatMap, filter, map) over for loops; use type guards on filter to maintain type inference downstream
- In
src/config, follow the existing self-export pattern at the top of the file (for exampleexport * as ConfigAgent from "./agent") when adding a new config module.
Reduce total variable count by inlining when a value is only used once.
// Good
const journal = await Bun.file(path.join(dir, "journal.json")).json()
// Bad
const journalPath = path.join(dir, "journal.json")
const journal = await Bun.file(journalPath).json()Destructuring
Avoid unnecessary destructuring. Use dot notation to preserve context.
// Good
obj.a
obj.b
// Bad
const { a, b } = objVariables
Prefer const over let. Use ternaries or early returns instead of reassignment.
// Good
const foo = condition ? 1 : 2
// Bad
let foo
if (condition) foo = 1
else foo = 2Control Flow
Avoid else statements. Prefer early returns.
// Good
function foo() {
if (condition) return 1
return 2
}
// Bad
function foo() {
if (condition) return 1
else return 2
}Schema Definitions (Drizzle)
Use snake_case for field names so column names don't need to be redefined as strings.
// Good
const table = sqliteTable("session", {
id: text().primaryKey(),
project_id: text().notNull(),
created_at: integer().notNull(),
})
// Bad
const table = sqliteTable("session", {
id: text("id").primaryKey(),
projectID: text("project_id").notNull(),
createdAt: integer("created_at").notNull(),
})Reading a nullable column
Two independent absences meet in one expression, and only one of them is
undefined. .get() yields undefined when no row matches — Drizzle normalises
the driver's null there — while a nullable column's SQL NULL arrives as
null. So row?.some_column is T | null | undefined.
When a caller only asks "is there a value", flatten to undefined, and write the
flattening as an annotation rather than an as cast:
// Good — the compiler enforces it; deleting the `?? undefined` is a type error
const boundary: MessageID | undefined = row?.last_checkpoint_message_id ?? undefined
// Bad — the cast removes `null` from the union without converting anything,
// so the declared type is untrue at runtime
return row?.last_checkpoint_message_id as MessageID | undefinedDiscriminate a possibly-absent value with truthiness or == null, never with
=== undefined / !== undefined. Because null !== undefined is true, such a
guard typechecks, reads correctly in review, and does nothing.
Testing
- Avoid mocks as much as possible
- Test actual implementation, do not duplicate logic into tests
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

