Files
qiuruiandClaude Sonnet 4.6 df59fc0c83 feat: NMFS Agents 全量入库(org v2 + dashboard + 多队列 + 组织架构)
包含从项目创建至今的全部代码首次入库:

核心框架:
- TaskQueue(SQLite,6 种状态,原子 dequeue)
- Executor(asyncio 并发,semaphore 限流,agent_role 路由)
- Scheduler(APScheduler,三队列独立调度)
- Watchdog(超时检测 + 优先级防饥饿)
- Scanner(项目扫描,README/TODO/CLAUDE.md 提取)

Agent 体系(20+ 角色):
- 项目交付组:architect/developer/tester/productizer
- 基础技术组:base-architect/validator/hw/os/kernel/lowlevel/system-tester
- 算法组:algo-antishake/position/nav
- 洞察组:planner/vision-analyst/media-producer
- 市场组:market-pm/sport/elder/safety
- 组织层:boss/group-leader/senior-dev/ops
- 平台扩展:nrf-dev/esp32-dev
- 三专项调研:rtp-researcher/net-researcher/kernel-analyzer

工具层:
- ProjectMemory(goals/facts/history SQLite)
- VersionPipeline(并行版本流水线 + 反幻觉门控)
- EventBus(Redis Streams,5 consumer groups)
- DailyReport(append-only 日报 + Boss 决策视图)
- AgentScorer(4 维评分:完成度/质量/自主性/协作)
- DeviceAgent(SSH rsync + 板端执行)
- EnvCollector(本机+SSH 环境采集)
- ArchVersion(快照/优化/promote/rollback)

Dashboard(React + Vite + Tailwind):
- 看板/项目/配置/洞察/日报/Visual 六标签页
- WebSocket 实时更新
- Markdown 渲染(react-markdown + remark-gfm)

测试:314 passed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 07:24:19 +08:00

