mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
3addedf4408038193afe41ead0225acef27245eb
…
…
…
…
astropy_fix
@ 17377b09f8
🔖 Task: review performance. @ruvnet ➜ /workspaces/claude-code-flow (swe-bench) $ swarm-bench swe-bench off...
claude-flow-wiki
@ 661f689c97
🔖 Task: review performance. @ruvnet ➜ /workspaces/claude-code-flow (swe-bench) $ swarm-bench swe-bench off...
…
…
🔖 Task: create detailed instructions in claude-flow-wiki create PR for litellm/ folder and nothing else. ...
…
…
…
…
🔖 Task: nimm die readme-new.md und bau die mal so um, dass es eine kompakte readme ist. sprich oben installa...
🌊 Claude-Flow: Enterprise AI Agent Orchestration Platform
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 refactoringreviewer- Code reviews and best practicestester- Unit and integration testingarchitect- System design and patternsdebugger- Bug fixing and optimization
Coordination Agents
planner- Strategic planning and roadmapscoordinator- Task management and schedulingmonitor- Performance tracking and metricsoptimizer- Resource and cost optimization
Specialized Agents
backend-dev- Server and API developmentmobile-dev- React Native mobile appsml-developer- Machine learning modelssecurity-analyst- Security assessmentsdevops-engineer- CI/CD and infrastructure
🐝 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
- Complete User Guide
- Architecture Overview
- Agent Reference
- Swarm Coordination
- SPARC Methodology
- MCP Tools Reference
- API 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
Languages
TypeScript
83.7%
JavaScript
11.8%
Shell
2.6%
Svelte
0.8%
Rust
0.6%
Other
0.3%