Multi-Agent AI Orchestration Platform - Run multiple AI agents in parallel, compare their outputs, and select the best solution.
DevSwarm runs multiple AI agents simultaneously in isolated Kubernetes containers, streaming their thought processes in real-time via WebSocket + Redis Streams. Compare different approaches in a tabbed interface and select the best solution.
Developers additionally will need a Node.js (via npm or bun etc) or Python runtime (via uv) if they want to run test suites.
Note: The setup uses
ctlptl
for local registry management. If you already have a k3d cluster or ctlptl registry, the bootstrap script will reuse them.
Nix Users: See docs/nix-guide.md for a declarative development environment setup.
# Clone the repo
git clone https://github.com/yourusername/devswarm.git
cd devswarm
# Run bootstrap (creates .env, installs dependencies)
./bootstrap.sh
# Start development
tilt up
That's it! The bootstrap script will:
- Check for required tools and provide installation instructions
- Create the Kubernetes cluster using ctlptl
- Set up environment variables and secrets
- Install frontend and Python dependencies
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Tilt UI: http://localhost:10350
- Open http://localhost:3000
- Enter a GitHub repository URL and prompt
- Choose number of agents (1-5)
- Watch agents work in real-time
- Select the best solution
# Backend + Kubernetes (with hot reload)
tilt up
# Frontend (in separate terminal)
cd frontend && npm run dev
# Run tests
uv run test-all # Backend tests
cd frontend && npm test:all # Frontend tests
# Stop everything
tilt down
If you encounter "image not found" errors:
-
Ensure images are built and pushed:
# Tilt should handle this automatically when you run 'tilt up' # If you see "image not found" errors, you may need to: # Option 1: Let Tilt build everything (recommended) tilt up # Option 2: Manually build and tag if Tilt uses dynamic tags docker build -t localhost:5005/DevSwarm-api:dev --target api . docker push localhost:5005/DevSwarm-api:dev docker build -t localhost:5005/DevSwarm-agent:dev --target agent . docker push localhost:5005/DevSwarm-agent:dev
-
Verify registry is running:
docker ps | grep ctlptl-registry
-
Check registry contents:
curl http://localhost:5005/v2/_catalog
-
Fix missing :dev tags:
# If agent jobs fail with "image not found", run: ./scripts/fix-registry-tags.sh
-
Reset everything:
k3d cluster delete DevSwarm docker rm -f ctlptl-registry ./bootstrap.sh tilt up
- Tilt uses dynamic tags: Tilt builds images with tags like
tilt-abc123...
but the job templates expect:dev
tags. The Tiltfile includes atag-dev-images
resource that automatically creates these tags, but if it fails, run./scripts/fix-registry-tags.sh
.
See architecture.md for detailed technical documentation.
- 🔄 Parallel Execution - Run 1-5 agents simultaneously
- 📡 Real-time Streaming - Watch agent thoughts via WebSocket + Redis Streams
- 🎯 Tabbed Comparison - Compare outputs in focused tabbed interface
- 💾 Dual Persistence - Real-time streaming + PostgreSQL history
- ☁️ Cloud-Native - Kubernetes Jobs with automatic cleanup
- 🔧 Developer-Friendly - Hot reload with Tilt
MIT License - see LICENSE file for details.