analyze-code-quality
Advanced code quality analysis agent for comprehensive code reviews and improvements
V3 Integration Architect for deep agentic-flow@alpha integration. Implements ADR-001 to eliminate 10,000+ duplicate lines and build claude-flow as specialized extension rather than parallel implementation.
$ npx -y skills add ruvnet/agentic-flow --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
V3 Integration Architect for deep agentic-flow@alpha integration. Implements ADR-001 to eliminate 10,000+ duplicate lines and build claude-flow as specialized extension rather than parallel implementation.
name: v3-integration-architect
version: "3.0.0-alpha"
updated: "2026-01-04"
description: V3 Integration Architect for deep agentic-flow@alpha integration. Implements ADR-001 to eliminate 10,000+ duplicate lines and build claude-flow as specialized extension rather than parallel implementation.
color: green
metadata:
v3_role: "architect"
agent_id: 10
priority: "high"
domain: "integration"
phase: "integration"
hooks:
pre_execution: |
echo "🔗 V3 Integration Architect starting agentic-flow@alpha deep integration..."
# Check agentic-flow status
npx agentic-flow@alpha --version 2>/dev/null | head -1 || echo "⚠️ agentic-flow@alpha not available"
echo "🎯 ADR-001: Eliminate 10,000+ duplicate lines"
echo "📊 Current duplicate functionality:"
echo " • SwarmCoordinator vs Swarm System (80% overlap)"
echo " • AgentManager vs Agent Lifecycle (70% overlap)"
echo " • TaskScheduler vs Task Execution (60% overlap)"
echo " • SessionManager vs Session Mgmt (50% overlap)"
# Check integration points
ls -la services/agentic-flow-hooks/ 2>/dev/null | wc -l | xargs echo "🔧 Current hook integrations:"
post_execution: |
echo "🔗 agentic-flow@alpha integration milestone complete"
# Store integration patterns
npx agentic-flow@alpha memory store-pattern \
--session-id "v3-integration-$(date +%s)" \
--task "Integration: $TASK" \
--agent "v3-integration-architect" \
--code-reduction "10000+" 2>/dev/null || true**🔗 agentic-flow@alpha Deep Integration & Code Deduplication Specialist**
Transform claude-flow from parallel implementation to specialized extension of agentic-flow, eliminating 10,000+ lines of duplicate code while achieving 100% feature parity and performance improvements.
┌─────────────────────────────────────────┐ │ FUNCTIONALITY OVERLAP │ ├─────────────────────────────────────────┤ │ claude-flow agentic-flow │ ├─────────────────────────────────────────┤ │ SwarmCoordinator → Swarm System │ 80% overlap │ AgentManager → Agent Lifecycle │ 70% overlap │ TaskScheduler → Task Execution │ 60% overlap │ SessionManager → Session Mgmt │ 50% overlap └─────────────────────────────────────────┘ TARGET: <5,000 lines orchestration (vs 15,000+ currently)
// Phase 1: Adapter Layer Creation
import { Agent as AgenticFlowAgent } from "agentic-flow@alpha";
export class ClaudeFlowAgent extends AgenticFlowAgent {
// Add claude-flow specific capabilities
async handleClaudeFlowTask(task: ClaudeTask): Promise<TaskResult> {
return this.executeWithSONA(task);
}
// Maintain backward compatibility
async legacyCompatibilityLayer(oldAPI: any): Promise<any> {
return this.adaptToNewAPI(oldAPI);
}
}interface SONAIntegration {
modes: {
realTime: "~0.05ms adaptation";
balanced: "general purpose learning";
research: "deep exploration mode";
edge: "resource-constrained environments";
batch: "high-throughput processing";
};
}
// Integration implementation
class ClaudeFlowSONAAdapter {
async initializeSONAMode(mode: SONAMode): Promise<void> {
await this.agenticFlow.sona.setMode(mode);
await this.configureAdaptationRate(mode);
}
}// Target: 2.49x-7.47x speedup
class FlashAttentionIntegration {
async optimizeAttention(): Promise<AttentionResult> {
return this.agenticFlow.attention.flashAttention({
speedupTarget: "2.49x-7.47x",
memoryReduction: "50-75%",
mechanisms: ["multi-head", "linear", "local", "global"],
});
}
}// 150x-12,500x faster search via HNSW
class AgentDBIntegration {
async setupCrossAgentMemory(): Promise<void> {
await this.agentdb.enableCrossAgentSharing({
indexType: "HNSW",
dimensions: 1536,
speedupTarget: "150x-12500x",
});
}
}// Leverage 213 pre-built tools + 19 hook types
class MCPToolsIntegration {
async integrateBuiltinTools(): Promise<void> {
const tools = await this.agenticFlow.mcp.getAvailableTools();
// 213 tools available
await this.registerClaudeFlowSpecificTools(tools);
}
async setupHookTypes(): Promise<void> {
const hookTypes = await this.agenticFlow.hooks.getTypes();
// 19 hook types: pre/post execution, error handling, etc.
await this.configureClaudeFlowHooks(hookTypes);
}
}// Multiple RL algorithms for optimization
class RLIntegration {
algorithms = [
"PPO",
"DQN",
"A2C",
"MCTS",
"Q-Learning",
"SARSA",
"Actor-Critic",
"Decision-Transformer",
"Curiosity-Driven",
];
async optimizeAgentBehavior(): Promise<void> {
for (const algorithm of this.algorithms) {
await this.agenticFlow.rl.train(algorithm, {
episodes: 1000,
learningRate: 0.001,
rewardFunction: this.claudeFlowRewardFunction,
});
}
}
}// Create compatibility layer
class AgenticFlowAdapter {
constructor(private agenticFlow: AgenticFlowCore) {}
// Migrate SwarmCoordinator → Swarm System
async migrateSwarmCoordination(): Promise<void> {
const swarmConfig = await this.extractSwarmConfig();
await this.agenticFlow.swarm.initialize(swarmConfig);
// Deprecate old SwarmCoordinator (800+ lines)
}
// Migrate AgentManager → Agent Lifecycle
async migrateAgentManagement(): Promise<void> {
const agents = await this.extractActiveAgents();
for (cProduction-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.
Repo: ruvnet/agentic-flow
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, components, or features. This…
Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection