基于开源 AtomCode 的三层增强(Skills / MCP / .atomcode.md),在不动源码前提下为编码智能体注入云端记忆、真值蒸馏、全域锁档能力,构建国产自主编码智能体。
单个模型有天花板;多智能体瓶颈在组织方式而非模型本身;主流编码 Agent 会话上下文无法跨会话延续,知识无法沉淀。
终端 AI 编码智能体 + 云端中枢记忆网关 + 联邦 Worker 调度。既是 AtomCode 生态增强版,又是 ZONGYUAN-ROOT 面向开发者/技术服务的对外能力出口。
| 工具 | 功能 | 通道 | 里程碑 |
|---|---|---|---|
| zr_ping | 通道健康探测 | POST /api/report/truth | M1 |
| zr_truth_report | 真值上报(主备降级) | POST /api/report/truth | M1 |
| zr_truth_query | 真值检索 | GET /api/truth | M2 |
| zr_memory_get | 记忆向量检索 | GET /api/memory-search | M2 |
| zr_memory_set | 记忆写入(MEMORY.前缀) | POST /api/report/truth | M2 |
zr_memory_set 'MEMORY.zongyuancode-m2-e2e' → seq=189546(写库) zr_truth_query 'ZongyuanCode' → count=10,即时命中 zr_memory_get 'ZONGYUAN-ROOT' k=2 → score 0.58 语义召回
| seq | key | 说明 |
|---|---|---|
| 189538 | LOCK.ZONGYUANCODE-M1.20261026 | M1 正式锁档 |
| 189546 | MEMORY.zongyuancode-m2-e2e | M2 记忆写入闭环 |
| 189547 | LOCK.ZONGYUANCODE-M2.MCP-E2E.20261026 | M2 MCP 端到端 |
| 189548 | LOCK.ZONGYUANCODE-M2.20261026 | M2 正式锁档 |
M1:MCP server 三 bug + `_read_frame` 按字符读导致多字节 UTF-8 阻塞 → 改 `sys.stdin.buffer` 按字节精确读取 + 全局 socket 超时 + handler 线程护栏。
M2:真值查询端点 `/api/truths/`(复数 404)→ 正确路径 `/api/truth`,并新增 `/api/memory-search` 向量检索通道。
git clone https://atomgit.com/zongyuangen/zongyuancode-config.git ~/.atomcode/zongyuancode-config mkdir -p ~/.atomcode/skills && cp -r ~/.atomcode/zongyuancode-config/skills/* ~/.atomcode/skills/ cp ~/.atomcode/zongyuancode-config/.mcp.json ~/.atomcode/mcp.json