Command Center & Swarm Panel
Command Center & Swarm panel
Section titled “Command Center & Swarm panel”The Swarm / Command Center UI surfaces multi-worker orchestration: dispatch, pipelines, fan-out, live task status, and metrics.
Surfaces
Section titled “Surfaces”| Surface | Location |
|---|---|
| Web page | /swarm + swarm.js / swarm panel modules |
| SSE | Swarm event stream for live updates |
| REST | /api/swarm/* (workers, tasks, metrics, approve/reject) |
| CLI | kazma swarm … (talks to running server) |
| Gateways | /swarm slash + HITL bus adapters |
Concepts
Section titled “Concepts”- Patterns: dispatch, broadcast, pipeline, fan-out, consult, conditional (see Swarm orchestration).
- Reliability: circuit breakers, retries, timeouts, visit/depth handoff limits.
- HITL: bus approvals + pipeline checkpoints.
- Persistence: TaskStore (SQLite or Postgres).
Operator tips
Section titled “Operator tips”- Start the Web UI first (
kazma serve). - Add workers via UI or
kazma swarm worker add …. - Watch live tasks; approve checkpoints when paused.
- Use metrics/history for cost and failure trends.
Worker templates (autoscaler)
Section titled “Worker templates (autoscaler)”You don’t need to pre-register workers — the Templates tab manages the
autoscaler. When a swarm task has no matching registered worker, the engine
auto-spawns one from a template (shipped defaults: coder, researcher,
generalist), each capped by max_instances and idle-reaped after 5 min.
Templates with an empty model auto-select the best available model for the task
kind. Full CRUD here (add/edit/delete, view live instance counts, reap idle).
See Swarm orchestration §14.