Simulate an enterprise development team β 1,000 AI agents building full projects in parallel from a single description.
You write one sentence. SwarmDev spins up 1,000 specialist agents that coordinate like an ant colony β leaving signals in shared memory, building on each other's output β and delivers a complete, verified codebase.
python main.py "build a full-stack job board with React, FastAPI, and JWT auth"That's it. The swarm handles everything else.
Your description
β
βΌ
Stack detection β React? Full-stack? ML? Python?
β
βΌ
Project scaffolding β Writes correct boilerplate first (39 files for full-stack)
β
βΌ
LLM task decomposition β Breaks project into 8β15 tasks with a dependency graph
β
βΌ
Swarm execution β 10β12 specialist agents per task, running in parallel
β
βββ Architect Β· Frontend dev Β· UI designer
βββ Backend dev Β· DB engineer Β· Security
βββ ML engineer Β· DevOps Β· QA engineer
β
βΌ
Verification β pytest + mypy + flake8 (Python) Β· eslint (JS/JSX)
β
βΌ
Stigmergy memory β Agents deposit results; later agents build on them
β
βΌ
Complete project on disk
| Stack | What gets built |
|---|---|
react |
React 18 + Vite + Tailwind CSS + React Router |
fullstack |
React frontend + FastAPI backend + SQLAlchemy + JWT auth |
ml |
PyTorch / sklearn + MLflow tracking + FastAPI serving |
python |
FastAPI / CLI + SQLAlchemy + pytest |
1. Clone and install
git clone https://github.com/your-username/swarmdev
cd swarmdev
pip install -r requirements.txt2. Add your API keys
cp .env.example .envEdit .env:
GROQ_API_KEY=your_key_here # free at console.groq.com
GOOGLE_API_KEY=your_key_here # free at aistudio.google.com
GROQ_MODEL=llama-3.1-8b-instant # recommended for free tier3. Run
python server.py # web UI at http://localhost:8000
# or
python cli.py # interactive terminal
# or
python main.py "your project description"python server.pyOpen http://localhost:8000 β submit tasks, watch live logs, browse generated files, view job history.
python cli.pyRich terminal interface with progress bars, live log streaming, and job history.
# Custom description
python main.py "build a React dashboard for IoT sensor monitoring"
# Built-in demos
python main.py --demo react # cat food e-commerce store
python main.py --demo fullstack # task manager with auth
python main.py --demo ml # sentiment analyser
python main.py --demo python # Hacker News CLI toolswarmdev_v3/
βββ server.py β FastAPI server + web UI backend
βββ cli.py β Interactive terminal CLI
βββ ui.html β Web frontend (served automatically)
βββ main.py β Direct CLI entry point
βββ requirements.txt
βββ .env.example
β
βββ swarm/
β βββ agents.py β 1,000 role-based agents with language-aware codegen
β βββ config.py β Stack detection, role definitions, skill mappings
β βββ executor.py β Async swarm orchestration loop
β βββ llm_router.py β Groq + Gemini dual-provider router with cooldowns
β βββ memory.py β ChromaDB stigmergy store
β βββ scaffolder.py β Project skeleton generator (React, fullstack, ML, Python)
β βββ task_graph.py β LLM-powered DAG decomposer
β βββ verifier.py β Multi-language code verification
β
βββ tests/
βββ test_swarm.py β 33 tests, all passing
Both Groq and Gemini have generous free tiers. To avoid rate limits on longer runs:
In .env:
GROQ_MODEL=llama-3.1-8b-instant # 10x higher TPM than 70b on free tierIn swarm/llm_router.py:
MAX_RETRIES = 2 # default 3 β reduces wasted retry tokens
max_tokens = 2000 # default 4096 β most files don't need moreTypical token usage per run:
| Project type | Tokens |
|---|---|
| Python CLI | ~80β120k |
| React app | ~150β200k |
| Full-stack | ~200β300k |
| ML pipeline | ~200β280k |
Low tokens β good for first runs
Build a URL shortener API with FastAPI and SQLite. Features: custom slugs,
redirect endpoint, click tracking, list and delete endpoints. Include pytest tests.
Build a React expense tracker with Vite and Tailwind. Features: add income/expense
entries, running balance, category filter, monthly bar chart with Recharts,
localStorage persistence.
Medium
Build a full-stack markdown notes app. React 18 + FastAPI + SQLite. Features:
JWT auth, create/edit notes with markdown preview, tags, pin, search, soft delete.
Include pytest tests and docker-compose.
Ambitious
Build a real-time chat app. React + FastAPI + WebSockets + SQLAlchemy. Features:
JWT auth, chat rooms, online presence, message history, emoji reactions, file uploads,
Redis pub/sub for multi-instance broadcasting. Include pytest tests and docker-compose.
- LLM β Groq (llama-3.1-8b-instant / llama-3.3-70b-versatile) Β· Google Gemini
- Memory β ChromaDB vector store
- Verification β pytest Β· mypy Β· flake8 Β· eslint
- Server β FastAPI + uvicorn
- CLI β Click + Rich
- Async β Python asyncio throughout
MIT