Files
ruflo/README.md
T

7.3 KiB

🌊 Claude-Flow: Enterprise AI Agent Orchestration Platform

NPM Version License Build Status

Enterprise-grade AI agent orchestration platform with 54+ specialized agents, swarm intelligence, and 87 MCP tools for revolutionary AI-powered development workflows.

📦 Installation

Prerequisites

  • Node.js ≥ 20.0.0
  • npm ≥ 9.0.0
  • Claude Code (required for full functionality)

Quick Install

# Install globally
npm install -g claude-flow@alpha

# Or use npx (recommended)
npx claude-flow@alpha --help

# Initialize configuration
npx claude-flow@alpha init --force

⚙️ Configuration

Configuration File (.claude-flow/config.json)

{
  "orchestrator": {
    "maxConcurrentAgents": 100,
    "taskQueueSize": 1000,
    "defaultTopology": "mesh"
  },
  "memory": {
    "backend": "sqlite",
    "cacheSizeMB": 256,
    "compressionEnabled": true
  },
  "providers": {
    "anthropic": {
      "apiKey": "YOUR_API_KEY",
      "model": "claude-3-sonnet",
      "temperature": 0.7
    }
  },
  "hooks": {
    "enabled": true,
    "autoFormat": true,
    "notifications": true
  }
}

Environment Variables

# Core configuration
export CLAUDE_FLOW_DEBUG=true
export CLAUDE_FLOW_LOG_LEVEL=info
export CLAUDE_FLOW_DATA_DIR=./data

# API keys
export CLAUDE_API_KEY=your_api_key
export OPENAI_API_KEY=your_api_key

# Performance tuning
export CLAUDE_FLOW_MAX_AGENTS=50
export CLAUDE_FLOW_MEMORY_LIMIT=512

🚀 Usage Instructions

Basic Commands

# Simple task execution
npx claude-flow@alpha swarm "build a REST API with authentication"

# Complex project coordination
npx claude-flow@alpha hive-mind spawn "enterprise microservices" --claude

# SPARC development mode
npx claude-flow@alpha sparc tdd "user management system"

Swarm Intelligence Operations

# Initialize swarm with topology
npx claude-flow@alpha swarm init --topology mesh

# Spawn agents for task
npx claude-flow@alpha swarm spawn "build microservices" --agents 8

# Monitor swarm progress
npx claude-flow@alpha swarm status --real-time

# Optimize swarm performance
npx claude-flow@alpha swarm optimize --auto-scale

SPARC Development Environment

# List all modes
npx claude-flow@alpha sparc modes

# Test-Driven Development
npx claude-flow@alpha sparc tdd "payment processing"

# Architecture-first development
npx claude-flow@alpha sparc architecture "microservices design"

# Full pipeline execution
npx claude-flow@alpha sparc pipeline "complete feature"

# Parallel mode execution
npx claude-flow@alpha sparc batch spec,architecture,code "user system"

Memory Management

# Store memory entry
npx claude-flow@alpha memory store "project-context" "API design patterns"

# Query memory
npx claude-flow@alpha memory query "authentication" --namespace auth

# View memory statistics
npx claude-flow@alpha memory stats

# Export memory for backup
npx claude-flow@alpha memory export --format json > backup.json

MCP Server Integration

# Start MCP server
npx claude-flow@alpha mcp start

# Check server status
npx claude-flow@alpha mcp status

# List available tools
npx claude-flow@alpha mcp tools

GitHub Integration

# Setup GitHub integration
npx claude-flow@alpha github init

# Manage pull requests
npx claude-flow@alpha github pr-manager "review and merge"

# Track issues
npx claude-flow@alpha github issue-tracker "analyze bugs"

# Coordinate releases
npx claude-flow@alpha github release-manager "v2.0.0"

🤖 Agent Types Overview

Development Agents

  • coder - Code generation and refactoring
  • reviewer - Code reviews and best practices
  • tester - Unit and integration testing
  • architect - System design and patterns
  • debugger - Bug fixing and optimization

Coordination Agents

  • planner - Strategic planning and roadmaps
  • coordinator - Task management and scheduling
  • monitor - Performance tracking and metrics
  • optimizer - Resource and cost optimization

Specialized Agents

  • backend-dev - Server and API development
  • mobile-dev - React Native mobile apps
  • ml-developer - Machine learning models
  • security-analyst - Security assessments
  • devops-engineer - CI/CD and infrastructure

View all 54+ agents →

🐝 Swarm Topologies

  • Centralized (Queen-Led) - Single point of control for sequential tasks
  • Distributed (Multi-Leader) - Fault-tolerant with parallel execution
  • Mesh (Peer-to-Peer) - Direct communication, no single failure point
  • Hierarchical (Tree) - Multi-level coordination for complex projects

📊 Performance Metrics

Metric Score Industry Average
SWE-Bench 84.8% 45-60%
Task Completion 96.3% 70-80%
Speed Improvement 2.8-4.4x 1.5-2x
Memory Efficiency 87% 60-70%
Fault Recovery 99.2% 85-90%

🔒 Security Features

  • JWT Authentication - Token-based API security
  • Role-Based Access Control - Granular permissions
  • Input Validation - Schema-based validation
  • Rate Limiting - API throttling and protection
  • Encryption - Data encryption at rest and in transit
  • Audit Logging - Comprehensive activity tracking

📚 Documentation

Core Documentation

Tutorials

🧪 Testing

# Run all tests
npm test

# Run specific test suites
npm run test:unit
npm run test:integration
npm run test:e2e

# Generate coverage report
npm run test:coverage

# Run benchmarks
npm run test:benchmark

🚀 Deployment

Docker

# Build image
docker build -t claude-flow .

# Run container
docker run -d -p 3000:3000 \
  -e CLAUDE_API_KEY=your_key \
  claude-flow

Kubernetes

See deployment guide for detailed K8s configurations.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

# Clone repository
git clone https://github.com/ruvnet/claude-flow.git
cd claude-flow

# Install dependencies
npm install

# Run development mode
npm run dev

# Run tests
npm test

# Build project
npm run build

📮 Support

📝 License

Claude-Flow is open source software licensed under the MIT License.


Built with ❤️ by the Claude-Flow Team