Xpersona
E

Epic AI Swarm Orchestration

CLAWHUB · Unverified

Production playbook and portable runtime for parallel AI coding swarms using Codex, Gemini, DeepSeek, and optional Claude. Use when orchestrating multi-agent...

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17a122hqxcf57e9gczk0db71s83g8n8:epic-ai-swarm-orchestration
  1. Install using `clawhub skill install s17a122hqxcf57e9gczk0db71s83g8n8:epic-ai-swarm-orchestration` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/linkbag/epic-ai-swarm-orchestration before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-linkbag-epic-ai-swarm-orchestration/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

154,841 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: epic-ai-swarm-orchestration
description: Production playbook and portable runtime for parallel AI coding swarms using Codex, Gemini, DeepSeek, and optional Claude. Use when orchestrating multi-agent coding work, packaging/installing the swarm on another OpenClaw host, spawning parallel builders with review/integration loops, managing duty-table model rotation, or diagnosing swarm runtime health. Triggers on phrases like "run the swarm", "spawn agents", "AI swarm", "multi-agent build", "package the swarm", "install swarm", "duty table", "model rotation", "parallel coding agents".
---

# 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
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
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:

```bash
~/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 

_meta.json

{
  "ownerId": "kn71qah5c6qdqd7r3fyjgqqsah83dq31",
  "slug": "epic-ai-swarm-orchestration",
  "version": "3.3.1",
  "publishedAt": 1778476536182
}

references/duty-table.md

# Duty Table — Dynamic Model Assignment

`duty-table.json` maps swarm roles to model-provider CLIs. Prefer role-based task specs; let the table pick the actual vendor/model.

## Structure

```json
{
  "assessedAt": "ISO timestamp or null",
  "nextAssessment": "ISO timestamp or null",
  "dutyTable": {
    "architect": {
      "agent": "codex",
      "model": "gpt-5.5",
      "nonInteractiveCmd": "codex exec --model gpt-5.5 --full-auto",
      "fallback": { "agent": "gemini", "model": "gemini-2.5-pro" }
    },
    "builder": {
      "agent": "deepseek",
      "model": "deepseek-v4-pro-max",
      "nonInteractiveCmd": "deepseek -m deepseek-v4-pro-max -y -p",
      "fallback": { "agent": "codex", "model": "gpt-5.5" }
    }
  },
  "history": []
}
```

Required roles:

- `architect` — planning/design
- `builder` — implementation
- `reviewer` — review + fixes
- `integrator` — merge/conflict/build verification

## Role resolution flow

When `spawn-agent.sh` receives a role such as `builder`:

1. Read `duty-table.json`.
2. Run `fallback-swap.sh` for that role if available.
3. `fallback-swap.sh` probes the primary model via `try-model.sh`.
4. If primary fails and a fallback exists, promote fallback and demote the failed primary.
5. Spawn tmux session using the resolved agent/model.

## assess-models.sh

`assess-models.sh` probes configured model CLIs and updates duty assignments.

```bash
cd ~/workspace/swarm
bash assess-models.sh --dry-run   # probe without changing duty-table.json
bash assess-models.sh             # update duty-table.json
```

It uses a simple “Reply with HELLO” probe with a 45-second timeout. It may consume provider quota, so run deliberately.

## Scheduling

Use cron or OpenClaw cron. Cron example:

```bash
0 12 * * 6 $HOME/workspace/swarm/assess-models.sh >> $HOME/workspace/swarm/logs/weekly-assessment.log 2>&1
```

Write cron expressions in the host’s intended local timezone.

## model-fallback.sh — mid-run failover

When the runner detects token/rate/quota errors, it calls:

```bash
bash model-fallback.sh <role> <failed-agent> <failed-model>
```

Current fallback chain priority:

| Role | Chain |
|------|-------|
| architect | codex/gpt-5.5 → gemini/gemini-2.5-pro → deepseek/deepseek-v4-pro-max → codex/gpt-5.3-codex |
| builder | deepseek/deepseek-v4-pro-max → codex/gpt-5.5 → gemini/gemini-2.5-pro → codex/gpt-5.3-codex |
| reviewer | deepseek/deepseek-v4-pro-max → gemini/gemini-2.5-pro → codex/gpt-5.5 → codex/gpt-5.3-codex |
| integrator | codex/gpt-5.5 → gemini/gemini-2.5-pro → deepseek/deepseek-v4-pro-max → codex/gpt-5.3-codex |

Output format:

```text
agent|model|nonInteractiveCmd
```

## Error detection patterns

```text
rate.limit | 429 | quota | token.limit | exceeded.*limit |
capacity.*exceeded | too.many.requests | billing | budget |
overloaded | model.*limit
```

## Manual override

If an operator pins duties, preserve that choice unless explicitly told to reassess or reset.

Example marker:

```json
{
  "manualOverride": 

references/eor-template.md

# End of Run (EOR) Log

**Project:** {{PROJECT_NAME}}
**Date:** {{DATE}}
**Run ID:** {{RUN_ID}}
**Agent:** {{AGENT}}

---

## What Was Asked
{{TASK_DESCRIPTION}}

## What Was Achieved
- 

## Files Changed
- 

## Issues / Blockers
- None

## Suggested Next Steps
| Step | Effort Estimate | Priority |
|------|----------------|----------|
|      |                |          |

---
*Auto-generated by Duanzhu orchestrator*

references/tools.md

# Tools Reference — Command Cheatsheet

Run commands from the runtime directory unless shown otherwise:

```bash
cd ~/workspace/swarm
```

## Pre-flight checks

```bash
# Optional: live provider probes; consumes provider quota
bash assess-models.sh --dry-run

# Current role assignments
python3 -c "import json; d=json.load(open('duty-table.json')); [print(f'  {r}: {e.get(\"agent\")}/{e.get(\"model\")}') for r,e in d.get('dutyTable',{}).items()]"

# Runtime basics
tmux -V
tmux ls 2>/dev/null || echo "No active agents"
cat pending-notifications.txt
```

## spawn-agent.sh

```text
Usage: spawn-agent.sh <project-dir> <task-id> <description> [role-or-agent] [model] [reasoning]

project-dir:    absolute path to project root
task-id:        unique identifier; branch feat/<task-id>, session <agent>-<task-id>
description:    prompt text or path to a .md prompt file
role-or-agent:  architect | builder | reviewer | integrator | codex | gemini | deepseek | claude
model:          optional model override
reasoning:      low | medium | high (default: high)
```

Examples:

```bash
# Role-based, recommended
bash endorse-task.sh fix-bug
bash spawn-agent.sh /path/to/project fix-bug "Fix auth null pointer" builder

# Long prompt file
bash endorse-task.sh design-api
bash spawn-agent.sh /path/to/project design-api /tmp/prompt.md architect

# Direct model override, only when deliberate
bash endorse-task.sh special-task
bash spawn-agent.sh /path/to/project special-task "Fix it" codex gpt-5.5 high
```

## spawn-batch.sh

```text
Usage: spawn-batch.sh <project-dir> <batch-id> <batch-description> <tasks-json>
```

`tasks.json`:

```json
[
  {"id":"task-1", "description":"...", "role":"builder", "reasoning":"high"},
  {"id":"task-2", "description":"/tmp/prompt-task2.md", "role":"architect"},
  {"id":"task-3", "description":"...", "agent":"codex", "model":"gpt-5.5"}
]
```

Fields:

- `id` required
- `description` required; prompt text or path to `.md`
- `role` recommended; duty table resolves agent/model
- `agent` + `model` optional direct override
- `reasoning` optional: low/medium/high

## assess-models.sh

```bash
bash assess-models.sh --dry-run    # probe without updating duty table
bash assess-models.sh              # update duty-table.json
```

## model-fallback.sh

```bash
bash model-fallback.sh <role> <failed-agent> <failed-model>
```

Output:

```text
agent|model|nonInteractiveCmd
```

Example:

```bash
bash model-fallback.sh builder deepseek deepseek-v4-pro-max
# → codex|gpt-5.5|codex exec --model gpt-5.5 --full-auto
```

## Monitoring

```bash
tmux ls
cat pending-notifications.txt
bash pulse-check.sh
bash check-agents.sh
bash daily-standup.sh
python3 -m json.tool duty-table.json
tail -20 logs/<session>.log
```

## Cleanup

```bash
bash cleanup.sh
```

## Configuration: swarm.conf

```bash
SWARM_NOTIFY_TARGET=""          # Optional notification recipient
SWARM_NOTIFY_CHANNEL="telegram" # Optional channel
SWARM_MAX_CONCURRENT=8          # Max parallel agents
# DEEPSE

Sponsored

Ads related to Epic AI Swarm Orchestration and adjacent AI workflows.