تخطَّ إلى المحتوى
kazma.
EN نجمة 7 ابدأ الآن

Command Center & Swarm Panel

The Swarm / Command Center UI surfaces multi-worker orchestration: dispatch, pipelines, fan-out, live task status, and metrics.

SurfaceLocation
Web page/swarm + swarm.js / swarm panel modules
SSESwarm event stream for live updates
REST/api/swarm/* (workers, tasks, metrics, approve/reject)
CLIkazma swarm … (talks to running server)
Gateways/swarm slash + HITL bus adapters
  • 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).
  1. Start the Web UI first (kazma serve).
  2. Add workers via UI or kazma swarm worker add ….
  3. Watch live tasks; approve checkpoints when paused.
  4. Use metrics/history for cost and failure trends.

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.