返回顶部
e

epic-ai-swarm-orchestration多智能体编排

Multi-agent AI swarm orchestration system for parallel coding tasks. Use when spawning multiple AI coding agents (Claude, Codex, Gemini) to work in parallel on a project with automatic tmux tracking, endorsement gates, integration merging, Telegram notifications, review chains, and completion watchers. Triggers on multi-agent work, parallel coding tasks, swarm orchestration, batch spawning, agent monitoring, or when 2+ coding tasks should run simultaneously with coordinated integration.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 3.2.0
安全检测
已通过
143
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

epic-ai-swarm-orchestration

Epic AI 蜂群编排 v3.1

多智能体编码编排:规划 → 批准 → 生成 → 监控 → 审查 → 集成 → 交付。

核心工作流

  1. 1. 规划 — 将工作分解为并行任务,向用户展示计划以获取批准
  2. 批准 — endorse-task.sh (或通过 spawn-batch.sh 自动批准)
  3. 生成 — spawn-batch.sh(多智能体)或 spawn-agent.sh(单智能体)
  4. 监控 — 自动:tmux 会话、notify-on-complete.sh 监视器、pulse-check.sh
  5. 审查 — 自动:审查智能体在完成后自动生成,最多 3 轮修复
  6. 集成 — 自动:integration-watcher.sh 合并所有分支,解决冲突
  7. 交付 — 自动合并到主分支,清理工作树,通知用户

脚本参考

主要脚本(使用这些)

脚本用途使用时机
spawn-batch.sh生成 N 个智能体 + 自动集成多智能体工作
spawn-agent.sh
生成单个智能体 | 单个任务 | | endorse-task.sh | 批准任务 | 生成之前 | | check-agents.sh | 检查 tmux 状态 | 快速状态检查 | | cleanup.sh | 移除工作树 + 分支 | 合并后 |

使用方法

bash

1. 编写提示


cat > /tmp/prompt-task1.md << EOF
... 任务描述 ...
EOF

2. 创建任务 JSON

cat > /tmp/tasks.json << EOF [ {id: task-1, description: /tmp/prompt-task1.md, agent: claude, model: claude-sonnet-4-6}, {id: task-2, description: /tmp/prompt-task2.md, agent: claude, model: claude-sonnet-4-6} ] EOF

3. 批准 + 生成

cd path/to/swarm/scripts bash endorse-task.sh task-1 bash endorse-task.sh task-2 bash spawn-batch.sh /path/to/project batch-id Description /tmp/tasks.json

spawn-agent.sh

spawn-agent.sh <项目目录> <任务ID> <描述或提示文件> [智能体] [模型] [推理级别]

  • - project-dir:项目根目录的绝对路径
  • task-id:唯一 ID(用于分支名称和 tmux 会话)
  • description:任务提示文本或 .md 提示文件的路径
  • agent:claude | codex | gemini(默认:claude)
  • model:模型覆盖(默认:按职责表)
  • reasoning:low | medium | high(默认:high)

辅助脚本

脚本用途
integration-watcher.sh轮询 + 自动合并(由 spawn-batch 调用)
notify-on-complete.sh
每个智能体的监视器(由 spawn-agent 调用) | | start-integration.sh | 手动启动集成 | | pulse-check.sh | 检测卡住的智能体 | | queue-watcher.sh | 处理收件箱队列 | | inbox-add.sh | 添加任务到收件箱 | | inbox-list.sh | 列出队列中的任务 | | assess-models.sh | 每周模型轮换 | | deploy-notify.sh | CI/CD 构建通知 | | esr-log.sh | 记录到 ESR/工作历史 | | daily-standup.sh | 生成每日站会摘要 | | cleanup.sh | 合并后清理 |

设置

  1. 1. 将 scripts/ 复制到你的工作空间(例如 ~/workspace/swarm/)
  2. 复制 duty-table.template.json → duty-table.json 并自定义
  3. 确保安装了 tmux、git、gh CLI 和至少一个编码智能体 CLI
  4. 通知功能:使用 Telegram/Discord 配置 OpenClaw

依赖项

  • - bash 4+(macOS:通过 Homebrew 安装,Linux 自带)
  • tmux(所有平台:brew install tmux / apt install tmux)
  • git + gh CLI(用于创建和合并 PR)
  • jq(JSON 处理:brew install jq / apt install jq)
  • 至少一个编码智能体:claude(Claude Code)、codex 或 gemini
  • 可选:openclaw(用于 Telegram/Discord 通知)

macOS 注意事项

  • - macOS 自带 bash 3.x;通过 brew install bash 安装 bash 5+
  • 如果脚本使用 GNU sed 功能,使用 brew install gnu-sed 并设置别名 sed=gsed
  • tmux 在 macOS 和 Linux 上运行方式相同

配置

duty-table.json

将角色映射到智能体/模型:

json
{
dutyTable: {
architect: {agent: claude, model: claude-opus-4-6},
builder: {agent: claude, model: claude-sonnet-4-6},
reviewer: {agent: claude, model: claude-sonnet-4-6},
integrator:{agent: claude, model: claude-opus-4-6}
}
}

批准系统

每个任务在生成前都需要批准(安全门):

  • - spawn-batch.sh 自动批准批次中的所有任务
  • 手动:bash endorse-task.sh
  • 批准和生成之间有 30 秒冷却时间

硬性规则

  1. 1. 始终在生成前批准 — 未批准 = 无法生成
  2. 2 个及以上任务使用 spawn-batch.sh — 它会启动集成监视器
  3. 切勿在后台使用裸 claude --print — 会绕过 tmux、通知等所有功能
  4. 让 notify-on-complete.sh 处理通知 — 不要在提示中添加 openclaw system event

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 epic-ai-swarm-orchestration-1775957119 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 epic-ai-swarm-orchestration-1775957119 技能

通过命令行安装

skillhub install epic-ai-swarm-orchestration-1775957119

下载

⬇ 下载 epic-ai-swarm-orchestration v3.2.0(免费)

文件大小: 84.48 KB | 发布时间: 2026-4-13 10:10

v3.2.0 最新 2026-4-13 10:10
**Major update with expanded documentation and improved batch/task management.**

- Added detailed documentation: ESR, decision logs, role/leadership definitions, and integration history.
- Introduced role-specific docs and duty table template for agent assignment.
- Enhanced batch-task workflow: explicit endorsement, spawn, monitoring, and integration merging procedures.
- Expanded setup and dependency instructions, including platform-specific (macOS) notes.
- New supporting scripts for task queueing, deployment notifications, and work history logging.
- Enforced hard rules: mandatory task endorsement, batch spawning protocol, and strict tmux notification handling.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部