claude-flow-help.md•9.94 kB
---
name: claude-flow-help
description: Show Claude-Flow commands and usage with batchtools optimization
---
# Claude-Flow Commands (Batchtools Optimized)
## 🌊 Claude-Flow: Advanced Agent Orchestration Platform
Claude-Flow is the ultimate multi-terminal orchestration platform that revolutionizes how you work with Claude Code.
**🚀 Batchtools Enhancement**: All commands now include parallel processing capabilities, batch operations, and performance optimizations for maximum efficiency.
## Core Commands (Enhanced)
### 🚀 System Management
- `./claude-flow start` - Start orchestration system
- `./claude-flow start --ui` - Start with interactive process management UI
- `./claude-flow start --parallel` - Start with enhanced parallel processing
- `./claude-flow status` - Check system status
- `./claude-flow status --concurrent` - Check status with parallel monitoring
- `./claude-flow monitor` - Real-time monitoring
- `./claude-flow monitor --performance` - Enhanced performance monitoring
- `./claude-flow stop` - Stop orchestration
### 🤖 Agent Management (Parallel)
- `./claude-flow agent spawn <type>` - Create new agent
- `./claude-flow agent batch-spawn <config>` - Create multiple agents in parallel
- `./claude-flow agent list` - List active agents
- `./claude-flow agent parallel-status` - Check all agent status concurrently
- `./claude-flow agent info <id>` - Agent details
- `./claude-flow agent terminate <id>` - Stop agent
- `./claude-flow agent batch-terminate <ids>` - Stop multiple agents in parallel
### 📋 Task Management (Concurrent)
- `./claude-flow task create <type> "description"` - Create task
- `./claude-flow task batch-create <tasks-file>` - Create multiple tasks in parallel
- `./claude-flow task list` - List all tasks
- `./claude-flow task parallel-status` - Check all task status concurrently
- `./claude-flow task status <id>` - Task status
- `./claude-flow task cancel <id>` - Cancel task
- `./claude-flow task batch-cancel <ids>` - Cancel multiple tasks in parallel
- `./claude-flow task workflow <file>` - Execute workflow
- `./claude-flow task parallel-workflow <files>` - Execute multiple workflows concurrently
### 🧠 Memory Operations (Batch Enhanced)
- `./claude-flow memory store "key" "value"` - Store data
- `./claude-flow memory batch-store <entries-file>` - Store multiple entries in parallel
- `./claude-flow memory query "search"` - Search memory
- `./claude-flow memory parallel-query <queries>` - Execute multiple queries concurrently
- `./claude-flow memory stats` - Memory statistics
- `./claude-flow memory stats --concurrent` - Parallel memory analysis
- `./claude-flow memory export <file>` - Export memory
- `./claude-flow memory concurrent-export <namespaces>` - Export multiple namespaces in parallel
- `./claude-flow memory import <file>` - Import memory
- `./claude-flow memory batch-import <files>` - Import multiple files concurrently
### ⚡ SPARC Development (Optimized)
- `./claude-flow sparc "task"` - Run SPARC orchestrator
- `./claude-flow sparc parallel "tasks"` - Run multiple SPARC tasks concurrently
- `./claude-flow sparc modes` - List all 17+ SPARC modes
- `./claude-flow sparc run <mode> "task"` - Run specific mode
- `./claude-flow sparc batch <modes> "task"` - Run multiple modes in parallel
- `./claude-flow sparc tdd "feature"` - TDD workflow
- `./claude-flow sparc concurrent-tdd <features>` - Parallel TDD for multiple features
- `./claude-flow sparc info <mode>` - Mode details
### 🐝 Swarm Coordination (Enhanced)
- `./claude-flow swarm "task" --strategy <type>` - Start swarm
- `./claude-flow swarm "task" --background` - Long-running swarm
- `./claude-flow swarm "task" --monitor` - With monitoring
- `./claude-flow swarm "task" --ui` - Interactive UI
- `./claude-flow swarm "task" --distributed` - Distributed coordination
- `./claude-flow swarm batch <tasks-config>` - Multiple swarms in parallel
- `./claude-flow swarm concurrent "tasks" --parallel` - Concurrent swarm execution
### 🌍 MCP Integration (Parallel)
- `./claude-flow mcp status` - MCP server status
- `./claude-flow mcp parallel-status` - Check all MCP servers concurrently
- `./claude-flow mcp tools` - List available tools
- `./claude-flow mcp config` - Show configuration
- `./claude-flow mcp logs` - View MCP logs
- `./claude-flow mcp batch-logs <servers>` - View multiple server logs in parallel
### 🤖 Claude Integration (Enhanced)
- `./claude-flow claude spawn "task"` - Spawn Claude with enhanced guidance
- `./claude-flow claude batch-spawn <tasks>` - Spawn multiple Claude instances in parallel
- `./claude-flow claude batch <file>` - Execute workflow configuration
### 🚀 Batchtools Commands (New)
- `./claude-flow batchtools status` - Check batchtools system status
- `./claude-flow batchtools monitor` - Real-time performance monitoring
- `./claude-flow batchtools optimize` - System optimization recommendations
- `./claude-flow batchtools benchmark` - Performance benchmarking
- `./claude-flow batchtools config` - Batchtools configuration management
## 🌟 Quick Examples (Optimized)
### Initialize with enhanced SPARC:
```bash
npx -y claude-flow@latest init --sparc --force
```
### Start a parallel development swarm:
```bash
./claude-flow swarm "Build REST API" --strategy development --monitor --review --parallel
```
### Run concurrent TDD workflow:
```bash
./claude-flow sparc concurrent-tdd "user authentication,payment processing,notification system"
```
### Store project context with batch operations:
```bash
./claude-flow memory batch-store "project-contexts.json" --namespace project --parallel
```
### Spawn specialized agents in parallel:
```bash
./claude-flow agent batch-spawn agents-config.json --parallel --validate
```
## 🎯 Performance Features
### Parallel Processing
- **Concurrent Operations**: Execute multiple independent operations simultaneously
- **Batch Processing**: Group related operations for optimal efficiency
- **Pipeline Execution**: Chain operations with parallel stages
- **Smart Load Balancing**: Intelligent distribution of computational tasks
### Resource Optimization
- **Memory Management**: Optimized memory usage for parallel operations
- **CPU Utilization**: Better use of multi-core processors
- **I/O Throughput**: Improved disk and network operation efficiency
- **Cache Optimization**: Smart caching for repeated operations
### Performance Monitoring
- **Real-time Metrics**: Monitor operation performance in real-time
- **Resource Usage**: Track CPU, memory, and I/O utilization
- **Bottleneck Detection**: Identify and resolve performance issues
- **Optimization Recommendations**: Automatic suggestions for improvements
## 🎯 Best Practices (Enhanced)
### Performance Optimization
- Use `./claude-flow` instead of `npx claude-flow` after initialization
- Enable parallel processing for independent operations (`--parallel` flag)
- Use batch operations for multiple related tasks (`batch-*` commands)
- Monitor system resources during concurrent operations (`--monitor` flag)
- Store important context in memory for cross-session persistence
- Use swarm mode for complex tasks requiring multiple agents
- Enable monitoring for real-time progress tracking (`--monitor`)
- Use background mode for tasks > 30 minutes (`--background`)
- Implement concurrent processing for optimal performance
### Resource Management
- Monitor system resources during parallel operations
- Use appropriate batch sizes based on system capabilities
- Enable smart load balancing for distributed tasks
- Implement throttling for resource-intensive operations
### Workflow Optimization
- Use pipeline processing for complex multi-stage workflows
- Enable concurrent execution for independent workflow components
- Implement parallel validation for comprehensive quality checks
- Use batch operations for related workflow executions
## 📊 Performance Benchmarks
### Batchtools Performance Improvements
- **Agent Operations**: Up to 500% faster with parallel processing
- **Task Management**: 400% improvement with concurrent operations
- **Memory Operations**: 350% faster with batch processing
- **Workflow Execution**: 450% improvement with parallel orchestration
- **System Monitoring**: 250% faster with concurrent monitoring
## 🔧 Advanced Configuration
### Batchtools Configuration
```json
{
"batchtools": {
"enabled": true,
"maxConcurrent": 20,
"batchSize": 10,
"enableOptimization": true,
"smartBatching": true,
"performanceMonitoring": true
}
}
```
### Performance Tuning
- **Concurrent Limits**: Adjust based on system resources
- **Batch Sizes**: Optimize for operation type and system capacity
- **Resource Allocation**: Configure memory and CPU limits
- **Monitoring Intervals**: Set appropriate monitoring frequencies
## 📚 Resources (Enhanced)
- Documentation: https://github.com/ruvnet/claude-code-flow/docs
- Batchtools Guide: https://github.com/ruvnet/claude-code-flow/docs/batchtools.md
- Performance Optimization: https://github.com/ruvnet/claude-code-flow/docs/performance.md
- Examples: https://github.com/ruvnet/claude-code-flow/examples
- Issues: https://github.com/ruvnet/claude-code-flow/issues
## 🚨 Troubleshooting (Enhanced)
### Performance Issues
```bash
# Monitor system performance during operations
./claude-flow monitor --performance --real-time
# Check resource utilization
./claude-flow batchtools monitor --resources --detailed
# Analyze operation bottlenecks
./claude-flow performance analyze --bottlenecks --optimization
```
### Optimization Commands
```bash
# Auto-optimize system configuration
./claude-flow batchtools optimize --auto-tune
# Performance benchmarking
./claude-flow batchtools benchmark --detailed --export
# System resource analysis
./claude-flow performance report --system --recommendations
```
For comprehensive documentation and optimization guides, see the resources above.