analyze-code-quality
AgentAdvanced code quality analysis agent for comprehensive code reviews and improvements
Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Claude Code
> /plugin marketplace add ruvnet/agentic-flow> /plugin install agentic-flow@agentic-flow
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: Consensus Builder type: documentation category: consensus description: Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
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.
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",
});Agents coordinate with the broader swarm infrastructure:
// 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();// Add security layer to consensus protocols const securityManager = new SecurityManager(); await securityManager.generateDistributedKeys(participants, threshold); const secureConsensus = new SecureConsensusWrapper( byzantineConsensus, securityManager, );
// 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);
// 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.
Advanced code quality analysis agent for comprehensive code reviews and improvements
Advanced code quality analysis agent for comprehensive code reviews and improvements
Expert agent for system architecture design, patterns, and high-level technical decisions
Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects,…
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Implements Conflict-free Replicated Data Types for eventually consistent state synchronization
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…