shyamsridhar123 /
sharkbait
AI-powered coding assistant for the command line. Uses OpenAI Responses API (not Chat). Autonomous agents, parallel code reviews, 33+ tools, multi-model support. Built with Bun & TypeScript.
Loading repository data…
XWJDream / repository
AI-powered coding assistant desktop app based on Xiaomi MiMo. Supports code generation, debugging, refactoring, project analysis, MCP tools and TTS.
AI 驱动的智能编程助手桌面端
基于 MiMo 大模型的 AI 编程工作台,支持代码生成、调试、重构、项目分析、多 Agent 协同与语音合成。
普通用户直接下载安装包即可使用,无需开发环境。
前往 Releases 页面下载最新版本:
| 平台 | 文件 | 说明 |
|---|---|---|
| Windows | MimoAgent Setup 0.4.0.exe | 最新安装包 |
| Windows | MimoAgent Setup 0.3.0.exe | 旧版本 |
首次启动需要在 设置 中配置 API Key。前往 小米 MiMo 开放平台 获取。
下载 exe 后可能弹出 "Windows 已保护你的电脑",这是 SmartScreen 对新程序的正常拦截,并非病毒。处理方式:
本项目完全开源,代码可审计。如有安全顾虑可自行克隆源码构建。
MiMo 提供两种 API 端点,根据你的计费方式选择:
| 端点 | 说明 |
|---|---|
https://api.xiaomimimo.com/v1 | 标准 API(推荐) |
https://token-plan-cn.xiaomimimo.com/v1 | Token 计划专用 |
在 设置 → API 地址 中修改,默认为 api.xiaomimimo.com。
plan(只读分析)/ act(完整操作)切换MIMO.md / .mimo-rules 注入项目特定指令.env 写入需确认,.git 目录禁止修改,支持自定义规则| 工具 | 说明 | plan 模式 |
|---|---|---|
read_file | 读取文件内容 | ✅ |
write_file | 写入文件(含 diff 预览) | ❌ |
edit_file | 编辑文件(含 diff 预览) | ❌ |
grep | 搜索文件内容 | ✅ |
glob | 搜索文件路径 | ✅ |
shell | 执行 Shell 命令 | ❌ |
web_fetch | 抓取网页内容 | ✅ |
git_status | 查看 Git 状态 | ✅ |
git_commit | 提交代码 | ❌ |
git_checkpoint | 创建检查点 | ✅ |
task_* | 任务管理(9 种操作) | ✅ |
memory_search | 记忆全文搜索 | ✅ |
项目包含完整的单元测试套件,确保代码质量和稳定性。
| 模块 | 测试文件 | 测试用例 | 覆盖率 |
|---|---|---|---|
| 权限检查器 | checker.test.ts | 17 | ~80% |
| 使用量追踪器 | usage-tracker.test.ts | 19 | ~80% |
| 文件缓存 | file-cache.test.ts | 15 | ~70% |
| 项目记忆 | memory.test.ts | 12 | ~70% |
| LLM 客户端 | client.test.ts | 8 | ~60% |
| 流式处理 | streaming.test.ts | 19 | ~80% |
| 重试逻辑 | retry.test.ts | 10 | ~70% |
| 输出校验 | validator.test.ts | 22 | ~90% |
| Shell 工具 | shell.test.ts | 24 | ~90% |
| 文件工具 | read/write/edit-file.test.ts | 52 | ~90% |
| 搜索工具 | glob/grep.test.ts | 32 | ~85% |
| 网页抓取 | web-fetch.test.ts | 24 | ~80% |
| 进程执行 | process.test.ts | 16 | ~70% |
| 配置管理 | configStore.test.ts | 19 | ~60% |
| 会话管理 | sessionStore.test.ts | 17 | ~70% |
| 子代理 | sub-agent.test.ts | 5 | ~60% |
| Agent 循环 | agent-loop.test.ts | 8 | ~50% |
总计:668 个测试用例(488 engine + 82 main + 98 renderer),总体覆盖率约 70%
# 运行所有测试
npm test
# 运行引擎测试
npm run test:engine
# 运行主进程测试
npm run test:main
# 运行渲染进程测试
npm run test:renderer
# 运行实时 API 测试(需要 API Key)
MIMO_LIVE_TESTS=1 MIMO_API_KEY=your-key npm run test:live
# 克隆仓库
git clone https://github.com/XWJDream/MimoAgent.git
cd MimoAgent
# 安装依赖
npm ci
npm --prefix engine ci
# 配置 API Key
cp .env.example .env
# 编辑 .env 填入你的 MIMO_API_KEY
# 启动开发模式
npm run start:dev
| 命令 | 说明 |
|---|---|
npm run start:dev | 启动 Vite + Electron 开发模式 |
npm run build | 完整构建(engine + main + preload + renderer) |
npm run clean | 清理 dist 和 engine/dist |
npm run package:win | 打包 Windows 安装包 |
npm test | 运行所有测试 |
npm run lint | 代码检查 |
npm run typecheck | 类型检查 |
MimoAgent/
├── src/
│ ├── main/ # Electron 主进程
│ ├── preload/ # 安全桥接层
│ ├── renderer/ # React UI
│ │ ├── components/ # 界面组件
│ │ │ ├── chat/ # 聊天面板
│ │ │ ├── skills/ # 智能技能
│ │ │ ├── console/ # 可视化控制台
│ │ │ ├── supervisor/ # Agent 督导
│ │ │ └── tools/ # Inspector 面板
│ │ ├── stores/ # Zustand 状态管理
│ │ ├── i18n/ # 国际化(中/英)
│ │ └── styles/ # 全局样式
│ └── shared/ # 共享类型与 IPC 通道
├── engine/ # Agent 引擎(独立 npm 包)
│ └── src/
│ ├── core/ # Agent 循环、子 Agent、Hook 系统、校验器
│ ├── tools/ # 内置工具(文件、Shell、Git、Web)+ 截断器
│ ├── permissions/# 权限检查(通配符模式匹配)
│ ├── context/ # System Prompt、上下文压缩、压力检测、溢出处理
│ ├── sandbox/ # Docker 沙盒、本地进程执行
│ ├── llm/ # LLM 客户端、流式处理、Token 估算、多 Provider、Prompt 缓存
│ ├── skills/ # 技能注册、匹配引擎
│ ├── supervisor/ # 督导规则引擎
│ ├── memory/ # 记忆系统(SQLite FTS5 全文搜索)
│ ├── task/ # 任务系统(五状态状态机 + Gate 机制)
│ ├── plugin/ # 插件系统(Hook 机制)
│ ├── mcp/ # MCP 集成(JSON-RPC 2.0 客户端)
│ └── config/ # 配置加载、校验、默认值
├── resources/ # 应用图标
└── scripts/ # 开发辅助脚本
| 层级 | 技术 |
|---|---|
| 桌面框架 | Electron 33 |
| 前端 | React 19 + TypeScript 5.7 |
| 构建 | Vite 6 |
| 样式 | Tailwind CSS 4 + CSS Variables |
| 状态管理 | Zustand 5 |
| 测试 | Vitest 4 |
| LLM 客户端 | OpenAI SDK(兼容 MiMo API) |
| Markdown | marked + DOMPurify |
| 图标 | lucide-react |
应用读取项目根目录 .env 文件,也支持在设置面板中运行时修改。
| 变量 | 说明 |
|---|---|
MIMO_API_KEY | API 密钥 |
MIMO_API_BASE | API 地址,默认 https://api.xiaomimimo.com/v1 |
MIMO_MODEL | 默认模型,如 mimo-v2.5-pro |
MIMO_PERMISSION_MODE | 权限模式:suggest / auto-edit / full-auto |
MIMO_MAX_TURNS | 最大对话轮次 |
在项目根目录创建以下文件,内容会自动注入到 Agent 的 System Prompt:
MIMO.md — 项目特定指令(推荐).mimo-rules — 规则文件CLAUDE.md / .clinerules — 兼容其他工具的格式内置敏感路径保护:
| 路径 | 操作 | 策略 |
|---|---|---|
**/.env* | 写入/编辑/Shell | 需确认 |
**/.git/** | 写入/编辑/Shell | 禁止 |
**/node_modules/** | 写入/编辑/Shell | 禁止 |
项目使用 GitHub Actions 自动化:
| Workflow | 触发条件 | 内容 |
|---|---|---|
Build & Test | push/PR to dev/master | Secret Scan → Lint → Typecheck → Test → Build |
Release | push tag v* | 全流程质量门 → Package → Create Release → 上传 exe |
MIT License
如果这个项目对你有帮助,欢迎 Star 支持!
Selected from shared topics, language and repository description—not editorial ratings.
shyamsridhar123 /
AI-powered coding assistant for the command line. Uses OpenAI Responses API (not Chat). Autonomous agents, parallel code reviews, 33+ tools, multi-model support. Built with Bun & TypeScript.
Naresh084 /
AI-powered desktop coding assistant built with Tauri (Rust + React) and Gemini API. Features 50+ skills, 10 subagents, 23 MCP connectors, and multi-provider AI support.
swaroski /
🚀 MYNQ AI - Transform your business with intelligent automation. Features AI-powered resume optimization, voice assistants, lead generation, video creation, and no-code agent builder. Trusted by 500+ companies with enterprise-grade security and APIs.
Qyrhal /
AI-powered coding assistant desktop app — Electron · React · Pi Agent · OpenAI-compatible
mudeer-ali-khan /
AI-powered terminal development assistant for analyzing large codebases, refactoring, generating tests, and automating engineering tasks. Supports multiple AI providers (OAuth/API key), interactive and headless CI/CD modes, IDE integrations, and a TypeScript SDK with an agent-driven workflow optimized for advanced coding models.
SiteWarming /
AI-powered open source license compliance scanner. Analyzes how dependencies are actually used — not just what license they have — to determine if obligations trigger for your distribution model. Multi-agent AI pipeline, MCP server for Claude Code integration, and structured output for AI assistants. Zero API keys needed for local use.