βββββββββββ βββ ββββββ βββββββ ββββ ββββ βββββββββββ ββββββββββββββββββββββββ βββββ βββββββββββ ββ ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββ ββββββ ββββββ βββ βββ ββββββββ ββββββββ βββ ββββββ ββββββ βββ
Six AI agents. One command. Real working software.
Not a prototype. Not a demo. Production code ships in minutes.
π Six agents argue, build, and ship together.
| Agent | Role | Superpower |
|---|---|---|
| ποΈ Architect | System designer | Analyzes task deeply, chooses right stack, produces design all agents follow |
| βοΈ Backend | API engineer | Reads Architect's design, generates production-grade task-specific code |
| π¨ Frontend | UI engineer | Thinks from first principles, generates stunning dark-mode UI for any task |
| π§ͺ Tester | QA enforcer | Actually RUNS the code, finds bugs, assigns fixes, blocks ship if broken |
| π Docs | Technical writer | Reads actual code, documents reality not promises, Stripe-level quality |
| π PM | Product manager | Writes real PRD, protects scope, triages bugs, makes ship decisions |
| Feature | ChatGPT | GitHub Copilot | Cursor | π Swarm |
|---|---|---|---|---|
| Multi-agent collaboration | β | β | β | β |
| Agents argue & debate decisions | β | β | β | β |
| Real-time cinematic terminal UI | β | β | β | β |
| Generates complete project structure | β | β | ||
| PM agent breaks requirements mid-build | β | β | β | β π |
| Runs on GitHub Models API (free) | β | β | β | β |
| Open source & self-hostable | β | β | β | β |
| Builds Dockerfile + tests + docs | β | β | ||
| Tracks real cost per build | β | β | β | β |
| Works with 6 different LLMs | β | β | β | β |
| Tester actually runs the code | β | β | β | β |
| PM writes real PRD first | β | β | β | β |
No tool matches this PM chaos. π It changes requirements mid-build to mirror real teams.
PLANNING β ARCHITECTURE REVIEW β IMPLEMENTATION β TESTING β DOCUMENTATION β PACKAGING β COMPLETE
| Phase | What Happens |
|---|---|
| Planning | PM writes PRD. Architect designs system. |
| Architecture Review | PM approves design. All agents briefed. |
| Implementation | Backend builds API. Frontend builds UI. |
| Testing | Tester RUNS code. Finds bugs. Assigns fixes. Signs off. |
| Documentation | Docs reads actual code. Writes accurate docs. |
| Packaging | All files written. Git initialized. PM final review. |
| Complete | Working product delivered. |
# 1. Clone
git clone https://github.com/DhruvTilva/swarm
cd swarm
# 2. Install
pip install -r requirements.txt
# 3. Build anything
python main.py "build me a YouTube video downloader with format selector"python main.py "build me a real-time crypto price tracker with alerts"
python main.py "build me an AI-powered resume analyzer with scoring"
python main.py "build me a GitHub repository analytics dashboard"
python main.py "build me a personal finance dashboard with charts"
python main.py "build me an API rate limiter with Redis and analytics"python main.py "build me a multi-tenant SaaS boilerplate with auth, billing, and role-based access"python -m venv .venv
.venv\Scripts\activate # Windows
source .venv/bin/activate # Mac/Linux
pip install -r requirements.txtswarm.config.yaml:
# GitHub Models (FREE β moderate quality)
provider: openai
api_key: "your_github_token"
model: gpt-4o
base_url: "https://models.inference.ai.azure.com"
# Groq (FREE tier β fastest inference)
# provider: groq
# api_key: "gsk_..."
# model: llama-3.3-70b-versatile
# Ollama (FREE forever β fully local and private)
# provider: ollama
# model: llama3.2
# base_url: "http://localhost:11434"
# Anthropic Claude (paid β highest quality)
# provider: anthropic
# api_key: "sk-ant-..."
# model: claude-sonnet-4-20250514
# Google Gemini (free tier available)
# provider: gemini
# api_key: "AIza..."
# model: gemini-2.0-flash
# OpenAI (paid - highest quality)
# provider: openai
# api_key: "sk-..."
# model: gpt-4o
temperature: 0.7
max_tokens: 2000
database_path: "swarm.db"
output_dir: "output"Provider override from CLI:
python main.py "build me a todo app" --provider groq
python main.py "build me a todo app" --provider ollama
python main.py "build me a todo app" --model gpt-4o
python main.py "build me a todo app" --output ./my-output| Provider | Cost | Speed | Quality | Get Started |
|---|---|---|---|---|
| GitHub Models | β FREE | Fast | Moderate | github.com/settings/tokens |
| Groq | β FREE tier | β‘ Fastest | Good | console.groq.com |
| Ollama | β FREE forever | Medium | Good | ollama.ai |
| Google Gemini | β Free tier | Fast | Good | aistudio.google.com |
| OpenAI | π³ Paid | Fast | Excellent | platform.openai.com |
| Anthropic Claude | π³ Paid | Fast | Excellent | console.anthropic.com |
Swarm tracks every API call and shows estimated cost in the dashboard in real time.
Typical build costs:
| Provider | Avg Cost Per Build |
|---|---|
| GitHub Models | FREE |
| Groq free tier | FREE |
| Ollama | FREE |
| Gemini free tier | FREE |
| GPT-4o | ~$0.05 - $0.15 |
| Claude Sonnet | ~$0.03 - $0.10 |
Swarm is designed to be cost-efficient. Most users pay nothing.
output/your-project/
βββ README.md β viral-worthy, AI-written
βββ requirements.txt β actual dependencies
βββ Dockerfile β production ready
βββ app/
β βββ main.py β working FastAPI app
β βββ service.py β business logic
βββ tests/
β βββ test_app.py β real tests
βββ .gitignore
Most AI coding tools feel like autocomplete on steroids. Swarm moves differently.
You do not prompt one assistant. You deploy a team.
The Architect draws system boundaries first. The Backend challenges over-engineered design decisions. The Frontend protects clean API contracts. The Tester catches bugs before production sees them. The Docs agent records what ships. The PM changes requirements mid-build.
They communicate. They argue. They resolve. They ship. You watch.
- 6-agent multi-agent build system
- Real-time cinematic terminal dashboard
- GitHub Models API (free with Copilot Pro)
- SQLite build memory and persistence
- Cinematic boot sequence and animations
- Multi-LLM support (Claude, Gemini, Groq, Ollama, OpenAI)
- Intelligent Architect with real system design authority
- Production-grade Backend with task-specific code generation
- God-tier Frontend with first-principles UI generation
- World-class Tester that actually runs and verifies code
- Stripe-level Docs that reads actual code
- PM with real PRD and ship decision authority
- Cost tracking per LLM call
- Provider health check on startup
- Web UI dashboard (browser-based)
- Custom agent personalities via config
Swarm is early. Join us and build real developer superpowers.
- Build magical AI collaboration workflows.
- Craft sharper terminal UI moments.
- Ship open-source tools that work on day one.
How to contribute:
- Fork the repo.
- Create your feature branch.
- Build something legendary.
- Open a PR with clear intent.
We review PRs within 48 hours.
If Swarm blew your mind: β β Star it β π¦ Tweet it: "Watched 6 AI agents argue and ship software." β Share it on LinkedIn, Reddit r/programming, HN
π Swarm β because one AI is never enough
If this blew your mind, star the repo. It takes 1 second.
