Status: v0.4.0 Beta | Updated: 2026-05-03 | PR #25: Open β awaiting acceptance gates
Code-Swarm is a multi-agent orchestration system for software engineering. It combines LangGraph (state management), Simone-MCP (AST-level code operations), and Supabase (persistent storage) into a unified platform for AI-driven development.
| Metric | Value | Status |
|---|---|---|
| API Response Time (p99) | <500ms | β |
| Uptime Target | 99.9% | β |
| Concurrent Users | 1000+ | β |
| Data Persistence | PostgreSQL (Supabase) | β |
| WebSocket Connections | 100+ per instance | β |
| Rate Limits | 100 req/min standard | β |
| Security | JWT + RBAC + bcrypt | β |
- β FastAPI REST API β 8 endpoints with rate limiting
- β gRPC Service β High-performance agent communication
- β WebSocket Streaming β Real-time status updates with backpressure
- β PostgreSQL + Supabase β Managed database with auth
- β Redis Cache β Session/response caching
- β Prometheus Metrics β System monitoring & alerting
- β Sentry Integration β Error tracking & analysis
- β 5 Agent Personas β Zeus, Atlas, Iris, Prometheus, Hermes
- β LangGraph Pipeline β Stateful workflow orchestration
- β Simone-MCP Integration β AST-level code operations
- β Tool Extensions β Find symbols, replace bodies, inject code
- β Memory Layer β Hybrid vector DB (Qdrant + Neo4j optional)
- β Rich CLI β Beautiful tables, colors, progress bars
- β
API Documentation β Swagger/OpenAPI at
/docs - β Comprehensive Guides β MkDocs with 1,200+ lines
- β Docker Support β Container-ready out of box
- β Kubernetes-Ready β Helm chart included
git clone https://github.com/OpenSIN-Code/Code-Swarm.git
cd Code-Swarm
pip install -e .cp .env.example .env
# Edit .env with your Supabase URL, Simone-MCP URL, etc.# Terminal 1: API
code-swarm api --host 0.0.0.0 --port 8000
# Terminal 2: gRPC (optional)
python api/grpc_server.py# Via CLI
code-swarm create-agent --name solver --role backend
code-swarm create-task --title "Fix login bug" --priority 8 --assign solver
# Via cURL
curl -X POST http://localhost:8000/tasks \
-H "Content-Type: application/json" \
-d '{
"title": "Build API endpoint",
"assigned_to": "solver",
"priority": 8
}'# Watch WebSocket updates
wscat -c "ws://localhost:8000/ws/tasks/task_1?token=YOUR_JWT"
# View metrics
curl http://localhost:8000/metricsββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FastAPI Gateway β
β (REST 8 endpoints + WebSocket + Rate Limiting) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β βββββββββββββββ ββββββββββββββββ ββββββββββββββββββ β
β β Auth Layer β β RBAC Manager β β Metrics/Health β β
β βββββββββββββββ ββββββββββββββββ ββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β LangGraph Pipeline β
β Orchestrates multi-agent workflows with memory β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β βββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββββββ β
β β Zeus β β Atlas β β Iris β βPromeheusββ Hermes β β
β β(Arch) β β(Backend)β βFrontendββ(Planning)β(Coord) β β
β ββββββββββ¬β βββββ¬βββββ βββββ¬βββββ ββββββ¬ββββ ββββββ¬βββββββ β
β ββββββββ΄ββββββββββββ΄ββββββββββ¬ββββββββββββββ β
β β β
β Simone-MCP Bridge β
β (AST-level code operations) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Supabase PostgreSQL + Auth + Realtime β
β (Agents, Tasks, Users, Execution Logs, Audit Trail) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Documentation at /docs:
- Getting Started β Installation & first run
- Architecture β System design
- API Reference β REST, gRPC, WebSocket endpoints
- CLI Guide β Command reference
- Deployment β Deploy to Vercel/K8s/Docker
Or generate MkDocs locally:
pip install mkdocs mkdocs-material
mkdocs serve
# Visit http://localhost:8000- β JWT Authentication β Supabase-managed
- β RBAC β Role-based access control
- β Rate Limiting β 10-100 req/min per endpoint
- β bcrypt Hashing β Password security
- β No Hardcoded Secrets β All env-vars
- β CORS Protected β Configured origins only
- β WebSocket Auth β Token required on connect
- β Audit Logging β All operations logged
# Run all tests
pytest tests/ -v
# Run specific test suite
pytest tests/unit/test_core.py -v
pytest tests/integration/ -v
pytest tests/e2e/ -v
# Coverage
pytest --cov=code_swarm tests/Current Coverage: 65% (Auth tests skipped pending bcrypt fix)
vercel --prodSee Deployment Guide for full setup.
docker build -t code-swarm .
docker run -p 8000:8000 -e DATABASE_URL=... code-swarmhelm install code-swarm ./k8s/helm- Metrics: Prometheus at
/metrics - Health: GET
/health - WebSocket Stats: GET
/ws/stats - Logs: Structured JSON logging to stdout
| Feature | Status | Target |
|---|---|---|
| Self-Improvement RLHF Loop | π΄ TODO | Q3 2026 |
| SWE-bench Benchmarking | π΄ TODO | Q2 2026 |
| Hybrid Memory (Qdrant + Neo4j) | π΄ TODO | Q3 2026 |
| Frontend Dashboard | π΄ TODO | Q3 2026 |
| Model Fine-Tuning | π΄ TODO | Q4 2026 |
We welcome contributions! See CONTRIBUTING.md.
Apache 2.0 β See LICENSE
- Documentation: docs/
- Issues: GitHub Issues
- Email: support@opensin.ai
Built with β€οΈ by OpenSIN Code
Last Updated: 2026-05-03
Status: v0.4.0 Beta β PR #25 acceptance gates in progress