MiMo-Code: Skill for Claude Code

.agents/skills/drive-mimo/SKILL.md

drive-mimo is a skill for Claude Code, Codex from XiaomiMiMo/MiMo-Code. It costs 91 tokens per session (4,934 once invoked), scanned D, original, MIT.

A testing tool for MiMoCode that starts and controls another MiMoCode process either without a user interface or through its terminal interface. It records machine-readable results so runs can be checked by scripts.

In plain words
What is it for?
Running scripted tests, checking JSON events, testing permission dialogs and keyboard controls, debugging MiMoCode from source, and performing visual regression tests.
Why use it?
It makes automated and interactive testing repeatable while keeping test settings, sessions, and files separate from the developer’s own environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is XiaomiMiMo/MiMo-Code's own configuration. It tells Claude Code and Codex how to work on MiMo-Code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MiMo-Code configures →

About the project

MiMoCode is a terminal-based AI coding assistant that reads and writes code, runs commands, manages Git, and remembers project context across sessions. Developers use it to work with software projects through a command-line interface and connect it to language-model providers; the catalogue includes skills and instructions for it.

XiaomiMiMo/MiMo-Code · 13,737 stars · on GitHub · mimo.xiaomi.com

Reuse

Borrowing it

Nothing to install: this file belongs to XiaomiMiMo/MiMo-Code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/XiaomiMiMo/MiMo-Code/main/.agents/skills/drive-mimo/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drive-mimo

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/drive-mimo/github.svg)](https://agentmods.dev/skills/xiaomimimo/mimo-code/drive-mimo)
Your own site
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/drive-mimo"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/drive-mimo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for drive-mimo

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/drive-mimo"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/drive-mimo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,934 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 414
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
  • high Tool Misuse · line 457
    Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
    Fix: Limit tool chaining depth and validate the output of each tool before passing it to the next. Require explicit user approval for multi-step chains.
  • medium Excessive Agency · line 114
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.04934
Opus 5.5 $0.00036 $0.01974
Sonnet 5.5 $0.00018 $0.00987
Haiku 4.5 $0.00009 $0.00493

Measured 17d ago against content hash 40738c240bc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

drive-mimo scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/wait-for-text.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

# Screen should still show prompt (not exit)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$MHOME" "$WORKSPACE"
.agents/skills/drive-mimo/SKILL.md · 457 lines

How it starts

The opening of the file, as written. The whole thing — 457 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Drive MiMo

Overview

Two interfaces for driving a separate mimo process:

Interface Command Use when
Headless mimo run --format json Scripted tasks, CI, event validation
TUI mimo in tmux Interactive flow, permission dialogs, keybindings, visual regression

Core principle: Every run produces parseable evidence. No eyeballing.

Always drive an isolated instance: give each run a fresh MIMOCODE_HOME and a throwaway workspace so it never touches your own config, memory, or session DB.

Two ways to launch — orthogonal to interface

The interface (headless vs TUI, above) is what you drive. How the process is launched is a separate axis — either can be launched either way:

Launcher Command Use when
Installed binary mimo … Testing a released/installed build
Dev (from source) bun dev … Debugging mimocode itself — runs src/index.ts directly, no build step, picks up local code changes

Everything below uses mimo for brevity. To drive a dev build instead, substitute bun dev for mimo and run from the repo root — every flag, JSON event, and tmux technique is identical. See the Dev Mode section.

Prerequisites

# mimo binary must be on PATH (installed-binary launcher)
which mimo || echo "mimo not found on PATH"

# OR: dev launcher — run from the mimocode repo root, needs bun
which bun || echo "bun not found — needed for dev mode"

# tmux (for TUI interface)
which tmux || echo "tmux not found — install it for TUI mode"

Running the wait-for-text.sh helper: invoke it as ./scripts/wait-for-text.sh … from this skill's directory. The repository copy is executable and can be called directly.


Dev Mode (debugging mimocode itself)

When the goal is to debug mimocode's own code, launch from source with bun dev instead of the installed mimo binary. It runs packages/cli/src/index.ts directly — no build step — so local edits take effect on the next launch.

Read the full file on GitHub · 457 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · -1 lines 40738c240bc5
  2. 29d ago Changed a679673fc80b
  3. 2mo ago First seen · 458 lines · 91 tokens per session scan D 56df45543fa4

Subscribe to this mod's changes

drive-mimo is a skill published in the GitHub repository XiaomiMiMo/MiMo-Code (13,737 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 4,934 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks the agent to reveal its instructions, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.