Skip to content

armgit / ruflo

Public Imported from GitHub
0

๐ŸŒŠ The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Resolve merge conflict in README.md - integrate v2.0.0 Alpha section with existing v1.0.71 content

rUv1d7d91d8ddee
diff --cc README.md
index 934765ccab,283fef50b8..54729cb7bf
--- a/README.md
+++ b/README.md
@@@ -12,1098 -11,369 +11,416 @@@
</div>
+---
+
+# ๐Ÿš€ **Claude-Flow v2.0.0 Alpha - Next Generation AI Orchestration**
+
+## ๐ŸŒŸ **Experience the Future of AI Development**
+
+**Claude-Flow v2.0.0** represents a revolutionary leap in AI-powered development orchestration. Built from the ground up with enterprise-grade architecture, advanced swarm intelligence, and seamless Claude Code integration.
+
+> ๐Ÿ”ฅ **Revolutionary Features**: Hive-Mind AI coordination, 87 MCP tools, Neural pattern recognition, and Distributed memory systems
+
+## โšก **Quick Start - Try v2.0.0 Alpha Now**
+
+### ๐ŸŽฏ **Test the Alpha in 4 Commands**
+
+```bash
+# 1. Initialize with enhanced MCP setup
+npx --y claude-flow@alpha init --force
+
+# 2. Explore all capabilities
+npx --y claude-flow@alpha --help
+
+# 3. Launch the interactive hive-mind wizard
+npx --y claude-flow@alpha hive-mind wizard
+
+# 4. Build something amazing with AI coordination
+npx claude-flow@alpha hive-mind spawn "build me something amazing" --claude
+```
+
+### ๐Ÿง  **What Makes v2.0.0 Revolutionary**
+
+- **๐Ÿ Hive-Mind Intelligence**: Queen-led coordination with specialized worker AI agents
+- **โšก 87 MCP Tools**: Complete Neural, Memory, GitHub, Workflow, and System tools
+- **๐Ÿง  Neural Pattern Recognition**: Adaptive learning and cognitive behavior analysis
+- **๐Ÿ’พ Distributed Memory**: Cross-session persistence with namespace management
+- **๐Ÿ”„ Auto-MCP Setup**: Automatic claude-flow and ruv-swarm MCP server integration
+- **๐Ÿ›ก๏ธ Seamless Permissions**: Auto-uses `--dangerously-skip-permissions` for smooth execution
+- **๐ŸŽฏ Enhanced SPARC**: Advanced specification, architecture, and refinement workflows
+
+### ๐Ÿ”ง **Alpha Testing & Development**
+
+- **๐Ÿ› Bug Reports**: Found issues? Report them in [GitHub Issues](https://github.com/ruvnet/claude-code-flow/issues)
+- **๐Ÿ› ๏ธ Building from Source**: Use the [`claude-flow-v2.0.0`](https://github.com/ruvnet/claude-code-flow/tree/claude-flow-v2.0.0) branch for latest development
+- **๐Ÿ“‹ Alpha Features**: Currently testing hive-mind coordination, enhanced MCP integration, and neural pattern systems
+- **๐Ÿš€ Production Ready**: Stable features remain available in the main v1.0.x release
+
+---
+
## ๐ŸŽฏ **Transform Your Development Workflow**
-**Claude-Flow** is the ultimate orchestration platform that revolutionizes how you work with Claude Code. Coordinate **multiple AI agents** simultaneously, manage complex workflows, and build sophisticated applications with AI-powered development.
+**Claude-Flow** is the ultimate AI orchestration platform that revolutionizes how you work with Claude Code. Coordinate **intelligent AI swarms** working simultaneously on different aspects of your project while sharing knowledge through distributed memory systems.
-> ๐Ÿ”ฅ **One command to rule them all**: `npx claude-flow@latest init --sparc` - Deploy a full AI agent coordination system in seconds!
+> ๐Ÿ”ฅ **One command to rule them all**: Deploy enterprise-grade AI coordination in seconds!
- ## ๐ŸŽ‰ **What's New in v1.0.49**
-
- ### ๐Ÿš€ **Major Release: Enterprise-Grade Swarm System**
- - **๐Ÿ Advanced Swarm Orchestration**: Complete multi-agent coordination system with timeout-free execution
- - **๐Ÿง  Distributed Memory Sharing**: Cross-agent knowledge sharing with persistent state management
- - **โšก Intelligent Task Scheduling**: 7+ scheduling algorithms with dependency resolution and load balancing
- - **๐Ÿ”„ Work Stealing & Load Balancing**: Automatic workload distribution across agents
- - **๐Ÿ›ก๏ธ Circuit Breaker Patterns**: Enterprise fault tolerance with retry and recovery mechanisms
- - **๐Ÿ“Š Real-Time Monitoring**: Comprehensive metrics, health checks, and performance tracking
- - **๐Ÿ”’ Security & Validation**: Encryption, access control, audit logging, and input validation
- - **๐ŸŽฏ Comprehensive CLI**: 30+ options for swarm configuration and management
-
- ### ๐Ÿ†• **Enhanced User Experience**
- - **๐Ÿš€ Text-Based Process Management UI**: New `--ui` flag for `start` command provides interactive process control
- - **๐ŸŽฏ Simplified SPARC Syntax**: `npx claude-flow sparc "build app"` (no more double sparc!)
- - **โšก Auto-Skip Permissions**: `--dangerously-skip-permissions` by default (use `--enable-permissions` to restore prompts)
- - **๐Ÿค– Non-Interactive Mode**: JSON output with `--non-interactive` flag for automation
- - **๐Ÿ“ Directory Safety**: Enhanced guidance to prevent files in node_modules
- - **๐ŸŽฏ 17+ SPARC Modes**: Including new `sparc-orchestrator` for complex workflows
- - **๐Ÿ“‚ Local Executable**: `init` now creates `./claude-flow` wrapper to ensure correct working directory
- - **๐Ÿ”ง Fixed SPARC Path Resolution**: `.roomodes` now correctly found in project directory
- - **๐Ÿ“ Claude Code Slash Commands**: `init --sparc` now creates `.claude/commands/` with slash commands for all SPARC modes
- - **๐Ÿ—๏ธ Modular Init Structure**: Refactored init command into clean, maintainable modules for better extensibility
-
- ### ๐Ÿ **Swarm System Features**
- - **Timeout-Free Execution**: Background Claude processes that never timeout
- - **Agent Specialization**: 9 agent types (coordinator, developer, researcher, analyzer, tester, reviewer, documenter, monitor, specialist)
- - **Multiple Coordination Modes**: Centralized, distributed, hierarchical, mesh, hybrid
- - **Advanced Scheduling**: FIFO, priority, deadline, shortest-job, critical-path, resource-aware, adaptive
- - **Fault Tolerance**: Retry, redundancy, checkpoint, circuit-breaker, bulkhead, timeout, graceful-degradation
- - **Communication Patterns**: Direct, broadcast, publish-subscribe, request-response, event-driven, gossip, hierarchical
-
- ### ๐ŸŒŸ **Why Claude-Flow?**
-
- - **๐Ÿš€ 10x Faster Development**: Parallel AI agent execution with intelligent task distribution
- - **๐Ÿง  Persistent Memory**: Agents learn and share knowledge across sessions
- - **โšก SPARC Methodology**: Systematic development with Specification โ†’ Pseudocode โ†’ Architecture โ†’ Refinement โ†’ Completion
- - **๐Ÿ”„ Zero Configuration**: Works out-of-the-box with sensible defaults
- - **๐Ÿค– VSCode Native**: Seamless integration with your favorite IDE
- - **๐Ÿ”’ Enterprise Ready**: Production-grade security, monitoring, and scaling
- - **๐ŸŒ MCP Compatible**: Full Model Context Protocol support for tool integration
- - **๐Ÿ Swarm Intelligence**: Advanced multi-agent coordination with timeout-free execution
-
- ## ๐Ÿ“ฆ **Installation**
-
- ### ๐Ÿš€ Get started in 30 seconds
- ```bash
- # Initialize with SPARC development environment
- Step 1. Install Claude Code: ``` npm install -g @anthropic-ai/claude ```
- Step 2. ``` npx -y claude-flow@latest init --sparc ```
-
- # Use the local wrapper after init
- ./claude-flow sparc "build and test my project" # SPARC development
- ./claude-flow swarm "Build a REST API" --strategy development --monitor # Swarm coordination
- Optional: ./claude-flow start --ui # Interactive process management
- ```
-
- ```bash
- # โšก SPARC Development Workflow (NEW: Simplified!)
- ./claude-flow claude-flow sparc "build a todo app" # Orchestrator mode (default)
- ./claude-flow claude-flow sparc modes # List 17+ development modes
- ./claude-flow claude-flow sparc tdd "user auth" # Run TDD workflow
-
- # ๐Ÿ Advanced Swarm System (NEW!)
- ./claude-flow swarm "Build a REST API" --strategy development --parallel --monitor
- ./claude-flow swarm "Research AI trends" --strategy research --distributed --ui
- ./claude-flow swarm "Optimize performance" --strategy optimization --background
-
- # ๐ŸŽฏ Run specific SPARC modes
- npx claude-flow sparc run code "implement API" # Code generation
- npx claude-flow sparc run tdd "auth tests" # Test-driven development
- npx claude-flow sparc run architect "system" # Architecture design
-
- # ๐Ÿค– Spawn a research team
- ./claude-flow agent spawn researcher --name "Senior Researcher"
- ./claude-flow agent spawn analyst --name "Data Analyst"
- ./claude-flow agent spawn implementer --name "Code Developer"
-
- # ๐Ÿ“‹ Create and execute tasks
- ./claude-flow task create research "Research AI optimization techniques"
- ./claude-flow task list
-
- # ๐Ÿ“Š Monitor in real-time
- ./claude-flow status
- ./claude-flow monitor
- ```
-
- ## ๐Ÿ—๏ธ **Core Features**
-
- <table>
- <tr>
- <td width="33%" align="center">
-
- ### ๐Ÿ **Advanced Swarm Orchestration**
- Enterprise-grade multi-agent coordination with timeout-free execution, distributed memory sharing, and intelligent load balancing across specialized AI agents.
-
- </td>
- <td width="33%" align="center">
-
- ### ๐Ÿง  **Intelligent Memory Bank**
- Advanced CRDT-based memory system with SQLite performance and Markdown readability. Agents learn and share knowledge across sessions with cross-agent collaboration.
-
- </td>
- <td width="33%" align="center">
-
- ### โšก **SPARC Development**
- Systematic AI-assisted development using Specification โ†’ Pseudocode โ†’ Architecture โ†’ Refinement โ†’ Completion methodology with 17+ specialized modes.
-
- </td>
- </tr>
- <tr>
- <td width="33%" align="center">
-
- ### ๐ŸŽฏ **Smart Task Scheduling**
- 7+ scheduling algorithms with dependency resolution, deadlock detection, work stealing, load balancing, and automatic retry with exponential backoff.
-
- </td>
- <td width="33%" align="center">
-
- ### ๐Ÿ”’ **Enterprise Security**
- Token-based authentication, encryption, rate limiting, circuit breakers, audit logging, access control, and role-based permissions.
-
- </td>
- <td width="33%" align="center">
-
- ### ๐ŸŒ **MCP Integration**
- Full Model Context Protocol support with stdio and HTTP transports, enabling seamless integration with external tools and services.
-
- </td>
- </tr>
- </table>
-
- ## โšก **Quick Start**
-
- ### ๐ŸŽฏ **Option 1: NPX (Recommended)**
- ```bash
- # Install and run in one command
- npx claude-flow
-## ๐Ÿš€ **What's New in v1.0.72**
++## ๐Ÿš€ **What's New in v1.0.71**
- # Or install globally for repeated use
- npm install -g claude-flow
- claude-flow --version
- ```
-
- ### ๐Ÿฆ• **Option 2: Deno (For Developers)**
- ```bash
- # Clone and run from source
- git clone https://github.com/ruvnet/claude-code-flow.git
- cd claude-code-flow
- ./bin/claude-flow --version
- ```
-
- ### ๐Ÿ”ง **Option 3: From Source (For Contributors)**
- ```bash
- git clone https://github.com/ruvnet/claude-code-flow.git
- cd claude-code-flow
- deno task build && deno task install
- ```
+ ### ๐ŸŽฏ **Claude Code Settings Optimization**
+ - **โœ… Auto-Settings Creation**: `init` command now creates `.claude/settings.json` with automation-optimized settings
+ - **โœ… Extended Timeouts**: 5-minute default, 10-minute max for Bash commands (300s/600s)
+ - **โœ… Full Tool Permissions**: All tools allowed with wildcards `(*)` for complete automation
+ - **โœ… Large Output Support**: 500KB character limit for handling extensive outputs
+ - **โœ… Automation Features**: Parallel execution, batch operations, and auto-save to memory enabled
- ## ๐Ÿ **Swarm System Usage**
-
- ### **๐Ÿš€ Basic Swarm Commands**
- ```bash
- # Initialize with swarm support
- npx claude-flow init --sparc
-
- # Start a basic development swarm
- ./claude-flow swarm "Build a REST API" --strategy development
-
- # Research-focused swarm with UI
- ./claude-flow swarm "Research AI trends" --strategy research --distributed --ui
-
- # Background optimization swarm
- ./claude-flow swarm "Optimize performance" --strategy optimization --background --monitor
-
- # Testing swarm with review
- ./claude-flow swarm "Test application" --strategy testing --review --verbose
- ```
-
- ### **๐ŸŽ›๏ธ Advanced Swarm Configuration**
- ```bash
- # Full-featured swarm with all options
- ./claude-flow swarm "Complex project development" \
- --strategy development \
- --mode distributed \
- --max-agents 10 \
- --parallel \
- --monitor \
- --review \
- --testing \
- --encryption \
- --verbose
+ ### ๐Ÿ”ง **Enhanced SPARC Integration**
+ - **โœ… Better Prompts**: SPARC and swarm prompts now emphasize batch tools and memory usage
+ - **โœ… Memory First**: All modes now save to memory after each step for better coordination
+ - **โœ… Agent Clarity**: Swarm prompts specify exact agent counts and immediate execution
+ - **โœ… Task Tracking**: Added visual progress indicators and task format to all prompts
+ - **โœ… Action-Oriented**: Changed from planning to immediate execution language
- # Dry run to see configuration
- ./claude-flow swarm "Test task" --dry-run --strategy development
+ ### ๐Ÿš€ **Developer Experience**
+ - **โœ… Zero Configuration**: Optimal settings applied automatically on init
+ - **โœ… Long Operations**: Support for extended running tasks without timeouts
+ - **โœ… Better Reliability**: Auto-accept for Claude Code warnings in swarm mode
+ - **โœ… Version Consistency**: All components updated to v1.0.72
- # Get comprehensive help
- ./claude-flow swarm --help
- ```
-
- ### **๐Ÿค– Swarm Agent Types**
- - **Coordinator**: Plans and delegates tasks to other agents
- - **Developer**: Writes code and implements solutions
- - **Researcher**: Gathers and analyzes information
- - **Analyzer**: Identifies patterns and generates insights
- - **Tester**: Creates and runs tests for quality assurance
- - **Reviewer**: Performs code and design reviews
- - **Documenter**: Creates documentation and guides
- - **Monitor**: Tracks performance and system health
- - **Specialist**: Domain-specific expert agents
-
- ### **๐Ÿ”„ Coordination Strategies**
- - **Centralized**: Single coordinator manages all agents (default)
- - **Distributed**: Multiple coordinators share management
- - **Hierarchical**: Tree structure with nested coordination
- - **Mesh**: Peer-to-peer agent collaboration
- - **Hybrid**: Mixed coordination strategies
-
- ### **๐Ÿ“Š Swarm Features**
- - **Timeout-Free Execution**: Background Claude processes that never timeout
- - **Work Stealing**: Automatic load balancing across agents
- - **Circuit Breakers**: Fault tolerance with automatic recovery
- - **Real-Time Monitoring**: Live metrics and progress tracking
- - **Distributed Memory**: Cross-agent knowledge sharing
- - **Quality Controls**: Configurable thresholds and validation
- - **Background Mode**: Long-running swarms with persistent state
- - **Interactive UI**: Terminal-based swarm management interface
-
- ## ๐Ÿ“š **Documentation**
-
- Comprehensive documentation is available to help you get the most out of Claude-Flow:
-
- - **[Getting Started Guide](./docs/01-getting-started.md)** - Quick setup and first steps
- - **[Architecture Overview](./docs/02-architecture-overview.md)** - System design and components
- - **[Configuration Guide](./docs/03-configuration-guide.md)** - Detailed configuration options
- - **[Agent Management](./docs/04-agent-management.md)** - Working with AI agents
- - **[Task Coordination](./docs/05-task-coordination.md)** - Task scheduling and workflows
- - **[Memory Bank Usage](./docs/06-memory-bank-usage.md)** - Persistent memory system
- - **[MCP Integration](./docs/07-mcp-integration.md)** - Model Context Protocol tools
- - **[Terminal Management](./docs/08-terminal-management.md)** - Terminal pooling and sessions
- - **[Swarm System Guide](./docs/09-swarm-system.md)** - Advanced multi-agent coordination
- - **[Troubleshooting](./docs/10-troubleshooting.md)** - Common issues and solutions
- - **[Advanced Usage](./docs/11-advanced-usage.md)** - Power user features
- - **[Claude Spawning](./docs/12-claude-spawning.md)** - Spawning Claude instances
- - **[CLI Reference](./docs/cli-reference.md)** - Complete command documentation
-
- ## ๐Ÿ’ก **Quick Start Guide**
-
- ### 1. **Initialize Claude Code Integration**
- ```bash
- # Basic init (without SPARC modes)
- npx claude-flow init
-
- # Recommended: Initialize with SPARC development modes
- npx claude-flow init --sparc
- ```
- The `--sparc` flag creates:
- - `CLAUDE.md` - SPARC-enhanced Claude Code configuration
- - `.claude/commands/` - Claude Code slash commands for all SPARC modes
- - `memory-bank.md` - Memory system documentation
- - `coordination.md` - Agent coordination documentation
- - `.roomodes` - SPARC development mode configurations
- - `.roo/` - SPARC templates and workflows
- - Memory folder structure with placeholders
- - `./claude-flow` - Local executable wrapper (use instead of npx)
-
- Claude Code slash commands available after init:
- - `/sparc` - Execute SPARC methodology workflows
- - `/sparc-<mode>` - Run specific SPARC modes (e.g., /sparc-architect)
- - `/claude-flow-help` - Show all claude-flow commands
- - `/claude-flow-memory` - Interact with memory system
- - `/claude-flow-swarm` - Coordinate multi-agent swarms
-
- ### 2. **Start the Orchestrator**
- ```bash
- # After init, use the local wrapper:
- ./claude-flow start
-
- # Or run as daemon
- ./claude-flow start --daemon
-
- # With interactive UI
- ./claude-flow start --ui
- ```
-
- ### 3. **Spawn Agents**
- ```bash
- # Spawn different agent types with specific capabilities
- ./claude-flow agent spawn researcher --name "Research Assistant" --priority 8
- ./claude-flow agent spawn implementer --name "Code Developer" --priority 7
- ./claude-flow agent spawn analyst --name "Data Analyst" --priority 6
- ./claude-flow agent spawn coordinator --name "Project Manager" --priority 9
-
- # List all active agents
- ./claude-flow agent list
+ ---
- # Get detailed information about an agent
- ./claude-flow agent info agent-123
- ```
+ ## โšก **Quick Start**
- ### 4. **Create and Manage Tasks**
+ ### ๐Ÿš€ **Instant Setup**
```bash
- # Create tasks with different priorities
- ./claude-flow task create research "Analyze authentication best practices" --priority 8
- ./claude-flow task create implementation "Build JWT authentication" --priority 9
- ./claude-flow task create analysis "Review security vulnerabilities" --priority 10
-
- # Create task with dependencies
- ./claude-flow task create implementation "Build user management" \
- --priority 7 --deps task-123,task-456
+ # Install and initialize with SPARC development environment
+ npx claude-flow@latest init --sparc
- # Assign tasks to agents
- ./claude-flow task assign task-123 agent-456
+ # Use the local wrapper (created by init)
+ ./claude-flow start --ui --port 3000
- # List all tasks
- ./claude-flow task list
- ./claude-flow task list --verbose # Show detailed task information
-
- # Check specific task status
- ./claude-flow task status task-123
-
- # Cancel a task
- ./claude-flow task cancel task-789
+ # Run SPARC commands
+ ./claude-flow sparc "build a REST API"
```
- ### 5. **Spawn Claude Instances** ๐Ÿ†•
+ ### ๐ŸŽ›๏ธ **SPARC Development Modes** (17 Specialized Agents)
```bash
- # Spawn Claude with enhanced Claude-Flow guidance
- ./claude-flow claude spawn "implement user authentication" --research --parallel
-
- # Backend-only mode with high coverage
- ./claude-flow claude spawn "create REST API" --mode backend-only --coverage 95
-
- # Frontend development with feature commits
- ./claude-flow claude spawn "build React components" --mode frontend-only --commit feature
-
- # Full stack with all options
- ./claude-flow claude spawn "build complete app" --research --parallel --coverage 90 --verbose
+ # List all available SPARC modes
+ ./claude-flow sparc modes
- # Execute workflow
- ./claude-flow claude batch workflow.json --dry-run
+ # Run specific development workflows
+ ./claude-flow sparc run coder "implement user authentication"
+ ./claude-flow sparc run architect "design microservice architecture"
+ ./claude-flow sparc tdd "create test suite for API"
```
- **Enhanced Claude Instances receive:**
- - Detailed Claude-Flow system guidance
- - Proper `npx claude-flow` command syntax
- - Mode-specific instructions (backend/frontend/api/full)
- - Memory bank operations with examples
- - Configuration-aware development guidance
-
- ### 6. **Monitor System Status**
- ```bash
- # Check system health
- ./claude-flow status
-
- # Real-time monitoring
- ./claude-flow monitor
+ ## ๐Ÿ—๏ธ **Core Features**
- # View MCP tools
- ./claude-flow mcp tools
- ```
+ ### ๐Ÿค– **Multi-Agent Orchestration**
+ - **Parallel Execution**: Run up to 10 agents concurrently with BatchTool
+ - **Smart Coordination**: Intelligent task distribution and load balancing
+ - **Memory Sharing**: Persistent knowledge bank across all agents
+ - **Real-time Monitoring**: Live dashboard for agent status and progress
- ## ๐Ÿš€ **SPARC Development Methodology**
+ ### ๐Ÿง  **SPARC Development Framework**
+ - **17 Specialized Modes**: Architect, Coder, TDD, Security, DevOps, and more
+ - **Workflow Orchestration**: Complete development lifecycle automation
+ - **Interactive & Non-interactive**: Flexible execution modes
+ - **Boomerang Pattern**: Iterative development with continuous refinement
- Claude-Flow integrates the **SPARC** (Specification, Pseudocode, Architecture, Refinement, Completion) methodology for systematic AI-assisted development:
+ ### ๐Ÿ“Š **Advanced Monitoring & Analytics**
+ - **System Health Dashboard**: Real-time metrics and performance tracking
+ - **Task Coordination**: Dependency management and conflict resolution
+ - **Terminal Pool Management**: Efficient resource utilization
+ - **Coverage Reports**: Comprehensive test and code coverage analysis
- ### **Available SPARC Modes**
- ```bash
- # List all development modes
- ./claude-flow sparc modes
+ ---
- # Key modes include:
- # ๐Ÿ—๏ธ architect - System design and architecture
- # ๐Ÿง  code - Clean, modular implementation
- # ๐Ÿงช tdd - Test-driven development
- # ๐Ÿ›ก๏ธ security-review - Security analysis
- # ๐Ÿ“š docs-writer - Documentation creation
- # ๐Ÿ”— integration - System integration
- ```
+ ## ๐Ÿ› ๏ธ **Installation & Setup**
- ### **SPARC Workflow**
+ ### **Method 1: Quick Start with NPX (Recommended)**
```bash
- # Simplified orchestration (NEW!)
- ./claude-flow sparc "build complete authentication system"
+ # Initialize with full SPARC environment
+ npx claude-flow@latest init --sparc
- # Run specific SPARC modes:
- ./claude-flow sparc run code "implement API" # Code generation
- ./claude-flow sparc run tdd "auth tests" # Test-driven development
- ./claude-flow sparc run architect "system" # Architecture design
+ # This creates:
+ # โœ“ Local ./claude-flow wrapper script
+ # โœ“ .claude/ directory with configuration
+ # โœ“ CLAUDE.md (project instructions for Claude Code)
+ # โœ“ .roomodes (17 pre-configured SPARC modes)
+ # โœ“ Swarm command documentation
- # TDD shorthand
- ./claude-flow sparc tdd "implement JWT authentication"
+ # Start using immediately
+ ./claude-flow start --ui --port 3000
```
- ### **Non-Interactive Mode**
-
- The `--non-interactive` flag outputs JSON for integration with CI/CD pipelines and automation tools:
-
+ ### **Method 2: Global Installation**
```bash
- # Run SPARC modes with JSON output
- ./claude-flow sparc run code "user service" --non-interactive
- ./claude-flow sparc run tdd "test suite" --non-interactive
- ```
-
- ### **SPARC Features**
- - **17+ Specialized AI Modes** for different development phases
- - **Memory Persistence** across SPARC sessions with namespaced storage
- - **TDD Enforcement** with Red-Green-Refactor cycle automation
- - **Modular Design** with <500 line file constraints
- - **Environment Safety** preventing credential exposure
- - **CI/CD Integration** via `--non-interactive` flag for automation
- - **Non-Interactive Mode** for automation and CI/CD integration
- - **Auto-Skip Permissions** by default (use --enable-permissions to prompt)
- - **Quality Gates** with automated code analysis and security review
-
- ## Architecture
-
- Claude-Flow uses a modular architecture with the following components:
-
- - **Orchestrator**: Central coordinator managing all system components
- - **Swarm System**: Advanced multi-agent coordination with timeout-free execution
- - **Terminal Manager**: Handles terminal sessions with pooling and recycling
- - **Memory Manager**: Persistent storage with caching and indexing
- - **Coordination Manager**: Task scheduling and resource management
- - **MCP Server**: Tool integration via Model Context Protocol
-
- ## Configuration
-
- Default configuration file (`claude-flow.config.json`):
-
- ```json
- {
- "orchestrator": {
- "maxConcurrentAgents": 10,
- "taskQueueSize": 100,
- "healthCheckInterval": 30000,
- "shutdownTimeout": 30000
- },
- "swarm": {
- "maxAgents": 10,
- "defaultStrategy": "auto",
- "defaultMode": "centralized",
- "timeoutMinutes": 60,
- "qualityThreshold": 0.8,
- "enableMonitoring": true,
- "enableEncryption": false
- },
- "terminal": {
- "type": "auto",
- "poolSize": 5,
- "recycleAfter": 10,
- "healthCheckInterval": 60000,
- "commandTimeout": 300000
- },
- "memory": {
- "backend": "hybrid",
- "cacheSizeMB": 100,
- "syncInterval": 5000,
- "conflictResolution": "crdt",
- "retentionDays": 30
- },
- "coordination": {
- "maxRetries": 3,
- "retryDelay": 1000,
- "deadlockDetection": true,
- "resourceTimeout": 60000,
- "messageTimeout": 30000
- },
- "mcp": {
- "transport": "stdio",
- "port": 3000,
- "tlsEnabled": false
- },
- "logging": {
- "level": "info",
- "format": "json",
- "destination": "console"
- }
- }
- ```
-
- ## Agent Types
-
- Claude-Flow supports multiple agent types:
-
- - **Coordinator**: Plans and delegates tasks to other agents
- - **Researcher**: Gathers and analyzes information
- - **Implementer**: Writes code and creates solutions
- - **Analyst**: Identifies patterns and generates insights
- - **Developer**: Full-stack development capabilities
- - **Tester**: Quality assurance and testing
- - **Reviewer**: Code and design review
- - **Documenter**: Documentation creation
- - **Monitor**: System monitoring and health checks
- - **Specialist**: Domain-specific expertise
- - **Custom**: User-defined agent types
-
- ## ๐Ÿ› ๏ธ **CLI Commands**
-
- Claude-Flow provides a comprehensive CLI for managing your AI orchestration system. For detailed command documentation, see the [CLI Reference](./docs/cli-reference.md).
-
- ### ๐ŸŒ **Global Options**
- - `-c, --config <path>`: Path to configuration file
- - `-v, --verbose`: Enable verbose logging
- - `--log-level <level>`: Set log level (debug, info, warn, error)
- - `--version`: Show version information
- - `--help`: Show help for any command
+ # Install globally
+ npm install -g claude-flow
- ### ๐Ÿ“‹ **Core Commands**
+ # Initialize anywhere
+ claude-flow init --sparc
- #### `init` - Initialize Claude Code Integration
- ```bash
- npx claude-flow@latest init [options]
- -s, --sparc Initialize with SPARC development environment (recommended)
- -f, --force Overwrite existing files
- -m, --minimal Create minimal configuration files
+ # Use directly
+ claude-flow start --ui
```
- **Recommended first-time setup:**
+ ### **Method 3: Local Project Installation**
```bash
- npx -y claude-flow@latest init --sparc
- ```
+ # Add to project
+ npm install claude-flow --save-dev
- Creates:
- - `CLAUDE.md` - AI-readable project instructions
- - `.roomodes` - 17 pre-configured SPARC development modes
- - `memory-bank.md` - Persistent memory documentation
- - `coordination.md` - Agent coordination guide
- - Complete folder structure for development
+ # Initialize
+ npx claude-flow init --sparc
- #### `start` - Start Orchestration System
- ```bash
- npx claude-flow start [options]
- -d, --daemon Run as daemon in background
- -p, --port <port> MCP server port (default: 3000)
- -u, --ui Launch interactive process management UI
- -v, --verbose Show detailed system activity
+ # Use with local wrapper
+ ./claude-flow start --ui
```
- **Process Management UI Features (--ui flag):**
- - Start/stop individual components (press 1-6 to toggle)
- - Real-time status monitoring
- - Process health visualization
- - Commands: A (start all), Z (stop all), R (restart all), Q (quit)
+ ---
- #### `swarm` - Advanced Multi-Agent Coordination ๐Ÿ†•
- ```bash
- npx claude-flow swarm <objective> [options]
- --strategy <type> Execution strategy (auto/research/development/analysis/testing/optimization/maintenance)
- --mode <type> Coordination mode (centralized/distributed/hierarchical/mesh/hybrid)
- --max-agents <n> Maximum agents (default: 5)
- --timeout <minutes> Timeout in minutes (default: 60)
- --parallel Enable parallel execution
- --distributed Enable distributed coordination
- --monitor Enable real-time monitoring
- --ui Launch terminal UI interface
- --background Run in background mode
- --review Enable peer review
- --testing Enable automated testing
- --encryption Enable encryption
- --verbose Enable detailed logging
- --dry-run Show configuration without executing
- ```
+ ## ๐ŸŽฎ **Usage Examples**
- **Swarm Examples:**
+ ### ๐Ÿš€ **Basic Operations**
```bash
- # Basic development swarm
- ./claude-flow swarm "Build a REST API" --strategy development
+ # Check system status
+ ./claude-flow status
- # Research swarm with UI
- ./claude-flow swarm "Research AI trends" --strategy research --distributed --ui
+ # Start orchestration with Web UI
+ ./claude-flow start --ui --port 3000
- # Background optimization
- ./claude-flow swarm "Optimize performance" --strategy optimization --background --monitor
- ```
+ # Check MCP server status
+ ./claude-flow mcp status
- #### `status` - Show System Status
- ```bash
- npx claude-flow status [options]
- -v, --verbose Show detailed status information
+ # Manage agents
+ ./claude-flow agent spawn researcher --name "DataBot"
+ ./claude-flow agent info agent-123
+ ./claude-flow agent terminate agent-123
```
- #### `agent` - Manage AI Agents
- ```bash
- npx claude-flow agent <subcommand>
- spawn <type> Spawn a new agent (researcher/implementer/analyst/coordinator)
- --name <name> Agent name
- --priority <1-10> Agent priority
- --max-tasks <n> Max concurrent tasks
- list List all active agents
- info <agent-id> Get detailed agent information
- terminate <agent-id> Terminate an agent
- ```
+ ### ๐Ÿ”ฅ **Advanced Workflows**
- #### `task` - Manage Tasks
+ #### **Multi-Agent Development**
```bash
- npx claude-flow task <subcommand>
- create <type> <desc> Create a new task
- --priority <1-10> Task priority
- --deps <task-ids> Comma-separated dependency IDs
- list List all tasks
- --verbose Show task descriptions
- status <task-id> Get task status
- cancel <task-id> Cancel a task
- workflow <file> Execute workflow from file
- --async Run workflow asynchronously
- ```
+ # Deploy swarm for full-stack development
+ ./claude-flow swarm "Build e-commerce platform" \
+ --strategy development \
+ --max-agents 5 \
+ --parallel \
+ --monitor
- #### `memory` - Manage Memory Bank
- ```bash
- npx claude-flow memory <subcommand>
- query <search> Search memory entries
- --namespace <ns> Filter by namespace
- --limit <n> Limit results
- store <key> <value> Store information
- --namespace <ns> Target namespace
- export <file> Export memory to file
- import <file> Import memory from file
- stats Show memory statistics
- cleanup Clean up old entries
- --days <n> Entries older than n days
+ # BatchTool parallel development
+ batchtool run --parallel \
+ "./claude-flow sparc run architect 'design user auth'" \
+ "./claude-flow sparc run code 'implement login API'" \
+ "./claude-flow sparc run tdd 'create auth tests'" \
+ "./claude-flow sparc run security-review 'audit auth flow'"
```
- #### `mcp` - MCP Server Management
+ #### **SPARC Development Modes**
```bash
- npx claude-flow mcp <subcommand>
- status Show MCP server status
- tools List available MCP tools
- config Show MCP configuration
- logs View MCP server logs
- --lines <n> Number of log lines (default: 50)
+ # Complete development workflow
+ ./claude-flow sparc run ask "research best practices for microservices"
+ ./claude-flow sparc run architect "design scalable architecture"
+ ./claude-flow sparc run code "implement user service"
+ ./claude-flow sparc run tdd "create comprehensive test suite"
+ ./claude-flow sparc run integration "integrate all services"
+ ./claude-flow sparc run devops "setup CI/CD pipeline"
```
- #### `monitor` - Real-time Monitoring
+ #### **Memory & Coordination**
```bash
- npx claude-flow monitor [options]
- -i, --interval <seconds> Update interval (default: 2)
- -c, --compact Compact view mode
- -f, --focus <component> Focus on specific component
- ```
+ # Store and query project knowledge
+ ./claude-flow memory store requirements "User auth with JWT"
+ ./claude-flow memory store architecture "Microservice design patterns"
+ ./claude-flow memory query auth
- #### `sparc` - SPARC Development Methodology ๐Ÿ†•
- ```bash
- npx claude-flow sparc [subcommand] [options]
- "<task>" Run SPARC orchestrator (default mode)
- modes [--verbose] List available SPARC development modes
- info <mode> Show detailed mode information
- run <mode> "<task>" Execute specific SPARC mode
- tdd "<feature>" Run full TDD workflow
- --namespace <ns> Use custom memory namespace
- --dry-run Show configuration without executing
- --verbose Show detailed output
- --non-interactive Run with stream-json output (for automation)
- --enable-permissions Enable permission prompts (default: skip)
+ # Task coordination
+ ./claude-flow task create research "Market analysis for AI tools"
+ ./claude-flow task workflow examples/development-pipeline.json
```
- **Default Behavior Updates:**
- - Simplified syntax: `npx claude-flow sparc "build app"` (no need for `run sparc`)
- - Permissions auto-skipped by default (use `--enable-permissions` to prompt)
- - Non-interactive mode for BatchTool orchestration
-
- #### `claude` - Spawn Claude Instances with Enhanced Guidance ๐Ÿ†•
- ```bash
- npx claude-flow claude <subcommand>
- spawn <task> Spawn Claude with enhanced Claude-Flow guidance
- -t, --tools <tools> Allowed tools (comma-separated)
- --no-permissions Use --dangerously-skip-permissions flag
- -c, --config <file> MCP config file path
- -m, --mode <mode> Development mode (full/backend-only/frontend-only/api-only)
- --parallel Enable multi-agent support
- --research Enable web research capabilities
- --coverage <n> Test coverage target percentage (default: 80)
- --commit <freq> Commit frequency (phase/feature/manual)
- -v, --verbose Enable verbose output
- -d, --dry-run Show what would be executed without running
-
- batch <workflow-file> Execute workflow configuration
- --dry-run Show what would be executed without running
- ```
+ ---
- **Each spawned Claude instance receives comprehensive guidance including:**
- - Claude-Flow memory operations (`npx claude-flow memory store/query`)
- - System management commands (`npx claude-flow status/monitor`)
- - Agent coordination (when --parallel is used)
- - Mode-specific development focus
- - Coverage and commit strategy awareness
- - Example commands ready to use with the Bash tool
+ ## ๐Ÿ“‹ **Available Commands**
+
+ ### **Core Commands**
+ | Command | Description | Example |
+ |---------|-------------|---------|
+ | `init` | Initialize project with Claude integration | `./claude-flow init --sparc` |
+ | `start` | Start orchestration system | `./claude-flow start --ui` |
+ | `status` | Show system health and metrics | `./claude-flow status` |
+ | `agent` | Manage AI agents and hierarchies | `./claude-flow agent spawn researcher` |
+ | `swarm` | Advanced multi-agent coordination | `./claude-flow swarm "Build API" --parallel` |
+
+ ### **SPARC Development Modes**
+ | Mode | Purpose | Example |
+ |------|---------|---------|
+ | `architect` | System design and architecture | `./claude-flow sparc run architect "design API"` |
+ | `code` | Code development and implementation | `./claude-flow sparc run code "user authentication"` |
+ | `tdd` | Test-driven development | `./claude-flow sparc run tdd "payment system"` |
+ | `security-review` | Security auditing and analysis | `./claude-flow sparc run security-review "auth flow"` |
+ | `integration` | System integration and testing | `./claude-flow sparc run integration "microservices"` |
+ | `devops` | Deployment and CI/CD | `./claude-flow sparc run devops "k8s deployment"` |
+
+ ### **Memory & Coordination**
+ | Command | Description | Example |
+ |---------|-------------|---------|
+ | `memory store` | Store information in knowledge bank | `./claude-flow memory store key "value"` |
+ | `memory query` | Search stored information | `./claude-flow memory query "authentication"` |
+ | `task create` | Create and manage tasks | `./claude-flow task create research "AI trends"` |
+ | `monitor` | Real-time system monitoring | `./claude-flow monitor --dashboard` |
+
+ ### **Enterprise Commands**
+ | Command | Description | Example |
+ |---------|-------------|---------|
+ | `project` | Project lifecycle management | `./claude-flow project create "API Project" --type web-app` |
+ | `deploy` | Deployment automation & strategies | `./claude-flow deploy create "v1.2.0" --strategy blue-green` |
+ | `cloud` | Multi-cloud infrastructure management | `./claude-flow cloud resources create "web-server" compute` |
+ | `security` | Security scanning & compliance | `./claude-flow security scan "Vulnerability Check" ./src` |
+ | `analytics` | Performance analytics & insights | `./claude-flow analytics insights --timerange 7d` |
+ | `audit` | Enterprise audit logging | `./claude-flow audit report compliance --framework SOC2` |
- #### `config` - Configuration Management
- ```bash
- npx claude-flow config <subcommand>
- show Show current configuration
- get <path> Get specific config value
- set <path> <value> Set config value
- init [file] Initialize config file
- validate <file> Validate config file
- ```
+ ---
- #### `session` - Session Management
- ```bash
- npx claude-flow session <subcommand>
- list List active sessions
- info <session-id> Get session information
- terminate <session-id> End a session
- ```
+ ## ๐Ÿ—๏ธ **Architecture Overview**
- #### `workflow` - Workflow Execution
- ```bash
- npx claude-flow workflow <file> [options]
- --validate Validate workflow without executing
- --async Run workflow asynchronously
- --watch Watch workflow progress
+ ### **Multi-Layer Agent System**
```
-
- #### `help` - Get Help
- ```bash
- npx claude-flow help [command]
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
+ โ”‚ BatchTool Orchestrator โ”‚
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
+ โ”‚ Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 โ”‚
+ โ”‚ Architect โ”‚ Coder โ”‚ TDD โ”‚ Security โ”‚ DevOps โ”‚
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
+ โ”‚ Shared Memory Bank & Coordination โ”‚
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
+ โ”‚ Terminal Pool & Resource Management โ”‚
+ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
+ โ”‚ Claude Code Integration Layer โ”‚
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```
- ### ๐ŸŽฏ **Common Use Cases**
-
- **Complete Agent & Task Workflow:**
- ```bash
- # Initialize and start the system
- npx claude-flow init --sparc
- ./claude-flow start --ui # Use interactive UI for process management
-
- # In another terminal, spawn agents
- ./claude-flow agent spawn researcher --name "Senior Researcher" --priority 8
- ./claude-flow agent spawn analyst --name "Data Analyst" --priority 7
- ./claude-flow agent spawn implementer --name "Lead Developer" --priority 9
+ ### **Key Components**
+ - **๐ŸŽ›๏ธ Orchestrator**: Central coordination and task distribution
+ - **๐Ÿค– Agent Pool**: Specialized AI agents for different domains
+ - **๐Ÿง  Memory Bank**: Persistent knowledge sharing across agents
+ - **๐Ÿ“Š Monitor**: Real-time metrics and health monitoring
+ - **๐Ÿ”— MCP Server**: Model Context Protocol for tool integration
- # Create and manage tasks
- ./claude-flow task create research "Analyze authentication patterns" --priority 8
- ./claude-flow task create analysis "Security audit findings" --priority 7
- ./claude-flow task create implementation "Build secure auth system" --priority 9
+ ---
- # Monitor the workflow
- ./claude-flow monitor
- ```
+ ## ๐Ÿงช **Testing & Quality Assurance**
- **Advanced Swarm Workflows:**
+ ### **Comprehensive Test Coverage**
```bash
- # Initialize swarm system
- npx claude-flow init --sparc
-
- # Development swarm with parallel execution
- ./claude-flow swarm "Build microservices architecture" \
- --strategy development --parallel --monitor --review
+ # Run full test suite
+ npm test
- # Research swarm with distributed coordination
- ./claude-flow swarm "Analyze blockchain technologies" \
- --strategy research --distributed --ui --verbose
+ # Run specific test categories
+ npm run test:unit # Unit tests
+ npm run test:integration # Integration tests
+ npm run test:e2e # End-to-end tests
- # Background optimization swarm
- ./claude-flow swarm "Optimize application performance" \
- --strategy optimization --background --testing --encryption
+ # Generate coverage reports
+ npm run test:coverage
- # Quality assurance swarm
- ./claude-flow swarm "Comprehensive security audit" \
- --strategy testing --review --verbose --max-agents 8
- ```
-
- **Code Development Workflow:**
- ```bash
- npx claude-flow agent spawn implementer --name "Backend Dev" --max-tasks 3
- npx claude-flow agent spawn implementer --name "Frontend Dev" --max-tasks 3
- npx claude-flow agent spawn coordinator --name "Tech Lead"
- npx claude-flow workflow development-pipeline.json --watch
+ # Lint and typecheck
+ npm run lint
+ npm run typecheck
```
- **SPARC Development Workflow:**
- ```bash
- # Initialize SPARC environment
- npx claude-flow init --sparc
-
- # Complete feature development using SPARC methodology
- npx claude-flow sparc run spec-pseudocode "user authentication system"
- npx claude-flow sparc run architect "JWT auth service design"
- npx claude-flow sparc tdd "implement secure authentication"
- npx claude-flow sparc run security-review "auth vulnerability scan"
- npx claude-flow sparc run integration "connect auth to user service"
-
- # TDD-focused development
- npx claude-flow sparc tdd "payment processing system"
- npx claude-flow sparc tdd "real-time notifications"
-
- # Architecture and design
- npx claude-flow sparc run architect "microservices architecture"
- npx claude-flow sparc run docs-writer "API documentation"
- ```
-### **Quality Metrics (v1.0.72)**
++### **Quality Metrics (v1.0.71)**
+ - **โœ… Project-Focused**: CLAUDE.md explicitly guides building user applications
+ - **โœ… Clear Instructions**: No confusion about modifying claude-flow itself
+ - **โœ… Real Examples**: All documentation shows building actual applications
+ - **โœ… NPM Publishing**: Fully compatible with npx and global installation
+ - **โœ… Cross-Platform**: Windows, Mac, and Linux support
- **Enhanced Claude Spawn Examples:**
- ```bash
- # Backend API development with high test coverage
- ./claude-flow claude spawn "build REST API with authentication" \
- --mode backend-only --coverage 95 --commit feature
-
- # Frontend development with research capabilities
- ./claude-flow claude spawn "create responsive dashboard" \
- --mode frontend-only --research --verbose
-
- # Full-stack development with parallel execution
- ./claude-flow claude spawn "implement user management system" \
- --parallel --coverage 90 --commit phase
-
- # API design focus with custom tools
- ./claude-flow claude spawn "design GraphQL schema" \
- --mode api-only --tools "View,Edit,GrepTool,LS"
- ```
+ ---
- **Workflow Execution:**
- ```bash
- # Execute a workflow file
- ./claude-flow workflow my-workflow.json
+ ## ๐Ÿ“š **Documentation & Resources**
- # Validate workflow before execution
- ./claude-flow workflow my-workflow.json --validate
+ ### **Getting Started**
+ - [๐Ÿš€ Quick Start Guide](./docs/quick-start.md)
+ - [โš™๏ธ Configuration Options](./docs/configuration.md)
+ - [๐Ÿค– Agent Management](./docs/agents.md)
+ - [๐Ÿง  SPARC Development](./docs/sparc-modes.md)
- # Execute with monitoring
- ./claude-flow workflow my-workflow.json --watch
- ```
+ ### **Advanced Topics**
+ - [๐Ÿ”ง BatchTool Integration](./docs/batchtool.md)
+ - [๐Ÿ“Š Monitoring & Analytics](./docs/monitoring.md)
+ - [๐Ÿ”— MCP Server Setup](./docs/mcp-integration.md)
+ - [๐Ÿ”’ Security Best Practices](./docs/security.md)
- ## Workflow Example
-
- Create a workflow file (`example-workflow.json`):
-
- ```json
- {
- "name": "Research and Analysis Workflow",
- "tasks": [
- {
- "id": "research-1",
- "type": "research",
- "description": "Research quantum computing basics",
- "assignTo": "researcher"
- },
- {
- "id": "analyze-1",
- "type": "analysis",
- "description": "Analyze research findings",
- "dependencies": ["research-1"],
- "assignTo": "analyst"
- },
- {
- "id": "report-1",
- "type": "report",
- "description": "Generate summary report",
- "dependencies": ["analyze-1"],
- "assignTo": "coordinator"
- }
- ]
- }
- ```
+ ### **API Reference**
+ - [๐Ÿ“– Command Reference](./docs/commands.md)
+ - [๐ŸŽ›๏ธ Configuration Schema](./docs/config-schema.md)
+ - [๐Ÿ”Œ Plugin Development](./docs/plugins.md)
+ - [๐Ÿ› ๏ธ Troubleshooting](./docs/troubleshooting.md)
- Execute the workflow:
- ```bash
- ./claude-flow workflow example-workflow.json
- ```
+ ---
- ## Development
+ ## ๐Ÿค **Contributing**
- ### Prerequisites
- - Deno 1.40+ (Install: https://deno.land/#installation)
- - Node.js 16+ (for npm wrapper)
- - Git
+ We welcome contributions! Here's how to get started:
- ### Setup
+ ### **Development Setup**
```bash
+ # Clone the repository
git clone https://github.com/ruvnet/claude-code-flow.git
cd claude-code-flow
- ./bin/claude-flow --version # Verify installation
- ```
-
- ### Testing
- ```bash
- deno task test
- ```
-
- ### Building
- ```bash
- deno task build
- ```
-
- ### Running from source
- ```bash
- ./bin/claude-flow --help # Use the binary wrapper
- ```
-
- ## API Usage
- Claude-Flow can also be used programmatically:
+ # Install dependencies
+ npm install
- ```typescript
- import { Orchestrator, SwarmCoordinator } from 'claude-flow';
+ # Build the project
+ npm run build
- // Basic orchestrator
- const orchestrator = new Orchestrator(config);
- await orchestrator.initialize();
+ # Run tests
+ npm test
- // Advanced swarm coordination
- const swarm = new SwarmCoordinator({
- strategy: 'development',
- mode: 'distributed',
- maxAgents: 10,
- monitoring: { metricsEnabled: true }
- });
-
- await swarm.initialize();
-
- // Create objective and agents
- const objectiveId = await swarm.createObjective(
- 'API Development',
- 'Build a scalable REST API',
- 'development'
- );
-
- const agentId = await swarm.registerAgent(
- 'Lead Developer',
- 'developer',
- { codeGeneration: true, testing: true }
- );
-
- // Execute with timeout-free background processing
- await swarm.executeObjective(objectiveId);
+ # Link for local development
+ npm link
```
- ## Contributing
-
- Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details.
+ ### **Contributing Guidelines**
+ - ๐Ÿ› **Bug Reports**: Use GitHub issues with detailed reproduction steps
+ - ๐Ÿ’ก **Feature Requests**: Propose new features with use cases
+ - ๐Ÿ”ง **Pull Requests**: Follow our coding standards and include tests
+ - ๐Ÿ“š **Documentation**: Help improve docs and examples
- ## License
+ ---
- MIT License - see [LICENSE](LICENSE) file for details.
+ ## ๐Ÿ“„ **License**
- ## ๐Ÿ”Œ **Integration with Claude Code**
+ MIT License - see [LICENSE](./LICENSE) for details.
- Claude-Flow seamlessly integrates with Claude Code through the `CLAUDE.md` file created by `npx claude-flow init`. This enables:
+ ---
- - **Automatic Context Loading**: Claude Code reads your project configuration
- - **Build Command Integration**: All build/test commands are available to Claude
- - **Memory Persistence**: Claude remembers context across sessions
- - **Enhanced Guidance**: Spawned Claude instances receive detailed Claude-Flow instructions
- - **SPARC Methodology**: Built-in support for systematic development with 17+ specialized AI modes
- - **Swarm Integration**: Claude Code SDK used for timeout-free multi-agent execution
+ ## ๐ŸŽ‰ **Acknowledgments**
- Use with Claude Code:
- ```bash
- # Initialize integration with SPARC and swarm support
- npx -y claude-flow@latest init --sparc
+ - **Anthropic**: For the amazing Claude AI that powers this platform
+ - **Node.js Team**: For the excellent JavaScript runtime
+ - **Open Source Community**: For contributions and feedback
+ - **SPARC Methodology**: For the structured development approach
- # Use local wrapper after initialization
- ./claude-flow start --ui # Interactive process management
+ ---
- # Spawn Claude with enhanced guidance
- ./claude-flow claude spawn "your task here" --research --parallel
+ <div align="center">
- # Use advanced swarm system
- ./claude-flow swarm "Build a REST API" --strategy development --monitor
+ ### **๐Ÿš€ Ready to transform your development workflow?**
- # Claude receives:
- # - Instructions on using npx claude-flow commands
- # - Memory operations (store/query)
- # - Agent coordination capabilities
- # - Mode-specific development guidance
- # - Swarm system access for complex workflows
+ ```bash
+ npx claude-flow@latest init --sparc
```
- ## ๐Ÿข **Enterprise Features**
-
- - **๐Ÿ” Security**: Token-based auth, encryption, rate limiting, audit logging
- - **๐Ÿ“Š Monitoring**: Real-time metrics, performance tracking, health checks
- - **๐Ÿ”„ Reliability**: Circuit breakers, automatic retries, graceful degradation
- - **๐Ÿ“ˆ Scalability**: Horizontal scaling, load balancing, resource pooling
- - **๐Ÿ›ก๏ธ Compliance**: Audit trails, data retention policies, access controls
- - **๐Ÿ Swarm Intelligence**: Advanced multi-agent coordination with enterprise fault tolerance
-
- ## ๐Ÿ“– **Resources**
-
- ### Documentation
- - **[Complete Documentation](./docs/)** - All guides and references
- - **[API Documentation](./docs/api/)** - Programmatic usage
- - **[Examples](./examples/)** - Sample configurations and workflows
- - **[Memory System Docs](./memory/docs/)** - In-depth memory bank documentation
- - **[Swarm System Guide](./docs/swarm-system.md)** - Advanced multi-agent coordination
-
- ### Community & Support
- - **[GitHub Issues](https://github.com/ruvnet/claude-code-flow/issues)** - Bug reports and feature requests
- - **[GitHub Discussions](https://github.com/ruvnet/claude-code-flow/discussions)** - Community forum
-
- ## ๐Ÿš€ **Roadmap**
-
- ### Current Features
- - โœ… Core orchestration with multi-agent support
- - โœ… Enterprise-grade swarm system with timeout-free execution
- - โœ… CRDT-based memory bank with SQLite backend
- - โœ… MCP server integration (stdio transport)
- - โœ… Claude Code integration via `init` command
- - โœ… Text-based process management UI
- - โœ… 17+ SPARC development modes
- - โœ… Comprehensive CLI with 15+ commands
- - โœ… Advanced multi-agent coordination
- - โœ… Distributed memory sharing
- - โœ… Real-time monitoring and metrics
-
- ### Planned Features
- - Web UI for visual orchestration
- - Plugin system for custom agent types
- - Enhanced monitoring dashboard
- - Workflow templates library
- - Advanced swarm visualization
- - Multi-language support for agents
+ **Join thousands of developers already using Claude-Flow!**
- ## ๐Ÿค **Contributing**
-
- We welcome contributions! See our [Contributing Guide](CONTRIBUTING.md) for:
- - Code of Conduct
- - Development setup
- - Submission guidelines
- - Coding standards
- - Testing requirements
-
- ## ๐Ÿ“„ **License**
-
- MIT License - see [LICENSE](LICENSE) file for details.
-
- ## ๐Ÿ™ **Acknowledgments**
-
- - Built on top of Claude Code and Anthropic's Claude AI
- - Inspired by the SPARC methodology
- - Thanks to all contributors and the Claude community
-
- ## ๐Ÿ“Š **Stats**
-
- ![GitHub stars](https://img.shields.io/github/stars/ruvnet/claude-code-flow?style=social)
- ![npm downloads](https://img.shields.io/npm/dm/claude-flow)
- ![Contributors](https://img.shields.io/github/contributors/ruvnet/claude-code-flow)
- ![Last commit](https://img.shields.io/github/last-commit/ruvnet/claude-code-flow)
+ [![GitHub](https://img.shields.io/badge/GitHub-ruvnet/claude--code--flow-blue?style=for-the-badge&logo=github)](https://github.com/ruvnet/claude-code-flow)
+ [![NPM](https://img.shields.io/badge/NPM-claude--flow-red?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/claude-flow)
+ [![Discord](https://img.shields.io/badge/Discord-Join%20Community-purple?style=for-the-badge&logo=discord)](https://discord.gg/claude-flow)
---