Skip to content
Development
Agent

README

Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols

From plugin
agentic-flow
840105 skills105 agents134 commands3 MCP

Claude Code

> /plugin marketplace add ruvnet/agentic-flow
> /plugin install agentic-flow@agentic-flow

Agent definition

README.md
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 crdtSynchronize
Read more
@ruvnet
Ships withagentic-flow

Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.

84039 skills105 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
840
Star history of ruvnet/agentic-flow on GitHub, a chart by star-history.com

Other agents on agentic-flow.

base-template-generator

base-template-generato…

Agent

Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects,…

@ruvnet@ruvnetInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about README.

Which coding agents can use README?
README installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.