基于 OpenClaw 的多 Agent 协同编程框架,支持智能调度、对抗评审、持续运行
Skill 目录: ~/.openclaw/workspace/skills/claude-harness/
定时任务: 每 15 分钟自动巡检
核心能力:
┌─────────────────────────────────────────────────────────────────┐ │ Harness Orchestrator │ │ (智能调度中心 - LLM 驱动) │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │ │ Task Queue │ │ Scheduler │ │ Monitor │ │ │ │ (任务队列) │───▶│ (智能调度) │───▶│ (进度监控) │ │ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │ │ │ │ ▼ │ │ ┌─────────────────────────────────────────────────────────┐ │ │ │ Multi-Agent Layer │ │ │ │ │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐│ │ │ │ │ Planner │ │ Executor │ │ Critic │ │Reviewer ││ │ │ │ │ Agent │ │ Agent │ │ Agent │ │ Agent ││ │ │ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘│ │ │ │ │ │ │ └─────────────────────────────────────────────────────────┘ │ │ │ │ ┌─────────────────────────────────────────────────────────┐ │ │ │ State Management │ │ │ │ │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐│ │ │ │ │Checkpoint│ │ Progress │ │ Issues │ │ Report ││ │ │ │ │ Store │ │ Tracker │ │ Log │ │ Gen ││ │ │ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘│ │ │ │ │ │ │ └─────────────────────────────────────────────────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘
scripts/orchestrator.pyscripts/guard.pyrm -rf / → 拦截git push --force → 需确认npm install → 自动批准scripts/adversarial.pyscripts/continuous.pyscripts/observability.pyscripts/intervention.py位置: ~/.openclaw/workspace/skills/agentscope-bridge/dashboard/
技术栈: Vue 3 + Tailwind CSS + WebSocket
启动方式:
bashcd ~/.openclaw/workspace/skills/agentscope-bridge/dashboard
npm install
npm run dev
# 访问 http://localhost:5173/
功能:
bash# 规划任务
~/.openclaw/workspace/skills/claude-harness/scripts/run.sh plan "任务描述"
# 执行任务
~/.openclaw/workspace/skills/claude-harness/scripts/run.sh exec <task-id>
# 查看状态
~/.openclaw/workspace/skills/claude-harness/scripts/run.sh status
# 查看任务列表
~/.openclaw/workspace/skills/claude-harness/scripts/run.sh list
python# 启动规划 Agent
sessions_spawn(
task="分析需求并创建任务规划",
mode="run",
runtime="subagent",
label="harness-planner"
)
# 启动对抗评审
sessions_spawn(
task="审查代码质量,发现问题",
mode="run",
runtime="subagent",
label="harness-critic"
)
| 任务 | Job ID | 间隔 | 状态 |
|---|---|---|---|
| Harness 巡检 | bad8745a-... | 15 分钟 | ✅ 运行中 |
巡检内容:
| 验收项 | 状态 | 说明 |
|---|---|---|
| 实际运行对抗评审流程 | ✅ 完成 | 运行 6 验证 |
| sessions_spawn 启动子 Agent | ✅ 完成 | 运行 10 验证 |
| 问题自动发现上报 | ✅ 完成 | 22 个问题已记录 |
| 任务状态可追踪可恢复 | ✅ 完成 | Checkpoint 已修复 |
| 核心概念代码实现测试 | ✅ 完成 | 5/5 测试通过 |
~/.openclaw/workspace/skills/claude-harness/ ├── SKILL.md # 主文档 v3.0 ├── docs/ │ └── TEST_REPORT.md # 测试报告 └── scripts/ ├── orchestrator.py # 多 Agent 协调器 ├── guard.py # 护栏检查器 ├── observability.py # 可观测性模块 ├── intervention.py # 人工介入模块 ├── delivery.py # 交付模块 ├── adversarial.py # 对抗评审 ├── continuous.py # 持续运行 ├── openclaw_integration.py # OpenClaw 集成 ├── research.py # Web 调研 ├── run.sh # CLI 启动脚本 └── test_harness.py # 测试文件 ~/.openclaw/workspace/skills/agentscope-bridge/ └── dashboard/ # 可视化 Dashboard ├── index.html ├── src/ └── package.json
| 文档 | 路径 |
|---|---|
| 设计文档 | memory/harness-design.md |
| 调研进度 | memory/harness-research.md |
| 问题追踪 | memory/harness-issues.md |
最后更新: 2026-03-29
本文作者:lazyyoun
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!