mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
## 🔧 Critical Swarm System Fixes ### Fixed Task File Naming Bug - Tasks were being saved as '[object Object].json' due to TaskId object structure - Now properly extracts task ID string for file naming - Files save correctly as 'task_<id>.json' ### Added Task Timeout Protection - Implemented automatic timeout detection in task execution loop - Tasks that exceed timeout (default 5 minutes) are marked as failed - Prevents swarms from hanging indefinitely on stuck tasks - Agent state properly cleaned up on timeout ### Fixed Target Directory Propagation - Testing tasks were receiving null targetDir, preventing file access - Target directory now extracted from objective description - All tasks inherit targetDir through context - Enhanced extractTargetDirectory to check multiple sources ### Improved Task Dependencies - Fixed taskDependenciesMet to handle both string and TaskId objects - Added convertDependenciesToTaskDependencies for Map structure - Dependencies now properly resolve for sequential task execution ### Auto Strategy Integration - Added missing autoStrategy property and initialization - Proper AutoStrategy instantiation in coordinator constructor - Enables intelligent task decomposition for 'auto' strategy ## 📊 Added Comprehensive Benchmarks ### Benchmark Suite Integration - Added complete Python-based benchmarking tool - Tests 7 strategies across 5 coordination modes - 100% success rate across all test scenarios - Performance metrics: 0.10s - 0.20s execution times ### Real-World Performance Data - Calculator example: 4m 20s total (3 tasks) - Task breakdown: Analysis 29%, Implementation 22%, Testing 48% - Successfully created 6 files with proper directory structure ## 📝 Documentation Updates ### Updated README.md - Added v1.0.50 changelog with critical fixes - Integrated benchmark performance results table - Added real-world timing example - Removed old update notes for clarity - Added dedicated Benchmarks & Performance section ## 🧪 Test Results - Swarm now completes successfully with proper task coordination - All fixes validated in production environment - Task files save with correct names - Testing tasks find implementation files - Swarms exit cleanly after completion 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
110 lines
2.3 KiB
Markdown
110 lines
2.3 KiB
Markdown
# Quick Start Guide
|
|
|
|
Get started with swarm benchmarking in 5 minutes!
|
|
|
|
## 🚀 Installation
|
|
|
|
```bash
|
|
# Install the benchmark tool
|
|
cd benchmark/
|
|
pip install -e .
|
|
```
|
|
|
|
## 🎯 Your First Benchmark
|
|
|
|
### 1. Basic Benchmark
|
|
|
|
Run a simple benchmark with default settings:
|
|
|
|
```bash
|
|
swarm-benchmark run "Build a user authentication system"
|
|
```
|
|
|
|
### 2. Specify Strategy
|
|
|
|
Choose a specific strategy for your task:
|
|
|
|
```bash
|
|
swarm-benchmark run "Research cloud providers" --strategy research
|
|
```
|
|
|
|
### 3. Select Coordination Mode
|
|
|
|
Test different coordination patterns:
|
|
|
|
```bash
|
|
swarm-benchmark run "Develop microservices" --mode distributed
|
|
```
|
|
|
|
### 4. View Results
|
|
|
|
Check your benchmark results:
|
|
|
|
```bash
|
|
# List recent benchmarks
|
|
swarm-benchmark list
|
|
|
|
# Show specific benchmark details
|
|
swarm-benchmark show <benchmark-id>
|
|
```
|
|
|
|
## 📊 Understanding Output
|
|
|
|
After running a benchmark, you'll see:
|
|
|
|
```
|
|
✅ Benchmark completed successfully!
|
|
📊 Results saved to: ./reports
|
|
```
|
|
|
|
The JSON output includes:
|
|
- **Task execution time**: How long each task took
|
|
- **Resource usage**: CPU and memory consumption
|
|
- **Success rate**: Percentage of successful tasks
|
|
- **Quality scores**: Accuracy and completeness metrics
|
|
|
|
## 🎨 Common Scenarios
|
|
|
|
### Development Tasks
|
|
```bash
|
|
swarm-benchmark run "Create REST API with authentication" \
|
|
--strategy development \
|
|
--mode hierarchical \
|
|
--max-agents 6
|
|
```
|
|
|
|
### Research Tasks
|
|
```bash
|
|
swarm-benchmark run "Analyze market trends" \
|
|
--strategy research \
|
|
--mode distributed \
|
|
--parallel
|
|
```
|
|
|
|
### Optimization Tasks
|
|
```bash
|
|
swarm-benchmark run "Optimize database performance" \
|
|
--strategy optimization \
|
|
--mode hybrid \
|
|
--monitor
|
|
```
|
|
|
|
## 🔧 Quick Tips
|
|
|
|
1. **Use `--parallel`** for faster execution with multiple agents
|
|
2. **Add `--monitor`** to see real-time progress
|
|
3. **Use `-v`** flag for verbose output
|
|
4. **Check `./reports/` for detailed JSON results**
|
|
|
|
## 📚 Next Steps
|
|
|
|
- Read the [Basic Usage Guide](basic-usage.md) for more examples
|
|
- Learn about [Swarm Strategies](strategies.md)
|
|
- Explore [Coordination Modes](coordination-modes.md)
|
|
- See [Optimization Guide](optimization-guide.md) for performance tips
|
|
|
|
## ❓ Need Help?
|
|
|
|
- Run `swarm-benchmark --help` for command help
|
|
- Check [Troubleshooting Guide](troubleshooting.md) for common issues
|
|
- See [CLI Reference](cli-reference.md) for all commands |