Back to Ruview

Claude Flow V3 - Complete Capabilities Reference

.claude-flow/CAPABILITIES.md

0.7.012.7 KB
Original Source

Claude Flow V3 - Complete Capabilities Reference

Generated: 2026-02-28T16:04:10.839Z Full documentation: https://github.com/ruvnet/claude-flow

šŸ“‹ Table of Contents

  1. Overview
  2. Swarm Orchestration
  3. Available Agents (60+)
  4. CLI Commands (26 Commands, 140+ Subcommands)
  5. Hooks System (27 Hooks + 12 Workers)
  6. Memory & Intelligence (RuVector)
  7. Hive-Mind Consensus
  8. Performance Targets
  9. Integration Ecosystem

Overview

Claude Flow V3 is a domain-driven design architecture for multi-agent AI coordination with:

  • 15-Agent Swarm Coordination with hierarchical and mesh topologies
  • HNSW Vector Search - 150x-12,500x faster pattern retrieval
  • SONA Neural Learning - Self-optimizing with <0.05ms adaptation
  • Byzantine Fault Tolerance - Queen-led consensus mechanisms
  • MCP Server Integration - Model Context Protocol support

Current Configuration

SettingValue
Topologyhierarchical-mesh
Max Agents15
Memory Backendhybrid
HNSW IndexingEnabled
Neural LearningEnabled
LearningBridgeEnabled (SONA + ReasoningBank)
Knowledge GraphEnabled (PageRank + Communities)
Agent ScopesEnabled (project/local/user)

Swarm Orchestration

Topologies

TopologyDescriptionBest For
hierarchicalQueen controls workers directlyAnti-drift, tight control
meshFully connected peer networkDistributed tasks
hierarchical-meshV3 hybrid (recommended)10+ agents
ringCircular communicationSequential workflows
starCentral coordinatorSimple coordination
adaptiveDynamic based on loadVariable workloads

Strategies

  • balanced - Even distribution across agents
  • specialized - Clear roles, no overlap (anti-drift)
  • adaptive - Dynamic task routing

Quick Commands

bash
# Initialize swarm
npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized

# Check status
npx @claude-flow/cli@latest swarm status

# Monitor activity
npx @claude-flow/cli@latest swarm monitor

Available Agents

Core Development (5)

coder, reviewer, tester, planner, researcher

V3 Specialized (4)

security-architect, security-auditor, memory-specialist, performance-engineer

Swarm Coordination (5)

hierarchical-coordinator, mesh-coordinator, adaptive-coordinator, collective-intelligence-coordinator, swarm-memory-manager

Consensus & Distributed (7)

byzantine-coordinator, raft-manager, gossip-coordinator, consensus-builder, crdt-synchronizer, quorum-manager, security-manager

Performance & Optimization (5)

perf-analyzer, performance-benchmarker, task-orchestrator, memory-coordinator, smart-agent

GitHub & Repository (9)

github-modes, pr-manager, code-review-swarm, issue-tracker, release-manager, workflow-automation, project-board-sync, repo-architect, multi-repo-swarm

SPARC Methodology (6)

sparc-coord, sparc-coder, specification, pseudocode, architecture, refinement

Specialized Development (8)

backend-dev, mobile-dev, ml-developer, cicd-engineer, api-docs, system-architect, code-analyzer, base-template-generator

Testing & Validation (2)

tdd-london-swarm, production-validator

Agent Routing by Task

Task TypeRecommended AgentsTopology
Bug Fixresearcher, coder, testermesh
New Featurecoordinator, architect, coder, tester, reviewerhierarchical
Refactoringarchitect, coder, reviewermesh
Performanceresearcher, perf-engineer, coderhierarchical
Securitysecurity-architect, auditor, reviewerhierarchical
Docsresearcher, api-docsmesh

CLI Commands

Core Commands (12)

