Claude Swarm (affaan-m) — Summary
Claude Swarm is a Python CLI tool for multi-agent orchestration of Claude Code: Opus 4.6 decomposes a task into a dependency graph of subtasks, Haiku worker agents execute them in parallel waves with file-locking for conflict prevention, and Opus 4.6 runs a Quality Gate review over all agent outputs before reporting results. Every execution is recorded as JSONL events and replayable.
Problem it solved: Complex software tasks have internal dependencies that make naive parallelism produce conflicts — Claude Swarm builds an explicit dependency DAG, respects ordering, prevents file conflicts with pessimistic locking, enforces a hard budget cap, and adds a model-appropriate quality gate (senior architect designs, junior engineers execute, senior reviews).
Distinctive traits: (1) Strategic multi-model routing: Opus for planning + quality gate, Haiku for worker execution — by explicit design; (2) Dependency-aware wave scheduling: tasks only start when dependencies complete; (3) File conflict detection via pessimistic locking across parallel workers; (4) JSONL session recording with claude-swarm replay <id>; (5) --demo flag for animated TUI preview without API key.
Target audience: Developers working on complex refactors or feature additions where subtask ordering matters and want automated parallelism with budget enforcement and quality review.
differs_from_seeds: Most similar to claude-flow in the MCP-anchored toolserver cluster (both spawn multiple agents, both use Claude), but architecturally different: claude-swarm uses the Claude Agent SDK directly (not MCP tools) and implements its own wave-based dependency scheduler. The Opus→Haiku→Opus quality-gate model closely mirrors the "senior engineer designs and reviews, junior executes" pattern. JSONL session recording with replay is unique to this framework in the entire batch.