opencode-swarm-plugin@0.43.0
·
333 commits
to main
since this release
Minor Changes
-
d74f68bThanks @joelhooks! - ## ๐ญ Observability Stack: See What Your Swarm Is Doingโญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ โ โ "Observability is about instrumenting your system โ โ in a way that ensures sufficient information about โ โ a system's runtime is collected and analyzed so โ โ that when something goes wrong, it can help you โ โ understand why." โ โ โ โ โ AI Engineering, Chip Huyen โ โ โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏFive new modules for understanding multi-agent coordination at runtime:
Error Enrichment (
error-enrichment.ts)throw new SwarmError("File reservation failed", { file: "src/auth.ts", agent: "DarkHawk", epic_id: "mjmas3zxlmg", recent_events: [ /* last 5 events */ ], });
SwarmErrorclass with structured context (file, line, agent, epic, events)enrichError()wraps any error with swarm contextdebugLog()respectsDEBUG=swarm:*patternssuggestFix()maps 8+ error patterns to actionable fixes
SQL Analytics (
swarm query)swarm query --preset failed_decompositions swarm query --sql "SELECT * FROM events WHERE type='worker_spawned'" swarm query --preset duration_by_strategy --format csv10 preset queries:
failed_decompositions,duration_by_strategy,file_conflicts,worker_success_rate,review_rejections,blocked_tasks,agent_activity,event_frequency,error_patterns,compaction_statsDashboard Data (
swarm dashboard)swarm dashboard --epic mjmas3zxlmg --refresh 1000
Real-time data fetching: worker status, subtask progress, file locks, recent messages, epic list.
Event Replay (
swarm replay)swarm replay mjmas3zxlmg --speed 2x --type worker_spawned swarm replay mjmas3zxlmg --agent DarkHawk --since "2025-12-25T10:00:00"Replay epic events with timing control. Filter by type, agent, time range. Debug coordination failures by watching the sequence unfold.
Export Formats (
swarm export)swarm export --format otlp --epic mjmas3zxlmg # OpenTelemetry traces swarm export --format csv --output events.csv # RFC 4180 compliant swarm export --format json | jq '.[] | select(.type=="error")'
Test Coverage: 225 tests (150 unit + 75 CLI integration)
TDD Enforced: RED cells first, GREEN cells second. Every function tested before implementation.