Skip to content
SwarmKit

One mind plans.
A swarm builds.

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

InstallHow it works

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.

This run needed no Claude subagents: every module was independent, so all of them went to workers.

  • 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 workerreviewed
  • cron· parses cron schedules, finds the next runOpenCode workertests failed ×3fixed by cronfix
  • semver· parses, compares and range-checks versionsOpenCode workerreviewed
  • diff· diffs lines and applies patchesOpenCode workerreviewed
  • csv· parses and writes CSVAntigravity workerreviewed
  • lru· a least-recently-used cacheAntigravity workerreviewed
  • template· renders {{ }} templates with HTML escapingAntigravity workertests failed ×1fixed on resume
  • wrap· wraps text to a widthAntigravity workertests failed ×1fixed on resume
  • cronfix· fixes cron's failing testsAntigravity workerfixer for cron

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

All numbers →

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

How it works in depth →GitHub