One mind plans.
A swarm builds.
Opus plans. Cheaper models build, in parallel. One config, three CLIs.
Task
Implement eight independent modules against their failing tests
One real run, not a median
01
Opus plans. You approve.
Plan mode on the strongest model. You approve before a single file changes.
approved (automatic)
02
8 workers. At once.
Opus hands each module to a cheaper model running headless in its own worktree: 4 on OpenCode, 4 on Antigravity.
- Claude subagents — specialists for judgment-heavy work (security, UI, data)
- OpenCode workers — headless, file-disjoint code
- Antigravity workers — headless, file-disjoint code
03
Each in its own worktree.
Isolated branches. Nothing touches main until it passes.
04
Tested. Reviewed. Fixed.
Every branch re-tested, reviewed by a different model. What failed got fixed.
cron failed its tests 3 times and was fixed by cronfix, an Antigravity worker. template and wrap failed once each and were fixed on resume, with no fixer.
One real run, not a median
04
Up close: cron.
cron failed its tests 3 times. cronfix, an Antigravity worker, fixed it, and it passed.
05
Merged. Green.
Opus merges what passed. One clean branch, final tests green. Everything lands as one.
9 merges · 8 reviews, 3 by a different model family
One real run, not a median
- Opus· plans, reviews, mergesClaude Opus, the orchestrator
- expr· evaluates maths expressionsOpenCode worker
- cron· parses cron schedules, finds the next runOpenCode worker
- semver· parses, compares and range-checks versionsOpenCode worker
- diff· diffs lines and applies patchesOpenCode worker
- csv· parses and writes CSVAntigravity worker
- lru· a least-recently-used cacheAntigravity worker
- template· renders {{ }} templates with HTML escapingAntigravity worker
- wrap· wraps text to a widthAntigravity worker
- cronfix· fixes cron's failing testsAntigravity worker
vs. vanilla Claude Code
0.50×Claude cost2.20×wall time: the trade
scaffold task · claude-sonnet-5-5 · median of 3 runs each · worker tokens are quota, not dollars
Works with
One config. Three CLIs.
- Claude Code
- OpenCode
- Antigravity
33 specialists · 33 skills · built from one core/ folder
Install
Put a swarm
on your next task.
git clone https://github.com/ha-lun/swarmkit.git
cd swarmkit
./install.sh --all