Skip to content
← SwarmKitGitHub

SwarmKit

Opus plans. Cheaper models build, in parallel. One config, three CLIs.

InstallGitHub

claude --agent lead-dev-hybrid

One real run (run 2 of 2), not a median · $0.54 · 23 min 16 s

  1. Opus plans. Cheaper models build, in parallel. One config, three CLIs.
    Opus plans. Cheaper models build, in parallel. One config, three CLIs.
  2. The task: Implement eight independent modules against their failing tests.
    The task: Implement eight independent modules against their failing tests.
  3. Opus plans first and splits the work into 8 parts, one lot per worker. Plan approval was automatic in this headless run.
    Opus plans first and splits the work into 8 parts, one lot per worker. Plan approval was automatic in this headless run.
  4. 8 workers build in parallel: 4 on agy and 4 on opencode.
    8 workers build in parallel: 4 on agy and 4 on opencode.
  5. Every branch is re-tested. 5 self-checks reported "command denied". template and wrap failed their first tests and were resumed. cron failed its tests and was finished by a fixer branch (cronfix).
    Every branch is re-tested. 5 self-checks reported "command denied". template and wrap failed their first tests and were resumed. cron failed its tests and was finished by a fixer branch (cronfix).
  6. First merges into main, before the cross-model review.
    First merges into main, before the cross-model review.
  7. 3 cross-model reviews read the merged code. The review leads to a small annex pass (review-fixes). Nothing was recorded between 563 s and 1102 s.
    3 cross-model reviews read the merged code. The review leads to a small annex pass (review-fixes). Nothing was recorded between 563 s and 1102 s.
  8. Claude side $0.54, wall time 23 min 16 s, final tests pass. Worker tokens (quota, not dollars): agy 1,511,015 and opencode 1,147,624; not recorded for cron.
    Claude side $0.54, wall time 23 min 16 s, final tests pass. Worker tokens (quota, not dollars): agy 1,511,015 and opencode 1,147,624; not recorded for cron.

One real run, not a median

What the run delivered

$0.54

Claude cost

23 min 16 s

wall time

Final tests pass

final tests

8 workers (4 on agy, 4 on opencode) · 9 merges · 3 cross-model reviews

Worker tokens (quota): agy 1,511,015 · opencode 1,147,624

Which mode when

Each task gets the ceremony it needs. Nothing more.

ModeTaskCeremony
directQuestions and small edits.The main agent answers or edits directly. No plan. No approval.
planLarge or risky work: more than about 3 files, or auth, data, CI, or infra.A plan first. In Claude Code that is plan mode, so the plan is written on Opus. You approve it.
hybridLots of independent new code.claude --agent lead-dev-hybrid. Opus plans and reviews. File-disjoint parts go to headless opencode and agy workers in their own git worktrees. Each branch is re-tested before it is merged.
subagentsWork that does not split, or touches auth, secrets, or data, or no worker is installed.lead-dev-hybrid keeps it on Claude subagents. Never on a cold worker.

Hybrid pays off with writing volume, not file count: small tasks cost more than doing them directly.

Numbers

Only cells with at least 3 completed runs are shown. Each number is a median with the minimum and maximum beside it.

Harness: Claude Code 2.1.299, 2.1.300 (headless, claude -p), claude-opus-5-5, claude-sonnet-5-5

Scroll the table sideways for all columns.

CaseVariantModelRunsClaude cost, median (min–max)Wall time, median (min–max)Worker tokens (quota, not $)PassCost vs vanillaWall vs vanilla
biglead-devopus-5-53$0.141 ($0.138–$0.146)35 s (32–38 s)none3/3n/an/a
scaffoldvanillasonnet-5-53$0.320 ($0.308–$0.329)74 s (69–78 s)none3/31.00x1.00x
scaffoldslimsonnet-5-53$0.376 ($0.358–$0.383)73 s (72–76 s)none3/31.18x0.99x
scaffoldlead-devopus-5-53$1.844 ($1.703–$1.845)94 s (89–108 s)none3/3n/an/a
scaffoldhybridsonnet-5-53$0.161 ($0.135–$0.179)163 s (108–1526 s)opencode 1 557 8313/30.50x2.20x

Ratios are medians against the vanilla cell of the same case and the same model; n/a means no such published cell exists. Lower is better.

