← 返回
未分类

Epic AI Swarm Orchestration

Production playbook and portable runtime for parallel AI coding swarms using Codex, Gemini, DeepSeek, and optional Claude. Use when orchestrating multi-agent...
用于并行AI编程集群的生产手册和便携运行时,支持Codex、Gemini、DeepSeek,可选Claude。在编排多智能体时使用。
linkbag linkbag 来源
未分类 clawhub v3.3.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 462
下载
💾 0
安装
2
版本
#agents#automation#claude#codex#coding-agents#gemini#latest#multi-agent#openclaw#orchestration#swarm

概述

Epic AI Swarm Orchestration v3.3.0

Portable OpenClaw skill + runtime for running parallel AI coding agents with tmux worktrees, duty-table model selection, token-limit fallback, review loops, integration watcher, and heartbeat notifications.

Use this skill when

  • The human/operator asks to “swarm” coding/build/review/integration work.
  • Another OpenClaw needs the same swarm system installed.
  • You need to inspect/fix ~/workspace/swarm, duty tables, model fallback, pulse checks, or pending notifications.

Hard rule for swarm work

Do not bypass the runtime scripts. For real swarm work use:

  • Single task: ~/workspace/swarm/spawn-agent.sh
  • Parallel tasks: ~/workspace/swarm/spawn-batch.sh
  • Status/pulse: ~/workspace/swarm/check-agents.sh, ~/workspace/swarm/pulse-check.sh

Do not use bare background claude, codex, gemini, deepseek, or OpenClaw subagents as a substitute for the swarm pipeline unless explicitly debugging the runtime itself.

Plug-and-play install on another OpenClaw host

From the installed skill directory:

bash install.sh
bash doctor.sh

Default install target: ~/workspace/swarm.

What install.sh does:

  1. Copies bundled runtime scripts into ~/workspace/swarm/.
  2. Creates clean local state/config files from templates/ without bundling secrets.
  3. Installs roles/swarm-lead/{ROLE.md,TOOLS.md,HEARTBEAT.md} into the OpenClaw workspace.
  4. Adds swarm-lead to roles/active.json unless --no-activate is used.
  5. Backs up existing role/config files before replacing them.

Useful installer options:

bash install.sh --dry-run
bash install.sh --target /custom/swarm/path --workspace /custom/openclaw/workspace
bash install.sh --force          # replace config/state templates after backup
bash install.sh --no-role        # scripts only
bash install.sh --no-activate    # copy role but do not activate it

Then authenticate provider CLIs on that host and run:

~/workspace/swarm/assess-models.sh --dry-run
~/workspace/swarm/assess-models.sh

doctor.sh --probe-models runs live provider probes; skip it unless the operator is okay spending provider quota.

Prerequisites

Required CLIs on PATH:

  • bash, python3
  • git — worktrees, branches, commits
  • tmux — isolated agent sessions

Recommended integrations:

  • gh — GitHub status/CI/release checks
  • openclaw — local notification delivery where configured

Model CLIs: install/authenticate at least one of:

  • codex
  • gemini
  • deepseek
  • claude optional legacy fallback in some watcher paths

Credentials are host-local. This package intentionally does not bundle API keys, OAuth tokens, Telegram targets, duty-table state, logs, endorsements, or task history.

Runtime layout

~/workspace/swarm/
  spawn-agent.sh
  spawn-batch.sh
  notify-on-complete.sh
  integration-watcher.sh
  queue-watcher.sh
  pulse-check.sh
  check-agents.sh
  assess-models.sh
  fallback-swap.sh
  model-fallback.sh
  try-model.sh
  duty-table.json
  swarm.conf
  active-tasks.json
  pending-notifications.txt
  logs/
  endorsements/

Bundled resources:

  • scripts/ — runtime scripts copied by install.sh
  • templates/ — clean config/state defaults
  • roles/swarm-lead/ — OpenClaw role files
  • references/workflow.md — 3-phase workflow
  • references/tools.md — command syntax
  • references/duty-table.md — model rotation/fallback details
  • references/eor-template.md — end-of-run report template

Workflow

Phase 1 — Plan

  1. Inspect project state, git, CI, ESR/history, and relevant notes.
  2. Split work into independent task IDs/prompts.
  3. Present the task plan to the human/operator.
  4. Wait for endorsement before spawning.

Phase 2 — Build + Review

Use role-based tasks so the duty table chooses the actual model:

~/workspace/swarm/spawn-batch.sh /path/to/project batch-id "Batch description" /tmp/tasks.json

Example tasks.json:

[
  {"id":"fix-auth", "description":"Fix login redirect", "role":"builder", "reasoning":"high"},
  {"id":"ui-polish", "description":"Polish mobile layout", "role":"builder"}
]

Each task runs in its own tmux session/worktree. notify-on-complete.sh launches reviewer/fixer loops and records handoff logs.

Phase 3 — Integrate + Ship

spawn-batch.sh starts integration-watcher.sh, which waits for all sessions, merges branches, runs verification, persists work logs/ESR, and writes notifications.

Heartbeat handling

On heartbeat, the swarm-lead role should:

  1. Read ~/workspace/swarm/pending-notifications.txt.
  2. Send each pending line to the human/operator, then clear the file.
  3. Run ~/workspace/swarm/pulse-check.sh.
  4. Check tmux ls for active/completed agent sessions.
  5. Only reply HEARTBEAT_OK if nothing is actionable.

Safety and quality gates

  • Human endorsement before spawn.
  • 30-second cooldown for single-task endorsement.
  • SWARM_MAX_CONCURRENT queueing for large batches.
  • Max 3 reviewer/fixer loops.
  • Token/rate-limit fallback via model-fallback.sh.
  • Stuck-agent detection via pulse-check.sh.
  • Final merge/build verification by integration watcher.

References

Read only what you need:

版本历史

共 2 个版本

  • v3.3.1 当前
    2026-05-12 04:57 安全 安全
  • v3.2.1
    2026-05-03 06:26 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,396 📥 322,659
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,463 📥 527,023
dev-programming

AI Swarm Orchestration

linkbag
多智能体AI编程集群编排。规划并行任务,在tmux会话中启动Claude/Codex/Gemini代理,使用git worktrees,自动审查、自动集成...
★ 0 📥 600