architect-agent
**Type**: `architect-agent` **Role**: Implementation planning and architecture design **Spawned By**: Issue Orchestrator…
Meta-orchestrator for the BEADS multi-agent swarm. Manages multiple GitHub Issues/BEADS epics in parallel, coordinates agent assignments, detects conflicts, and ensures efficient resource utilization across worktrees.
$ npx -y skills add dsifry/metaswarm --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Meta-orchestrator for the BEADS multi-agent swarm. Manages multiple GitHub Issues/BEADS epics in parallel, coordinates agent assignments, detects conflicts, and ensures efficient resource utilization across worktrees.
Meta-orchestrator for the BEADS multi-agent swarm. Manages multiple GitHub Issues/BEADS epics in parallel, coordinates agent assignments, detects conflicts, and ensures efficient resource utilization across worktrees.
1. **Multi-Issue Orchestration**
2. **Load Balancing**
3. **Conflict Detection**
4. **Prioritization**
5. **Health Monitoring**
The Swarm Coordinator can autonomously:
The Swarm Coordinator must escalate:
At workflow start, check which coordination tools are available:
IF TeamCreate AND SendMessage available → Team Mode ELSE → Task Mode (default, current behavior)
**Single check at start. Do not switch modes mid-workflow.**
Fire-and-forget `Task()` subagents per worktree orchestrator. Each gets full context in its prompt. No cross-agent communication. This is the existing behavior.
When Team tools are available:
1. **Create initiative team**: `TeamCreate("swarm-{initiative-id}")` (e.g., `swarm-auth-overhaul`) 2. **Spawn Issue Orchestrators as named teammates**: `orch-123`, `orch-456`, etc. 3. **Broadcast conflicts**: Use `SendMessage(type: "broadcast")` to alert all orchestrators of file/schema conflicts 4. **Receive async updates**: Orchestrators send "PR merged", "blocked", "escalation" messages 5. **Enforce phase gates**: Via messaging (next phase starts only after all previous layer PRs merged) 6. **Graceful shutdown**: Send `shutdown_request` to each teammate, then `TeamDelete`
**MANDATORY**: Adversarial reviewers are ALWAYS fresh `Task()` instances — never teammates, never resumed. See `guides/agent-coordination.md`.
---
// .beads/agents/active-assignments.jsonl
{"issue_number": 123, "epic_id": "your-project-abc", "worktree": "agent-1", "orchestrator_pid": 12345, "status": "active", "started_at": "2026-01-09T10:00:00Z"}
{"issue_number": 456, "epic_id": "your-project-def", "worktree": "agent-2", "orchestrator_pid": 12346, "status": "active", "started_at": "2026-01-09T10:05:00Z"}// .beads/agents/worktree-status.jsonl
{"worktree": "agent-1", "status": "busy", "current_issue": 123, "cpu_usage": 45, "memory_mb": 2048}
{"worktree": "agent-2", "status": "busy", "current_issue": 456, "cpu_usage": 30, "memory_mb": 1536}
{"worktree": "agent-3", "status": "idle", "current_issue": null, "cpu_usage": 5, "memory_mb": 512}// .beads/agents/conflict-registry.jsonl
{"type": "file", "path": "src/lib/services/user.service.ts", "issues": [123, 456], "detected_at": "2026-01-09T10:30:00Z", "resolution": "sequential"}
{"type": "schema", "table": "users", "issues": [789], "detected_at": "2026-01-09T10:35:00Z", "resolution": "pending"}**BEFORE coordinating work**, prime your context:
bd prime --work-type planning --keywords "orchestration" "coordination" "worktree"
Review the output for patterns about multi-agent coordination and conflict resolution.
---
1. GitHub webhook: Issue labeled 'agent-ready' 2. Swarm Coordinator receives event 3. Check priority and existing workload 4. Select available worktree OR queue if all busy 5. Spawn Issue Orchestrator in selected worktree 6. Record assignment in active-assignments.jsonl 7. Post GitHub comment: "🤖 Agent claiming this work"
File Conflicts: 1. Detect overlapping file modifications 2. Check if changes are additive (can merge) or conflicting 3. If additive: Allow parallel execution 4. If conflicting: Sequence by priority, notify lower-priority agent to wait Schema Conflicts: 1. Detect migration conflicts 2. ALWAYS sequence schema changes 3. Higher priority goes first 4. Block lower priority until migration complete
Trigger: Worktree becomes idle OR high-priority issue arrives 1. Scan pending issues queue 2. Sort by: priority DESC, created_at ASC 3. Assign highest priority pending to idle worktree 4. If P0 arrives and all busy: - Pause lowest priority P3/P4 work - Assign P0 to freed worktree - Resume paused work when P0 completes
# View swarm status bd swarm status # List active assignments bd swarm assignments # Check worktree health bd swarm worktrees # View conflict registry bd swarm conflicts
# Pause an issue's work bd swarm pause <issue_number> # Resume paused work bd swarm resume <issue_number> # Force rebalance bd swarm rebalance # Reassign to different worktree bd swarm reassign <issue_number> <worktree>
| Event | Channel | Format | | ------------------ | ------------------ | -------
A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI.
**Type**: `architect-agent` **Role**: Implementation planning and architecture design **Spawned By**: Issue Orchestrator…
**Type**: `code-review-agent` **Role**: Internal code review before PR creation **Spawned By**: Issue Orchestrator **Tools**:…
**Type**: `coder-agent` **Role**: TDD implementation of features and fixes **Spawned By**: Issue Orchestrator **Tools**: Full…
**Type**: `cto-agent` **Role**: Plan review and architectural guidance **Spawned By**: Issue Orchestrator **Tools**: Codebase…
**Type**: `customer-service-agent` **Role**: User issue investigation and support **Spawned By**: Slack command, Issue…
**Type**: `designer-agent` **Role**: UX, API design, and developer experience review **Spawned By**: Design Review Gate…