xcrft/mastermind
GitHub: xcrft/mastermind
Mastermind 是一个基于本地 Rust 代码图谱的 AI 编码代理工作流引擎,通过确定性门控验证 agent 产出的代码声明,消除幻觉和范围蔓延。
Stars: 12 | Forks: 0
# Mastermind
## 命令
```
mastermind install # workflow agents + skills + MCP → Claude Code (global, once)
mastermind update / list # refresh the workflow bundle · show what ships
mastermind init # scaffold .mastermind/, build the index, draft CONTEXT.md
mastermind watch # keep the index live as you edit
mastermind doctor # fail-soft health checks (add --json for CI)
mastermind status / next # task list + health · single next step
mastermind new-spec "..." # create a task spec (--mode lite|standard|strict)
mastermind resume # paste-into-Claude prompt for the current phase
mastermind verify-spec # pre-execution gate
mastermind audit-spec # post-execution gate
mastermind miner profile # learn your code-shape style → ~/.mastermind/style.md
mastermind uninstall --scope all # tear it down (dry-run unless --force)
```
**保持在本地。** SQLite 索引由 tree-sitter 从你的文件中构建,永远不会离开你的机器。`install` / `init` 将工作流包写入 `~/.claude/{agents,skills,commands}/`,而 `setup` 在 `~/.claude.json` 中注册 MCP server —— 全部在本地,除了 npm registry 之外没有其他网络连接。完全离线:`mastermind init --no-claude --no-index --no-global`。将 `.mastermind/` 添加到 `.gitignore` —— 这是本地的工作状态。
## 贡献
参见 [`CONTRIBUTING.md`](CONTRIBUTING.md) —— 项目布局、需要运行的检查以及如何发起 PR。
## 许可证
MIT —— 参见 [`LICENSE`](LICENSE)。
从源码构建(Rust 1.75+)
``` cargo install mmcg # from crates.io cargo install --path mcp/servers/mmcg # from a clone ``` 相同的二进制程序 `mmcg`,相同的子命令。标签:AI编程助手, IPv6支持, MCP, MITM代理, Rust, SOC Prime, 代码审查, 代码知识图谱, 可视化界面, 工作流自动化, 开发工具, 网络流量审计, 通知系统