Above vanilla on the same model: scaffold slim (sonnet-5-5): Claude cost 1.18x; scaffold hybrid (sonnet-5-5): wall time 2.20x.

1 voided cell
  • scaffold / hybrid-workflow / sonnet-5-5: 3 of 7 runs failed (verify-failed); a failed run voids the cell
19 pending cells
  • small / vanilla / sonnet-5-5: n=2
  • small / slim / sonnet-5-5: n=1
  • small / lead-dev / opus-5-5: n=2
  • small / hybrid / opus-5-5: n=1
  • small / hybrid / sonnet-5-5: n=1
  • small / hybrid-workflow / sonnet-5-5: n=1
  • big / vanilla / opus-5-5: n=2
  • big / vanilla / sonnet-5-5: n=1
  • big / slim / sonnet-5-5: n=1
  • big / hybrid / opus-5-5: n=2
  • big / hybrid / sonnet-5-5: n=1
  • big / hybrid-workflow / sonnet-5-5: n=1
  • features / vanilla / opus-5-5: n=1
  • features / vanilla / sonnet-5-5: n=1
  • features / slim / sonnet-5-5: n=1
  • features / lead-dev / opus-5-5: n=2
  • features / hybrid / opus-5-5: n=1
  • features / hybrid / sonnet-5-5: n=1
  • features / hybrid-workflow / sonnet-5-5: n=2

Raw JSON

One source, three CLIs

core/

33 agents, 33 skills, 11 MCP servers

scripts/build.py
  • Claude Code

    ./install.sh --claude

    Core agents install as subagents; domain specialists come as per-project packs. Tool lists are enforced; the guard hooks are a speed bump, not a sandbox.

  • OpenCode

    ./install.sh --opencode

    Specialists install as agents. Tool limits are enforced by permission blocks.

  • Antigravity

    ./install.sh --agy

    Specialists ship as agents in the swarmkit plugin (invoke_subagent). Antigravity cannot enforce tool limits, so each agent states its own.

Write an agent once; the compiler emits each CLI’s native format and the installer links it into place.

The roster, as a city map

33 agents in 8 districts.

Packs are districts. Agents are buildings. Height is tier: low is fast, medium is standard, tall is deep. Hover, focus or tap a building for its role.

core5 agents

core (always installed in Claude Code)

  • standard: Code proofreader that finds dead code, redundant logic, unused exports, and...
  • fast: Read-only context-gathering pre-flight for the swarm
  • fast: Final quality gate that runs tests, linters, type checkers, and build validation...
  • deep: Security reviewer that scans code for secrets leakage, hardcoded API keys...
  • fast: Writes unit and integration tests for new code

backend2 agents

pack: backend (linked per project with install.sh --pack backend)

  • standard: Backend specialist focused on API design, service boundaries...
  • deep: Database specialist for schema design, migrations, query optimization, and ORM code

creative8 agents

pack: creative (linked per project with install.sh --pack creative)

  • standard: 3D modeling, mesh generation, asset staging, geometry nodes, spatial reasoning...
  • standard: LinkedIn content specialist
  • standard: Showroom Coordinator
  • standard: Showroom Art Director
  • fast: Showroom Asset Processor Worker
  • standard: Showroom Frontend Builder Worker
  • standard: Showroom Intake Worker
  • standard: Showroom Motion Engineer Worker

mobile3 agents

pack: mobile (linked per project with install.sh --pack mobile)

  • standard: Android specialist for Capacitor apps with React + Vite
  • standard: Electron specialist for wrapping existing React + Vite web apps as desktop...
  • standard: iOS specialist for Capacitor apps with React + Vite

n8n2 agents

pack: n8n (linked per project with install.sh --pack n8n)

  • standard: Systematic debugging and diagnosis of broken n8n workflows
  • standard: Build and design n8n workflows from requirements

ops4 agents

pack: ops (linked per project with install.sh --pack ops)

  • standard: DevOps specialist for CI/CD pipelines, infrastructure as code, deployment...
  • standard: Docker specialist for containerization, Dockerfiles, Compose stacks, image...
  • standard: Monitoring and observability specialist for Prometheus, Grafana, Loki, alerting...
  • standard: Ubuntu server administration expert for system configuration, service...

swarm4 agents

