Getting Started with SwarmWeaver

SwarmWeaver runs on Python 3.11+ with zero external runtime dependencies across DAG compilation, file-scope leases, SHA-256 checkpoints, and MCP tools.

Install & run the 10-agent crash demo

v1.1.0

Run locally

git clone https://github.com/codesphere-u/swarmweaver.git
cd swarmweaver && pip install -e .
swarmweaver demo && swarmweaver benchmark

CLI Subcommands

CommandPurpose
swarmweaver plan [-f FILE] [--json]Compile tasks into conflict-free parallel waves and print critical path stats.
swarmweaver demo [--json]Execute the 10-agent refactoring DAG with crash injection and instant SHA-256 resume.
swarmweaver benchmark [--json]Run the 4-part reproducible benchmark (200-task DAG, 50-task locks, 20 crash runs, 15 traps).
swarmweaver verify-journal PATH [--json]Audit every prev_hash -> entry_hash SHA-256 link in a checkpoint JSONL file.
swarmweaver mcpStart the JSON-RPC 2.0 Stdio MCP server (2024-11-05).
swarmweaver serve-http [--port 8000]Launch the Streamable HTTP/SSE MCP server, REST API, Prometheus metrics, and Web UI.