swarm-coordinator
Master coordinator for E2B swarm with full agentic-flow integration
$ npx -y skills add ruvnet/agentic-flow --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Master coordinator for E2B swarm with full agentic-flow integration
Agent definition
swarm-coordinator.mdname: swarm-coordinator
version: 1.0.0
capability: coordinator
description: Master coordinator for E2B swarm with full agentic-flow integration
features:
- e2b-swarm
- sona-routing
- quic-sync
- multi-algorithm-rl
- reasoningbank
- trajectory-tracking
Swarm Coordinator Agent
Master coordinator for E2B swarm orchestration with full agentic-flow intelligence stack.
Full Feature Integration
| Feature | Purpose | Performance | |---------|---------|-------------| | **SONA Micro-LoRA** | Agent routing | ~0.05ms adaptation | | **MoE Attention** | Expert selection | Top-2 of 4 experts | | **HNSW Index** | Pattern search | 150x faster | | **Multi-Algorithm RL** | Task-specific learning | 9 algorithms | | **QUIC Sync** | Agent coordination | Low-latency | | **EWC++** | Catastrophic forgetting prevention | λ=1000 |
Usage
import {
E2BSwarmOrchestrator,
createDefaultE2BSwarm,
runInSwarm
} from 'agentic-flow/sdk';
// Create swarm with default agents
const swarm = await createDefaultE2BSwarm();
// Spawns: python-executor, javascript-executor, shell-executor,
// data-analyst, test-runner, security-scanner
// Execute parallel tasks
const results = await swarm.executeTasks([
{ id: 't1', type: 'python', code: 'print(2+2)', priority: 'critical' },
{ id: 't2', type: 'javascript', code: 'console.log(3*3)', priority: 'high' },
{ id: 't3', type: 'shell', code: 'echo "Hello"', priority: 'medium' }
]);
// Get swarm metrics
const metrics = swarm.getMetrics();
console.log(`Active: ${metrics.activeAgents}/${metrics.totalAgents}`);
console.log(`Error Rate: ${(metrics.errorRate * 100).toFixed(2)}%`);
console.log(`Avg Execution: ${metrics.averageExecutionTime}ms`);Multi-Algorithm Learning
The coordinator selects optimal RL algorithm per task:
import { getAlgorithmForTask, learnFromEpisode } from 'agentic-flow/hooks';
// Task type → Algorithm mapping
const algorithms = {
'agent-routing': 'double-q', // Reduces overestimation
'error-avoidance': 'sarsa', // Conservative on-policy
'confidence-scoring': 'actor-critic', // Continuous 0-1
'context-ranking': 'ppo', // Stable preference
'trajectory-learning': 'decision-transformer', // Sequences
'memory-recall': 'td-lambda', // Credit assignment
'pattern-matching': 'q-learning', // Fast value-based
'exploration': 'reinforce', // Policy gradient
'multi-agent': 'a2c' // Advantage estimation
};
// Learn from swarm execution
for (const result of results) {
await learnFromEpisode(
'agent-routing',
result.taskId,
result.agentId,
result.success ? 1.0 : -0.5,
'completed',
true
);
}Load Balancing Strategies
// Capability-match (default) - routes to matching agent type
const swarm1 = new E2BSwarmOrchestrator({ loadBalancing: 'capability-match' });
// Round-robin - distributes evenly
const swarm2 = new E2BSwarmOrchestrator({ loadBalancing: 'round-robin' });
// Least-busy - routes to agent with fewest tasks
const swarm3 = new E2BSwarmOrchestrator({ loadBalancing: 'least-busy' });Health Monitoring
const health = await swarm.healthCheck();
console.log(`Swarm Healthy: ${health.healthy}`);
for (const agent of health.agents) {
console.log(` ${agent.id}: ${agent.status} (healthy: ${agent.healthy})`);
}QUIC Synchronization
Agent state synced via QUIC for low-latency coordination:
import { QUICProxy } from 'agentic-flow';
const proxy = new QUICProxy({ port: 4433 });
await proxy.start();
// Agents automatically sync through QUIC
// - Task assignments
// - Completion notifications
// - Metrics aggregationRead more
name: swarm-coordinator version: 1.0.0 capability: coordinator description: Master coordinator for E2B swarm with full agentic-flow integration features: - e2b-swarm - sona-routing - quic-sync - multi-algorithm-rl - reasoningbank - trajectory-tracking
Swarm Coordinator Agent
Master coordinator for E2B swarm orchestration with full agentic-flow intelligence stack.
Full Feature Integration
| Feature | Purpose | Performance | |---------|---------|-------------| | **SONA Micro-LoRA** | Agent routing | ~0.05ms adaptation | | **MoE Attention** | Expert selection | Top-2 of 4 experts | | **HNSW Index** | Pattern search | 150x faster | | **Multi-Algorithm RL** | Task-specific learning | 9 algorithms | | **QUIC Sync** | Agent coordination | Low-latency | | **EWC++** | Catastrophic forgetting prevention | λ=1000 |
Usage
import {
E2BSwarmOrchestrator,
createDefaultE2BSwarm,
runInSwarm
} from 'agentic-flow/sdk';
// Create swarm with default agents
const swarm = await createDefaultE2BSwarm();
// Spawns: python-executor, javascript-executor, shell-executor,
// data-analyst, test-runner, security-scanner
// Execute parallel tasks
const results = await swarm.executeTasks([
{ id: 't1', type: 'python', code: 'print(2+2)', priority: 'critical' },
{ id: 't2', type: 'javascript', code: 'console.log(3*3)', priority: 'high' },
{ id: 't3', type: 'shell', code: 'echo "Hello"', priority: 'medium' }
]);
// Get swarm metrics
const metrics = swarm.getMetrics();
console.log(`Active: ${metrics.activeAgents}/${metrics.totalAgents}`);
console.log(`Error Rate: ${(metrics.errorRate * 100).toFixed(2)}%`);
console.log(`Avg Execution: ${metrics.averageExecutionTime}ms`);Multi-Algorithm Learning
The coordinator selects optimal RL algorithm per task:
import { getAlgorithmForTask, learnFromEpisode } from 'agentic-flow/hooks';
// Task type → Algorithm mapping
const algorithms = {
'agent-routing': 'double-q', // Reduces overestimation
'error-avoidance': 'sarsa', // Conservative on-policy
'confidence-scoring': 'actor-critic', // Continuous 0-1
'context-ranking': 'ppo', // Stable preference
'trajectory-learning': 'decision-transformer', // Sequences
'memory-recall': 'td-lambda', // Credit assignment
'pattern-matching': 'q-learning', // Fast value-based
'exploration': 'reinforce', // Policy gradient
'multi-agent': 'a2c' // Advantage estimation
};
// Learn from swarm execution
for (const result of results) {
await learnFromEpisode(
'agent-routing',
result.taskId,
result.agentId,
result.success ? 1.0 : -0.5,
'completed',
true
);
}Load Balancing Strategies
// Capability-match (default) - routes to matching agent type
const swarm1 = new E2BSwarmOrchestrator({ loadBalancing: 'capability-match' });
// Round-robin - distributes evenly
const swarm2 = new E2BSwarmOrchestrator({ loadBalancing: 'round-robin' });
// Least-busy - routes to agent with fewest tasks
const swarm3 = new E2BSwarmOrchestrator({ loadBalancing: 'least-busy' });Health Monitoring
const health = await swarm.healthCheck();
console.log(`Swarm Healthy: ${health.healthy}`);
for (const agent of health.agents) {
console.log(` ${agent.id}: ${agent.status} (healthy: ${agent.healthy})`);
}QUIC Synchronization
Agent state synced via QUIC for low-latency coordination:
import { QUICProxy } from 'agentic-flow';
const proxy = new QUICProxy({ port: 4433 });
await proxy.start();
// Agents automatically sync through QUIC
// - Task assignments
// - Completion notifications
// - Metrics aggregationProduction-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.
Repo: ruvnet/agentic-flow
Other agents on agentic-flow.
- analyze-code-quality
Advanced code quality analysis agent for comprehensive code reviews and improvements
Open agent - code-analyzer
Advanced code quality analysis agent for comprehensive code reviews and improvements
Open agent - arch-system-design
Expert agent for system architecture design, patterns, and high-level technical decisions
Open agent - base-template-generator
Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized.
Open agent - README
Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Open agent - byzantine-coordinator
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Open agent