pack: swarm (installed globally by install.sh --claude; install.sh --pack swarm is optional)

  • fast: Git workflow specialist — commit/branch review (default) AND environment setup...
  • fast: Junior dev for light, mechanical code edits that don't need a domain specialist
  • deep: The swarm orchestrator
  • standard: Swarm architect specialist for designing, extending, and refactoring the...

web5 agents

pack: web (linked per project with install.sh --pack web)

  • standard: Animation, 2D, and 3D specialist for web — Motion, GSAP, Anime.js, React Spring...
  • standard: Frontend specialist focused on production-ready UI implementation, design...
  • standard: Frontend specialist for Lovable-made projects
  • standard: SEO specialist — makes sure websites actually get seen by Google and AI search...
  • fast: Post-build SEO & sharing pass worker

What keeps workers in line

  1. Worktrees: every worker edits its own git worktree and branch; nothing reaches your branch until the orchestrator re-runs the tests and merges.
  2. Shell allowlist: opencode workers may only run test and build runners and read-only commands; everything else is denied. agy workers get no shell at all.
  3. Edits stay inside the worktree: opencode file tools outside it are denied (shell runners are not covered, so this is a guard, not a sandbox).
  4. Circuit breaker: an opencode worker that keeps hitting denied commands or failing tool calls is stopped and handed back to the orchestrator.
  5. No secrets to cold workers: auth, secrets and data work stays on Claude subagents, and the orchestrator is told never to copy .env files into a worktree.
  6. Guards, not a sandbox: in Claude Code the guard hooks block obvious writes and fetch-and-run commands; a test runner can still run any code in your project.

Where to check: scripts/agy-task and claude/hooks/guard.py for the guards, core/agents/lead-dev-hybrid.md and core/skills/hybrid-delegate for the routing rules.

Install

Clone the repo. Run one script.

Command

git clone https://github.com/ha-lun/swarmkit.git
cd swarmkit
./install.sh --all

Flags

--opencode
Install OpenCode config
--agy
Install Antigravity (agy) Swarm config
--claude
Install Claude Code Swarm config (also installs the swarm pack orchestrators + coordination agents globally)
--n8n
Configure local self-hosted n8n credentials (optional add-on, not in --all)
--cloudflare
Install Cloudflare skills and configure auth (optional add-on, not in --all)
--all
Install all agent configs (opencode, agy, claude)
--free
Enable free mode for OpenCode (uses default models, no keys)
--mcp
Install the MCP servers from core/mcp.json (Claude Code, agy, OpenCode). Off by default: a terminal run asks once, other runs skip them
--alias
Add shell aliases to ~/.bashrc (and ~/.zshrc if it exists) so plain `claude` / `agy` start lead-dev-hybrid. Hybrid profile only; off by default: a terminal run asks once, other runs skip it. --slim and --uninstall remove them
--hybrid
Force the hybrid profile (lead-dev-hybrid orchestrator + worker lanes)
--slim
Force the slim profile (no orchestrator; the main agent works directly) is found or claude + agy are, else slim. Prints the choice at the end
--pack <name> [project]
Link a Claude Code specialist pack (agents + skills) into <project>/.claude/ (default: current dir) and hide the links via .git/info/exclude. Packs: web ops mobile n8n backend creative swarm. The swarm pack is also installed globally by --claude, so per-project --pack swarm is optional
--uninstall
Uninstall all configurations (with --pack: remove only that pack from the project)
--help
Show this help message

Packs

Then start the orchestrator with claude --agent lead-dev-hybrid.

Built by the swarm

This page was built with lead-dev-hybrid: 30 opencode tasks, 2 agy tasks, 22 Claude subagents, 46 human interventions.

Counts come from the logs in .buildlog/, which cover the site since its first version (the earlier globe site included). They are what was logged, not necessarily everything that happened.

opencode worker tasks
30
agy worker tasks
2
Claude subagent dispatches
22
Human interventions
46

Human interventions are only the human's own actions: 11 gate approvals, 24 decisions and answers, 11 art-direction rounds with a human verdict. Measurements and changes the agent applied itself are not counted.

Worker models recorded

  • gemini-3.8-flash-high
  • opencode-go/muse-spark-1.3-contributor

23 of 32 worker tasks name their model; earlier rows predate that field.