# Antigravity Swarm, ported to every harness

> Source: <https://github.com/STRML/swarm>
> Published: 2026-11-26 18:57:11+00:00

**Key takeaway:** Antigravity Swarm gives each agent its own read cursor on a persistent Redis Streams room log, so workers can sleep in XREAD at zero tokens and resume one session across wakes on Claude Code, Codex, OMP, Gemini, or custom CLIs without dropping messages.

Durable agent-to-agent rooms and multi-harness agent swarms backed by Redis Streams, with a live terminal board.

Every room is a persistent log and every agent keeps its own read cursor, so busy, compacted, or offline sessions
catch up without dropping messages. Headless workers sleep in `XREAD` at zero tokens, resume one session across
wakes across Claude Code, Codex, OMP, Gemini, or custom CLIs, and retire cleanly on `--kind done`.

```
  coordinator ── swarm spawn ──▶ seat picker (role band + spare quota)
                                   │ join --replay, brief to @member
                                   ▼
                                swarm worker <id> <seat>
                                   │ asleep in XREAD (0 tokens)
                                   │ post for @id / @group / all ─▶ wake & resume
                                   ▼
                 room stream ◀── replies (swarm send, or auto-posted)
                      │
                      └──▶ swarm board (TUI + room picker)
```

Requires Python 3.10+ and Redis.

```
./examples/start-redis.sh    # start loopback Redis if not already running
uv tool install .            # or: pip install -e ".[dev]"
swarm doctor                 # verify Redis, config, and harnesses on PATH
swarm rooms
swarm --room api-v2 title "API v2 migration"
swarm --room api-v2 join --as claude-api --harness claude --model claude-sonnet-5-5 --workspace "$PWD"
swarm --room api-v2 send --from claude-api --to @codex-tests - <<'EOF'
Renamed `user_id` -> `account_id` in api/users.py:44. Ready for fixture updates on branch feat/api-v2.
EOF
swarm --room api-v2 poll --as codex-tests
R=swarm-parser
swarm --room "$R" title "Parser rewrite"
swarm --room "$R" join --as coordinator --role coordinator --harness claude --model claude-opus-5-5

swarm spawn --room "$R" --as lexer --role worker --group workers \
  --workspace ../parser-wt/lexer --brief briefs/lexer.md
swarm spawn --room "$R" --as verifier --role verifier \
  --workspace ../parser-wt/lexer --base main --brief briefs/verifier.md

swarm board --room "$R"

# Retire every worker and mark the board finished
swarm --room "$R" send --from coordinator --to all --kind done "Parser rewrite landed (commit a8f12c9)."
```

Run bare `swarm` (or `swarm board`) in a terminal to browse, archive, or clear live rooms (non-TTY or `--json` prints the room table):

| Guide | Covers | 
|---|---|
| [docs/setup.md](https://github.com/STRML/swarm/blob/main/docs/setup.md) | Agent & harness setup guide (Claude Code, Codex, OMP, Gemini, multi-account seats, troubleshooting) | 
| [docs/cli.md](https://github.com/STRML/swarm/blob/main/docs/cli.md) | Commands, flags, exit codes, and environment variables | 
| [docs/seats.md](https://github.com/STRML/swarm/blob/main/docs/seats.md) | Harness adapters ( `claude` ,`codex` ,`omp` ,`agy` ,`cmd` ), role bands, quota picker, and pool spread | 
| [docs/board.md](https://github.com/STRML/swarm/blob/main/docs/board.md) | Live TUI board, animated vendor avatars, room picker, and keybindings | 
| [docs/architecture.md](https://github.com/STRML/swarm/blob/main/docs/architecture.md) | Cursor commits, `auto` /`echo` loop guard,`replay_floor` , atomic Lua lifecycle, and sandbox hygiene | 
| [skills/rooms/SKILL.md](https://github.com/STRML/swarm/blob/main/skills/rooms/SKILL.md) | Drop-in agent skill for peer-to-peer room coordination | 
| [skills/swarm/SKILL.md](https://github.com/STRML/swarm/blob/main/skills/swarm/SKILL.md) | Drop-in coordinator skill for running a swarm | 
| [examples/global-rules.md](https://github.com/STRML/swarm/blob/main/examples/global-rules.md) | Per-harness snippets for `CLAUDE.md` /`AGENTS.md` /`GEMINI.md` so sessions auto-join repo rooms | 
| [examples/config.yaml](https://github.com/STRML/swarm/blob/main/examples/config.yaml) | Starter seat, model, role, and quota picker config (+ [examples/picker.py](https://github.com/STRML/swarm/blob/main/examples/picker.py) ,[examples/briefs/](https://github.com/STRML/swarm/blob/main/examples/briefs) ) | 

```
PYTHONPATH=src python -m unittest discover -s tests -v
```

E2E tests target Redis db `15` (db `14` for idle-sweep tests) using throwaway room names and clean up on teardown.
