FairygitMother巡逻队
代码库守护者。 闲置的代理在你的仓库中巡逻,寻找bug、代码漂移和质量问题。
部分 公平的母亲 家庭——“没有代币未被使用。”
它的作用
FairygitMother Patrol是一个MCP服务器,它协调后台AI代理以持续维护您的代码库。它适用于任何兼容MCP的客户端-- 克劳德代码, 谷歌反重力,或任何代理IDE。
您的代理可以使用完整的工具访问进行本地工作。巡逻队只是协调:需要做什么,尝试了什么,谁审查了什么。
巡逻任务
| 任务 | 描述 |
|---|---|
| 虫子拖网 | 扫描问题跟踪器,发现错误,尝试修复,PR |
| 测试健康状况 | 运行测试套件,识别故障,修复或报告 |
| 代码漂移 | 检测在没有匹配文档/测试更新的情况下更改的代码 |
| 标准 | 代码库中的Lint、格式、约定违规 |
| 依赖 | 过时的deps,已知的漏洞 |
| 死代码 | 无法访问的代码、未使用的导出、孤立的文件 |
| Bug验证 | 重现报告的错误,确认或关闭 |
交叉验证
没有代理会审查自己的工作。当Claude修复一个错误时,Antigravity会对其进行审查。当Antigravite检测到漂移时,Claude会验证这一发现。PR仅在交叉验证通过后创建。
仅背景
Patrol永远不会劫持你的活动编码会话。所有工作都发生在后台代理会话中,使主代理线程空闲。
快速开始
克劳德代码
claude mcp add fairygitmother-patrol -- npx fairygitmother-patrol反重力
添加到MCP服务器配置中:
{
"fairygitmother-patrol": {
"command": "npx",
"args": ["fairygitmother-patrol"]
}
}配置
创建 .fairygitmother/patrol.json 在您的repo根目录中:
{
"agents": {
"claude": { "id": "claude", "model": "claude-opus-4-6" },
"antigravity": { "id": "antigravity", "model": "gemini-3.1-pro" }
},
"repos": [
{ "owner": "your-org", "repo": "your-repo" }
],
"patrols": {
"bug_trawl": { "enabled": true, "labels": ["bug", "good first issue"] },
"test_health": { "enabled": true, "command": "pnpm test" },
"code_drift": { "enabled": true },
"standards": { "enabled": true, "command": "pnpm lint:fix" }
},
"crossValidation": {
"required": true,
"prBlockedUntilCrossVal": true
},
"pr": {
"autoCreate": true,
"branchPrefix": "patrol/"
},
"github": {
"token": "env:GITHUB_TOKEN"
}
}建筑
┌─────────────────────────────────────────────────────┐
│ Your Active Session │
│ (Claude Code or Antigravity IDE) │
│ You're coding. Untouched. │
└─────────────────────────────────────────────────────┘
┌──────────────────┐ ┌──────────────────┐
│ Background Agent │ │ Background Agent │
│ (Claude) │ │ (Antigravity) │
│ │ │ │
│ patrol/next─────┼────┐ │ patrol/next─────┤
│ patrol/report───┼──┐ │ │ patrol/report───┤
└──────────────────┘ │ │ └──────────────────┘
│ │
┌───────▼─▼────────────┐
│ Patrol MCP Server │
│ │
│ Task Queue │
│ Cross-Val Enforcer │
│ Provenance Tracker │
│ SQLite State │
└──────────┬───────────┘
│
┌─────▼─────┐
│ GitHub │
│ PRs only │
│ after │
│ cross-val│
└───────────┘MCP工具
| 工具 | 说明 |
|---|---|
patrol/next-task | 获取下一个巡逻任务。交叉验证意识——永远不要回复对自己工作的评论 |
patrol/report | 提交修复或审查。跟踪来源和路线交叉验证。 |
patrol/status | 查看队列深度、待审核、最近的活动。 |
patrol/configure | 更新巡逻配置。 |
patrol/history | 查看已完成的任务、创建的PR、查看结果。 |
本地优先
所有州都存储在本地SQLite数据库中。没有云依赖,没有帐户,没有遥测。你的仓库、你的机器、你的数据。
FairygitMother家族的一员
- 公平的母亲 --用于开源维护的分布式代理网格
- FairygitMother巡逻队 --您自己仓库的本地代码库守护者
相同的理念:空闲计算做有用的工作。不同上下文的不同信任模型。
许可证
麻省理工学院
