Open Source

Your agents.
Orchestrated.

Coordinate Claude, Codex, and Gemini agents working on your code in parallel. Composable patterns, cost-aware planning, and a planner that learns from every run.

swarm orchestrate
swarm engine - hybrid pattern
Phase 1: research ━━━━━━━━━━━━━━━━━ 100% 42s
researcher-code claude-sonnet-4-6 3.2K tokens
researcher-context claude-sonnet-4-6 1.8K tokens
Phase 2: implement ━━━━━━━━━━━━━━━━━ 72% 1m 12s
implementer claude-opus-4-6 src/auth/rate-limit.ts
Phase 3: review ━━━━━━━━━━━━━━━━━━ pending
○ reviewer-security ○ reviewer-perf ○ reviewer-convention
$0.24 spent | 12.8K tokens | ~2m remaining
26
Agents
7
Patterns
871
Tests
4+
Backends

Why Swarm Engine

AI coding agents work alone. For complex tasks, that's not enough.

Multi-Agent Orchestration

DAG-based execution coordinates agents through research, implementation, and review phases. Parallel when possible, sequential when needed.

Intelligent Planning

Cost-based optimizer estimates token spend before execution. Adaptive replanner adjusts mid-run. Heuristic learning improves plans over time.

Mix Any Backend

Claude for implementation, Codex for review, Gemini for research. Different model per agent in the same orchestration.

Composable Patterns

7 patterns you can chain inline. Build custom workflows from proven building blocks.
--pattern "tdd | red-team"

Reusable Templates

Save successful orchestrations as parameterized templates. Run them with different inputs. Build a library of proven workflows.

26 Specialized Agents

16 core roles plus 10 focused reviewers: security, performance, API contracts, testing, accessibility, dependencies, and more.

Patterns

Structured workflows for every type of task.

hybrid

Research, Implement, Review. The default for most tasks.

tdd

Write tests first, implement, verify, review.

red-team

Build it, break it, harden it. Adversarial security review.

spike

Two approaches compete. A judge picks the winner.

discover

Form hypotheses, test cheaply, build the winner.

review-cycle

Iterative quality gates with devil's advocate challenges.

Get Started

Three commands. Works on macOS, Linux, and Windows.

$ npm install -g swarm-engine && swarm install && swarm doctor

Works With

Use from Claude Code, any terminal, or VS Code.

Claude Code

/swarm "add rate limiting"

Agents run in split panes with full team orchestration and live cost tracking.

Terminal

swarm orchestrate "add auth"

Rich console output with progress bars, phase status, and real-time metrics.

VS Code / Cursor

@swarm add rate limiting

Sidebar panel, command palette, and Copilot Chat integration.

Cross-Tool Export

Export your agents to work natively in other tools.

terminal
$ swarm convert --to copilot # GitHub Copilot
$ swarm convert --to cursor # Cursor rules
$ swarm convert --to codex # OpenAI Codex
$ swarm convert --to gemini # Gemini CLI