spencermarx avatar

Swarm Orchestration

This is for when you need multiple Claude instances working together instead of a single agent grinding through tasks sequentially. It uses agentic-flow to spin up coordinated swarms with different topologies: mesh for peer-to-peer coordination, hierarchical for centralized control, or adaptive mode that picks the right structure based on task complexity. You get parallel execution, shared memory across agents, automatic load balancing, and fault tolerance with task reassignment. The skill includes CLI hooks for spawning agents and orchestrating work, plus pipeline support for dependent stages. Worth exploring if you're hitting the limits of single-agent workflows or building systems where different specialists need to collaborate on complex builds.

GitHub stars
240
last updated
Jun 11, 2026

Install

$ npx -y skills add spencermarx/open-code-review --skill 'Swarm Orchestration' --agent claude-code

Installs into .claude/skills of the current project.

Files

Swarm Orchestration

What This Skill Does

Orchestrates multi-agent swarms using agentic-flow's advanced coordination system. Supports mesh, hierarchical, and adaptive topologies with automatic task distribution, load balancing, and fault tolerance.

Prerequisites

  • agentic-flow v3.0.0-alpha.1+
  • Node.js 18+
  • Understanding of distributed systems (helpful)

Quick Start

# Initialize swarm
npx agentic-flow hooks swarm-init --topology mesh --max-agents 5

# Spawn agents
npx agentic-flow hooks agent-spawn --type coder
npx agentic-flow hooks agent-spawn --type tester
npx agentic-flow hooks agent-spawn --type reviewer

# Orchestrate task
npx agentic-flow hooks task-orchestrate \
  --task "Build REST API with tests" \
  --mode parallel

Topology Patterns

1. Mesh (Peer-to-Peer)

// Equal peers, distributed decision-making
await swarm.init({
  topology: 'mesh',
  agents: ['coder', 'tester', 'reviewer'],
  communication: 'broadcast'
});

Sponsors

Details

Repository
github.com/spencermarx/open-code-review
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Automation & Workflows
License
Apache-2.0
First seen
Jun 11, 2026

More from spencermarx/open-code-review

All 31
1spencermarx avatarV3 CLI Modernizationspencermarx/open-code-reviewCLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intell0skills.sh installs
2spencermarx avatarV3 Core Implementationspencermarx/open-code-reviewCore module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with c0skills.sh installs
3spencermarx avatarV3 DDD Architecturespencermarx/open-code-reviewDomain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern0skills.sh installs
4spencermarx avatarV3 Deep Integrationspencermarx/open-code-reviewDeep agentic-flow@alpha integration implementing ADR-001. Eliminates 10,000+ duplicate lines by building claude-flow as specialized extension rather than parall0skills.sh installs
5spencermarx avatarV3 MCP Optimizationspencermarx/open-code-reviewMCP server optimization and transport layer enhancement for claude-flow v3. Implements connection pooling, load balancing, tool registry optimization, and perfo0skills.sh installs
6spencermarx avatarV3 Memory Unificationspencermarx/open-code-reviewUnify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Me0skills.sh installs