CommandSubcommandsDescription
init4Project initialization
agent8Agent lifecycle management
swarm6Multi-agent coordination
memory11AgentDB with HNSW search
mcp9MCP server management
task6Task assignment
session7Session persistence
config7Configuration
status3System monitoring
workflow6Workflow templates
hooks17Self-learning hooks
hive-mind6Consensus coordination

Advanced Commands (14)

CommandSubcommandsDescription
daemon5Background workers
neural5Pattern training
security6Security scanning
performance5Profiling & benchmarks
providers5AI provider config
plugins5Plugin management
deployment5Deploy management
embeddings4Vector embeddings
claims4Authorization
migrate5V2→V3 migration
process4Process management
doctor1Health diagnostics
completions4Shell completions

Example Commands

bash
# Initialize
npx @claude-flow/cli@latest init --wizard

# Spawn agent
npx @claude-flow/cli@latest agent spawn -t coder --name my-coder

# Memory operations
npx @claude-flow/cli@latest memory store --key "pattern" --value "data" --namespace patterns
npx @claude-flow/cli@latest memory search --query "authentication"

# Diagnostics
npx @claude-flow/cli@latest doctor --fix

Hooks System

27 Available Hooks

Core Hooks (6)

HookDescription
pre-editContext before file edits
post-editRecord edit outcomes
pre-commandRisk assessment
post-commandCommand metrics
pre-taskTask start + agent suggestions
post-taskTask completion learning

Session Hooks (4)

HookDescription
session-startStart/restore session
session-endPersist state
session-restoreRestore previous
notifyCross-agent notifications

Intelligence Hooks (5)

HookDescription
routeOptimal agent routing
explainRouting decisions
pretrainBootstrap intelligence
build-agentsGenerate configs
transferPattern transfer

Coverage Hooks (3)

HookDescription
coverage-routeCoverage-based routing
coverage-suggestImprovement suggestions
coverage-gapsGap analysis

12 Background Workers

WorkerPriorityPurpose
ultralearnnormalDeep knowledge
optimizehighPerformance
consolidatelowMemory consolidation
predictnormalPredictive preload
auditcriticalSecurity
mapnormalCodebase mapping
preloadlowResource preload
deepdivenormalDeep analysis
documentnormalAuto-docs
refactornormalSuggestions
benchmarknormalBenchmarking
testgapsnormalCoverage gaps

Memory & Intelligence

RuVector Intelligence System

  • SONA: Self-Optimizing Neural Architecture (<0.05ms)
  • MoE: Mixture of Experts routing
  • HNSW: 150x-12,500x faster search
  • EWC++: Prevents catastrophic forgetting
  • Flash Attention: 2.49x-7.47x speedup
  • Int8 Quantization: 3.92x memory reduction

4-Step Intelligence Pipeline

  1. RETRIEVE - HNSW pattern search
  2. JUDGE - Success/failure verdicts
  3. DISTILL - LoRA learning extraction
  4. CONSOLIDATE - EWC++ preservation

Self-Learning Memory (ADR-049)

ComponentStatusDescription
LearningBridgeāœ… EnabledConnects insights to SONA/ReasoningBank neural pipeline
MemoryGraphāœ… EnabledPageRank knowledge graph + community detection
AgentMemoryScopeāœ… Enabled3-scope agent memory (project/local/user)

LearningBridge - Insights trigger learning trajectories. Confidence evolves: +0.03 on access, -0.005/hour decay. Consolidation runs the JUDGE/DISTILL/CONSOLIDATE pipeline.

MemoryGraph - Builds a knowledge graph from entry references. PageRank identifies influential insights. Communities group related knowledge. Graph-aware ranking blends vector + structural scores.

AgentMemoryScope - Maps Claude Code 3-scope directories:

  • project: <gitRoot>/.claude/agent-memory/<agent>/
  • local: <gitRoot>/.claude/agent-memory-local/<agent>/
  • user: ~/.claude/agent-memory/<agent>/

High-confidence insights (>0.8) can transfer between agents.

Memory Commands

bash
# Store pattern
npx @claude-flow/cli@latest memory store --key "name" --value "data" --namespace patterns

