Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SamXiaoMiCode

SamXiaoMiCode is a Chinese-first Xiaomi MiMo coding agent with a CLI, web dashboard, and Tauri desktop client. It is built around the Xiaomi MiMo OpenAI-compatible API and only accepts mimo-v2.5 and mimo-v2.5-pro as chat models.

At a glance: the welcome banner, slash-command picker, tool cards, diff preview, and status row render the same way the desktop client does.

Welcome banner

中文文档:README.zh-CN.md

Screenshots

Boot & input

Welcome banner Prompt input (CJK) Bash mode (! prefix)
Welcome banner Prompt input Bash mode

Run output

Tool card (success) Tool card (error) Streaming reply + todos
Tool card OK Tool card error Streaming card

Permission & diff

Shell confirmation Split diff Status row
Shell confirm Split diff Status row

Status & boot

Thinking row Boot splash
Thinking row Boot splash

Highlights

  • Conversation-as-version-control checkpoints with /checkpoint and /restore.
  • Five built-in specialist agents: @code-reviewer, @dev-planner, @bug-analyzer, @story-generator, and @ui-sketcher.
  • MCP runtime discovery for tools, resources, prompts, search, parsing, and visual inspection.
  • Four permission layers: Always Ask, Accept Edits, Plan Mode, and Bypass. Legacy review, auto, and yolo aliases still work.
  • Engineering workflow presets for Spec-Kit, OpenSpec, and Superpowers, with built-in quality skills such as impeccable, brooks-lint, frontend-design, html-ppt-skill, logo-generator-skill, excalidraw, and kami.

Install

Requires Node.js 22 or newer.

npm install -g @samxiaomicode/cli
cd path/to/project
sam-xiaomi-code

Short command:

sam-code

One-off usage:

npx @samxiaomicode/cli

On Windows PowerShell, use npm.cmd when execution policy blocks npm.ps1.

Desktop client

The desktop client lives in desktop/ and is built on Tauri 2:

  • React 19 + Vite frontend with strict TypeScript.
  • Rust backend bridges the local CLI sidecar through Tauri commands.
  • Signed updater, WebView2 install hints, light/dark theme.

Windows packaging:

cd desktop
npm install
npm run bundle:node      # fetch and extract Node 22 into src-tauri/binaries/
npx tauri build         # produce .msi and .exe installers

Bundles land in desktop/src-tauri/target/release/bundle/. Signing instructions are in desktop/SIGNING.md.

Common Commands

Command Purpose
sam-xiaomi-code / sam-xiaomi-code code [dir] Start the coding agent rooted at a workspace.
sam-xiaomi-code chat Chat without filesystem or shell tools.
sam-xiaomi-code run "task" Run one non-interactive task.
sam-xiaomi-code desktop Start the desktop sidecar process.
sam-xiaomi-code doctor Check API, config, MCP, and project health.
sam-xiaomi-code mcp list List configured MCP servers.

Configuration

User configuration is stored at:

~/.samxiaomicode/config.json

Set the API key through the first-run wizard or environment variables:

export MIMO_API_KEY=...
export MIMO_BASE_URL=https://api.xiaomimimo.com/v1

MIMO_BASE_URL or SAMXIAOMICODE_BASE_URL may point at a third-party OpenAI-compatible proxy, but the model must still be mimo-v2.5 or mimo-v2.5-pro. Official pricing estimates are disabled for non-official base URLs.

Model Presets

Preset Strategy
auto Default. Use mimo-v2.5 for normal turns and escalate hard turns to mimo-v2.5-pro.
normal Always use mimo-v2.5. Legacy alias: flash.
pro Always use mimo-v2.5-pro.

/pro arms the Pro model for the next turn only and then disarms automatically.

Development

npm install
npm run build
npm run lint
npm run typecheck
npm test
npm run verify

Desktop client:

cd desktop
npm install
npm run dev
npm run build

Documentation

License

SamXiaoMiCode is MIT licensed. Preserve attribution in THIRD_PARTY_NOTICES.md and LICENSES/, and never commit API keys, local config, caches, session files, or generated secrets.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages