README
Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
$ 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.
Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Agent definition
README.mdname: Consensus Builder
type: documentation
category: consensus
description: Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Distributed Consensus Builder Agents
Overview
This directory contains specialized agents for implementing advanced distributed consensus mechanisms and fault-tolerant coordination protocols. These agents work together to provide robust, scalable consensus capabilities for distributed swarm systems.
Agent Collection
Core Consensus Protocols
1. **Byzantine Consensus Coordinator** (`byzantine-coordinator.md`)
- **Mission**: Implement Byzantine fault-tolerant consensus algorithms for secure decision-making
- **Key Features**:
- PBFT (Practical Byzantine Fault Tolerance) implementation
- Malicious agent detection and isolation
- Threshold signature schemes
- Network partition recovery protocols
- DoS protection and rate limiting
2. **Raft Consensus Manager** (`raft-manager.md`)
- **Mission**: Implement Raft consensus algorithm with leader election and log replication
- **Key Features**:
- Leader election with randomized timeouts
- Log replication and consistency guarantees
- Follower synchronization and catch-up mechanisms
- Snapshot creation and log compaction
- Leadership transfer protocols
3. **Gossip Protocol Coordinator** (`gossip-coordinator.md`)
- **Mission**: Implement epidemic information dissemination for scalable communication
- **Key Features**:
- Push/Pull/Hybrid gossip protocols
- Anti-entropy state synchronization
- Membership management and failure detection
- Network topology discovery
- Adaptive gossip parameter tuning
Security and Cryptography
4. **Security Manager** (`security-manager.md`)
- **Mission**: Provide comprehensive security mechanisms for consensus protocols
- **Key Features**:
- Threshold cryptography and signature schemes
- Zero-knowledge proof systems
- Attack detection and mitigation (Byzantine, Sybil, Eclipse, DoS)
- Secure key management and distribution
- End-to-end encryption for consensus traffic
State Synchronization
5. **CRDT Synchronizer** (`crdt-synchronizer.md`)
- **Mission**: Implement Conflict-free Replicated Data Types for eventual consistency
- **Key Features**:
- State-based and operation-based CRDTs
- G-Counter, PN-Counter, OR-Set, LWW-Register implementations
- RGA (Replicated Growable Array) for sequences
- Delta-state CRDT optimization
- Causal consistency tracking
Performance and Optimization
6. **Performance Benchmarker** (`performance-benchmarker.md`)
- **Mission**: Comprehensive performance analysis and optimization for consensus protocols
- **Key Features**:
- Throughput and latency measurement
- Resource utilization monitoring
- Comparative protocol analysis
- Adaptive performance tuning
- Real-time optimization recommendations
7. **Quorum Manager** (`quorum-manager.md`)
- **Mission**: Dynamic quorum adjustment based on network conditions and fault tolerance
- **Key Features**:
- Network-based quorum strategies
- Performance-optimized quorum sizing
- Fault tolerance analysis and optimization
- Intelligent membership management
- Predictive quorum adjustments
Architecture Integration
MCP Integration Points
All consensus agents integrate with the MCP (Model Context Protocol) coordination system:
// Memory coordination for persistent state
await this.mcpTools.memory_usage({
action: "store",
key: "consensus_state",
value: JSON.stringify(consensusData),
namespace: "distributed_consensus",
});
// Performance monitoring
await this.mcpTools.metrics_collect({
components: ["consensus_latency", "throughput", "fault_tolerance"],
});
// Task orchestration
await this.mcpTools.task_orchestrate({
task: "consensus_round",
strategy: "parallel",
priority: "high",
});Swarm Coordination
Agents coordinate with the broader swarm infrastructure:
- **Node Discovery**: Integration with swarm node discovery mechanisms
- **Health Monitoring**: Consensus participation in distributed health checks
- **Load Balancing**: Dynamic load distribution across consensus participants
- **Fault Recovery**: Coordinated recovery from node and network failures
Usage Patterns
Basic Consensus Setup
// Initialize Byzantine consensus for high-security scenarios
const byzantineConsensus = new ByzantineConsensusCoordinator("node-1", 7, 2);
await byzantineConsensus.initializeNode();
// Initialize Raft for leader-based coordination
const raftConsensus = new RaftConsensusManager("node-1", [
"node-1",
"node-2",
"node-3",
]);
await raftConsensus.initialize();
// Initialize Gossip for scalable information dissemination
const gossipCoordinator = new GossipProtocolCoordinator("node-1", [
"seed-1",
"seed-2",
]);
await gossipCoordinator.initialize();Security-Enhanced Consensus
// Add security layer to consensus protocols
const securityManager = new SecurityManager();
await securityManager.generateDistributedKeys(participants, threshold);
const secureConsensus = new SecureConsensusWrapper(
byzantineConsensus,
securityManager,
);
Performance Optimization
// Benchmark and optimize consensus performance
const benchmarker = new ConsensusPerformanceBenchmarker();
const results = await benchmarker.runComprehensiveBenchmarks(
["byzantine", "raft", "gossip"],
scenarios,
);
// Apply adaptive optimizations
const optimizer = new AdaptiveOptimizer();
await optimizer.optimizeBasedOnResults(results);
State Synchronization
// Set up CRDT-based state synchronization
const crdtSynchronizer = new CRDTSynchronizer("node-1", replicationGroup);
const counter = crdtSynchronizer.registerCRDT("request_counter", "G_COUNTER");
const userSet = crdtSynchronizer.registerCRDT("active_users", "OR_SET");
await crdtSynchronizeRead more
name: Consensus Builder type: documentation category: consensus description: Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Distributed Consensus Builder Agents
Overview
This directory contains specialized agents for implementing advanced distributed consensus mechanisms and fault-tolerant coordination protocols. These agents work together to provide robust, scalable consensus capabilities for distributed swarm systems.
Agent Collection
Core Consensus Protocols
1. **Byzantine Consensus Coordinator** (`byzantine-coordinator.md`)
- **Mission**: Implement Byzantine fault-tolerant consensus algorithms for secure decision-making
- **Key Features**:
- PBFT (Practical Byzantine Fault Tolerance) implementation
- Malicious agent detection and isolation
- Threshold signature schemes
- Network partition recovery protocols
- DoS protection and rate limiting
2. **Raft Consensus Manager** (`raft-manager.md`)
- **Mission**: Implement Raft consensus algorithm with leader election and log replication
- **Key Features**:
- Leader election with randomized timeouts
- Log replication and consistency guarantees
- Follower synchronization and catch-up mechanisms
- Snapshot creation and log compaction
- Leadership transfer protocols
3. **Gossip Protocol Coordinator** (`gossip-coordinator.md`)
- **Mission**: Implement epidemic information dissemination for scalable communication
- **Key Features**:
- Push/Pull/Hybrid gossip protocols
- Anti-entropy state synchronization
- Membership management and failure detection
- Network topology discovery
- Adaptive gossip parameter tuning
Security and Cryptography
4. **Security Manager** (`security-manager.md`)
- **Mission**: Provide comprehensive security mechanisms for consensus protocols
- **Key Features**:
- Threshold cryptography and signature schemes
- Zero-knowledge proof systems
- Attack detection and mitigation (Byzantine, Sybil, Eclipse, DoS)
- Secure key management and distribution
- End-to-end encryption for consensus traffic
State Synchronization
5. **CRDT Synchronizer** (`crdt-synchronizer.md`)
- **Mission**: Implement Conflict-free Replicated Data Types for eventual consistency
- **Key Features**:
- State-based and operation-based CRDTs
- G-Counter, PN-Counter, OR-Set, LWW-Register implementations
- RGA (Replicated Growable Array) for sequences
- Delta-state CRDT optimization
- Causal consistency tracking
Performance and Optimization
6. **Performance Benchmarker** (`performance-benchmarker.md`)
- **Mission**: Comprehensive performance analysis and optimization for consensus protocols
- **Key Features**:
- Throughput and latency measurement
- Resource utilization monitoring
- Comparative protocol analysis
- Adaptive performance tuning
- Real-time optimization recommendations
7. **Quorum Manager** (`quorum-manager.md`)
- **Mission**: Dynamic quorum adjustment based on network conditions and fault tolerance
- **Key Features**:
- Network-based quorum strategies
- Performance-optimized quorum sizing
- Fault tolerance analysis and optimization
- Intelligent membership management
- Predictive quorum adjustments
Architecture Integration
MCP Integration Points
All consensus agents integrate with the MCP (Model Context Protocol) coordination system:
// Memory coordination for persistent state
await this.mcpTools.memory_usage({
action: "store",
key: "consensus_state",
value: JSON.stringify(consensusData),
namespace: "distributed_consensus",
});
// Performance monitoring
await this.mcpTools.metrics_collect({
components: ["consensus_latency", "throughput", "fault_tolerance"],
});
// Task orchestration
await this.mcpTools.task_orchestrate({
task: "consensus_round",
strategy: "parallel",
priority: "high",
});Swarm Coordination
Agents coordinate with the broader swarm infrastructure:
- **Node Discovery**: Integration with swarm node discovery mechanisms
- **Health Monitoring**: Consensus participation in distributed health checks
- **Load Balancing**: Dynamic load distribution across consensus participants
- **Fault Recovery**: Coordinated recovery from node and network failures
Usage Patterns
Basic Consensus Setup
// Initialize Byzantine consensus for high-security scenarios
const byzantineConsensus = new ByzantineConsensusCoordinator("node-1", 7, 2);
await byzantineConsensus.initializeNode();
// Initialize Raft for leader-based coordination
const raftConsensus = new RaftConsensusManager("node-1", [
"node-1",
"node-2",
"node-3",
]);
await raftConsensus.initialize();
// Initialize Gossip for scalable information dissemination
const gossipCoordinator = new GossipProtocolCoordinator("node-1", [
"seed-1",
"seed-2",
]);
await gossipCoordinator.initialize();Security-Enhanced Consensus
// Add security layer to consensus protocols const securityManager = new SecurityManager(); await securityManager.generateDistributedKeys(participants, threshold); const secureConsensus = new SecureConsensusWrapper( byzantineConsensus, securityManager, );
Performance Optimization
// Benchmark and optimize consensus performance const benchmarker = new ConsensusPerformanceBenchmarker(); const results = await benchmarker.runComprehensiveBenchmarks( ["byzantine", "raft", "gossip"], scenarios, ); // Apply adaptive optimizations const optimizer = new AdaptiveOptimizer(); await optimizer.optimizeBasedOnResults(results);
State Synchronization
// Set up CRDT-based state synchronization
const crdtSynchronizer = new CRDTSynchronizer("node-1", replicationGroup);
const counter = crdtSynchronizer.registerCRDT("request_counter", "G_COUNTER");
const userSet = crdtSynchronizer.registerCRDT("active_users", "OR_SET");
await crdtSynchronizeProduction-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 - byzantine-coordinator
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Open agent - crdt-synchronizer
Implements Conflict-free Replicated Data Types for eventually consistent state synchronization
Open agent