# Semantic search
npx @claude-flow/cli@latest memory search --query "authentication"

# List entries
npx @claude-flow/cli@latest memory list --namespace patterns

# Initialize database
npx @claude-flow/cli@latest memory init --force

Hive-Mind Consensus

Queen Types

TypeRole
Strategic QueenLong-term planning
Tactical QueenExecution coordination
Adaptive QueenDynamic optimization

Worker Types (8)

researcher, coder, analyst, tester, architect, reviewer, optimizer, documenter

Consensus Mechanisms

MechanismFault ToleranceUse Case
byzantinef < n/3 faultyAdversarial
raftf < n/2 failedLeader-based
gossipEventually consistentLarge scale
crdtConflict-freeDistributed
quorumConfigurableFlexible

Hive-Mind Commands

bash
# Initialize
npx @claude-flow/cli@latest hive-mind init --queen-type strategic

# Status
npx @claude-flow/cli@latest hive-mind status

# Spawn workers
npx @claude-flow/cli@latest hive-mind spawn --count 5 --type worker

# Consensus
npx @claude-flow/cli@latest hive-mind consensus --propose "task"

Performance Targets

MetricTargetStatus
HNSW Search150x-12,500x fasterāœ… Implemented
Memory Reduction50-75%āœ… Implemented (3.92x)
SONA IntegrationPattern learningāœ… Implemented
Flash Attention2.49x-7.47xšŸ”„ In Progress
MCP Response<100msāœ… Achieved
CLI Startup<500msāœ… Achieved
SONA Adaptation<0.05msšŸ”„ In Progress
Graph Build (1k)<200msāœ… 2.78ms (71.9x headroom)
PageRank (1k)<100msāœ… 12.21ms (8.2x headroom)
Insight Recording<5ms/eachāœ… 0.12ms (41x headroom)
Consolidation<500msāœ… 0.26ms (1,955x headroom)
Knowledge Transfer<100msāœ… 1.25ms (80x headroom)

Integration Ecosystem

Integrated Packages

PackageVersionPurpose
agentic-flow3.0.0-alpha.1Core coordination + ReasoningBank + Router
agentdb3.0.0-alpha.10Vector database + 8 controllers
@ruvector/attention0.1.3Flash attention
@ruvector/sona0.1.5Neural learning

Optional Integrations

PackageCommand
ruv-swarmnpx ruv-swarm mcp start
flow-nexusnpx flow-nexus@latest mcp start
agentic-jujutsunpx agentic-jujutsu@latest

MCP Server Setup

bash
# Add Claude Flow MCP
claude mcp add claude-flow -- npx -y @claude-flow/cli@latest

# Optional servers
claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start
claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start

Quick Reference

Essential Commands

bash
# Setup
npx @claude-flow/cli@latest init --wizard
npx @claude-flow/cli@latest daemon start
npx @claude-flow/cli@latest doctor --fix

# Swarm
npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8
npx @claude-flow/cli@latest swarm status

# Agents
npx @claude-flow/cli@latest agent spawn -t coder
npx @claude-flow/cli@latest agent list

# Memory
npx @claude-flow/cli@latest memory search --query "patterns"

# Hooks
npx @claude-flow/cli@latest hooks pre-task --description "task"
npx @claude-flow/cli@latest hooks worker dispatch --trigger optimize

File Structure

.claude-flow/
ā”œā”€ā”€ config.yaml      # Runtime configuration
ā”œā”€ā”€ CAPABILITIES.md  # This file
ā”œā”€ā”€ data/            # Memory storage
ā”œā”€ā”€ logs/            # Operation logs
ā”œā”€ā”€ sessions/        # Session state
ā”œā”€ā”€ hooks/           # Custom hooks
ā”œā”€ā”€ agents/          # Agent configs
└── workflows/       # Workflow templates

Full Documentation: https://github.com/ruvnet/claude-flow Issues: https://github.com/ruvnet/claude-flow/issues