cleanup(repo): 收束目录结构 + 排除本地状态 删 fixtures/ (空 + 仅 .gitkeep) scripts/ 收窄到只保留 run_full_eval.sh (其余 14 个非活跃脚本 + sdd-workspace/ 删除) requirements.txt 替换为 requirements-w5-frozen 内容; 末尾追加 sandbox section (pyodide-py>=0.29.0 指向 pyproject [sandbox] extra) 删除 requirements-w5-frozen.txt + requirements-sandbox.txt (已并入) untrack .superpowers/sdd/progress.md (gitignore line 37 兜底已存在) 文件保留本地磁盘供后续 subagent 跟踪 docs/achieve/ 落地(v6 报告 + w5 历史 plan/spec 重命名归档)
cleanup(repo): 收束目录结构 + 排除本地状态
面向”低开销通信 · 非文本状态 · 共享记忆”的多 Agent 协作框架。在 openEuler 24.03-LTS-SP3 上完成 5 方案 × 4 任务 × 3 seed = 60 cell 评测,59/60 PASS(含 1 次 retry,98.3%)。
required_capabilities
provided_capabilities
poll_task
delegate_task
send_message
/ /e2e /ablate /memory /audit
★ = 推荐主方案
┌─────────────────────────────────────────────────────────────────────┐ │ Layer 3 — 评测与可视化 │ │ pytest 集成测试 · 6 CSV + 130+ trace JSONL · Web 仪表盘 (FastAPI) │ ├─────────────────────────────────────────────────────────────────────┤ │ Layer 2 — Agent 运行时 + 多 Agent 协同 │ │ Agent Loop · Mailbox · TeammateSpawner · SharedBoard │ │ 工具:read/write/diff/grep/search/run_tests/exec_python │ │ delegate/send_message/poll_task/board_* │ │ write_memory/search_memory │ ├─────────────────────────────────────────────────────────────────────┤ │ Layer 1 — 四大可插拔机制 (A 通信 / B 状态 / C 记忆 / D 握手) │ │ A Protocol: Text · Protobuf · DSL · JSON │ │ B State: TextState · BGEStateEncoder (bge-m3, 1024d) │ │ C Memory: NoMemory · Keyword (BM25) · Hybrid (RRF) │ │ D Registry: AgentDefinition + capability + cost_hint │ └─────────────────────────────────────────────────────────────────────┘
git clone <repo-url> synapse cd synapse pip install -r requirements.txt pip install -e .
pytest tests/unit/ -v
只有用到 bge 状态 / Hybrid 记忆时才需要。模型 INT8 ONNX,~600MB,首次自动下载。两种路径任选:
python3 -c " from huggingface_hub import snapshot_download snapshot_download('BAAI/bge-m3', allow_patterns=['onnx/*', '*.json', 'tokenizer*']) "
pip install modelscope modelscope download --model onnx-community/bge-m3-ONNX
python3 -c " from src.synapse.agents.state import BGEStateEncoder import numpy as np e = BGEStateEncoder() v = e.encode_raw('hello') print(f'OK: shape={v.shape}, dtype={v.dtype}, norm={np.linalg.norm(v):.3f}') "
bash scripts/run_full_eval.sh # ~7h on openEuler,需 OPENAI_API_KEY
跑完数据自动落 experiments/results/*.csv,可通过 Web 仪表盘查看:
experiments/results/*.csv
python dashboard/scripts/dashboard_gen.py python -m uvicorn dashboard.app:app --host 127.0.0.1 --port 8000 # 浏览器打开 http://localhost:8000
📊 docs/experiments/eval-report-final.md — v7 3-seed 完整评测报告(60 cell + 4 维度 ablate + S3.1 闭环 + 排雷叙事)
docs/experiments/eval-report-final.md
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Synapse · 多智能体协作框架
✨ 核心特性
required_capabilities/provided_capabilities,启动前静态校验依赖poll_task/delegate_task/send_message异步编排/ /e2e /ablate /memory /audit),每个 case 同步生成 JSONL trace5 方案梯度
★ = 推荐主方案
架构总览
快速开始
1. 装环境 + 装项目
2. 跑单元测试验证(~5s,无需 API key)
3. (可选)下载 bge-m3 模型
只有用到 bge 状态 / Hybrid 记忆时才需要。模型 INT8 ONNX,~600MB,首次自动下载。两种路径任选:
路径 A:HuggingFace Hub
路径 B:ModelScope(国内推荐)
验证编码
跑完整评测(可选)
跑完数据自动落
experiments/results/*.csv,可通过 Web 仪表盘查看:文档导航
📊
docs/experiments/eval-report-final.md— v7 3-seed 完整评测报告(60 cell + 4 维度 ablate + S3.1 闭环 + 排雷叙事)