148 lines
6.9 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MCP 工具注册表(热更新,无需重启 daemon)
registry:
# 思维链推理 - 复杂任务拆解、风险识别、方案对比
sequential-thinking: "npx -y @modelcontextprotocol/server-sequential-thinking"
# 网页内容抓取 - 数据手册、论文、API 文档、竞品信息
fetch: "npx -y @modelcontextprotocol/server-fetch"
# 浏览器自动化 - 截图、视觉测试、UI 交互验证
playwright: "npx -y @playwright/mcp@latest"
# 技术文档检索 - 库/框架上下文感知搜索(减少幻觉)
context7: "npx -y @upstash/context7-mcp@latest"
# 任务队列数据库 - 查询项目交付队列任务现状
sqlite-tasks: "npx -y @modelcontextprotocol/server-sqlite /data/company/agents/data/tasks.db"
# 项目记忆数据库 - 查询平台目标、项目目标、能力事实、验证结果
sqlite-memory: "npx -y @modelcontextprotocol/server-sqlite /data/company/agents/data/project_memory.db"
# 每个角色的工具列表
# SSH 板端访问通过 Bash 命令实现,设备信息由 _build_device_context() 注入系统提示
roles:
# ── 基础技术研发组 (base_opt 队列) ─────────────────────────────────────────
hw-engineer:
- sequential-thinking # 硬件选型推理:算力/功耗/成本/供货权衡
- fetch # 数据手册、芯片规格表、供应商文档抓取
- context7 # 嵌入式技术库文档(HAL/BSP 框架)
os-engineer:
- sequential-thinking # RTOS/内核任务拆解与调度分析
- fetch # Linux 内核文档、RTOS 参考手册
- context7 # 驱动框架 API、设备树绑定文档
algo-researcher:
- sequential-thinking # 算法方案推理、精度/性能权衡
- fetch # 论文、算法实现参考、数据集
- context7 # 科学计算库文档(numpy/scipy/filterpy
algo-antishake:
- sequential-thinking
- fetch
- context7
algo-position:
- sequential-thinking
- fetch
- context7
algo-nav:
- sequential-thinking
- fetch
- context7
base-validator:
- sequential-thinking # 测试策略规划、指标基线对比
- fetch # 测试框架文档参考
- context7 # pytest/测量工具 API 文档
base-architect:
- sequential-thinking # 平台技术架构分析与整合建议
- fetch # 技术趋势、架构模式参考
- context7 # 框架/工具链文档
- sqlite-memory # 查询能力事实和验证结果,识别技术债
# ── 项目研发与交付组 (project_delivery 队列) ────────────────────────────────
developer:
- sequential-thinking # 功能拆解、实现方案推理
- fetch # API 文档、依赖库参考
- context7 # 库/框架最新文档(避免幻觉版本)
dev-kernel:
- sequential-thinking # 驱动开发推理、内存安全分析
- fetch # 内核文档、DTS 绑定规范
- context7 # 内核 API、驱动框架文档
dev-lowlevel:
- sequential-thinking # 硬件 bring-up 推理、时序分析
- fetch # BSP/Bootloader/U-Boot 文档
- context7 # 裸机开发框架文档
system-tester:
- sequential-thinking # 测试策略规划、覆盖率分析
- fetch # 测试框架、CI 工具文档
- playwright # 截图+视觉验证+跨平台 UI 测试
- context7 # pytest/测试框架最新文档
architect:
- sequential-thinking # 架构分析、跨项目权衡推理
- fetch # 架构模式、最佳实践参考
- context7 # 技术框架文档
- sqlite-tasks # 查询任务历史,了解项目交付现状
- sqlite-memory # 查询能力事实和项目目标,制定架构方向
# ── 产品洞察与市场落地组 (insight 队列) ─────────────────────────────────────
planner:
- sequential-thinking # 差距分析推理、优先级决策
- fetch # 市场动态、技术趋势信息抓取
- sqlite-tasks # 查询任务队列,避免重复需求入队
- sqlite-memory # 查询平台目标、项目目标、能力事实
productizer:
- sequential-thinking # 成熟度评分推理、维度分析
- fetch # 行业标准、同类产品成熟度参考
- sqlite-memory # 查询项目目标和能力事实作为评分依据
vision-analyst:
- sequential-thinking # 视觉质量分析推理
- fetch # 视觉效果参考、UI 设计规范
- playwright # 板端推理界面截图、视觉交互验证
market-pm:
- sequential-thinking # 市场文档推理、方案书结构规划
- fetch # 市场资料、竞品信息、行业数据抓取
- context7 # 行业标准和规范文档
- sqlite-memory # 查询本平台能力事实作为竞品对比基准
media-producer:
- sequential-thinking # 媒体生产规划、效果图合成逻辑推理
- fetch # 行业内容参考、风格灵感
# ── 兼容旧角色(保持向后兼容)────────────────────────────────────────────
tester: [sequential-thinking, fetch, playwright, sqlite-memory]
dev-embedded: [sequential-thinking, fetch, context7]
dev-backend: [sequential-thinking, fetch, context7]
dev-ml: [sequential-thinking, fetch, context7]
dev-test: [sequential-thinking, fetch, playwright]
dev-refactor: [sequential-thinking, fetch]
arch-system: [sequential-thinking, fetch, context7]
arch-security: [sequential-thinking, fetch]
arch-reviewer: [sequential-thinking, fetch]
pm: [sequential-thinking, fetch, sqlite-memory]
# ── 专项调研(project_delivery 队列)────────────────────────────────────
rtp-researcher:
- sequential-thinking
- fetch # RTP/RTCP RFC 文档、媒体传输最佳实践
- context7 # 协议库文档
- sqlite-memory # 读取已有调研结论
net-researcher:
- sequential-thinking
- fetch # 网络栈文档、内核网络子系统资料
- context7 # Linux 网络编程文档
- sqlite-memory
kernel-analyzer:
- sequential-thinking
- fetch # 内核文档、调度器源码参考
- context7 # Linux 内核 API 文档
- sqlite-memory