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

πŸ”– Checkpoint: Edit /workspaces/claude-code-flow/benchmark/examples/cli/test_all_commands.sh

rUv7e223dbe99ce
diff --git a/.claude/checkpoints/1754480421.json b/.claude/checkpoints/1754480421.json
new file mode 100644
index 0000000000..61a96ec1d6
--- /dev/null
+++ b/.claude/checkpoints/1754480421.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250806-114021", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py", "timestamp": "2025-08-06T11:40:21Z", "type": "pre-edit", "original_branch": "alpha-88"}
diff --git a/.claude/checkpoints/1754480423.json b/.claude/checkpoints/1754480423.json
new file mode 100644
index 0000000000..449278de3f
--- /dev/null
+++ b/.claude/checkpoints/1754480423.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250806-114023", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py", "timestamp": "2025-08-06T11:40:23Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 ++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754480400.json | 1 + .claude/checkpoints/1754480402.json | 1 + .../real_benchmark_engine.cpython-312.pyc | Bin 14056 -> 14714 bytes .../swarm_benchmark/core/real_benchmark_engine.py | 4 +- claude-flow-wiki | 0 ...trics_8a5494dd-6ed3-45a8-b047-9560a1326912.json | 66 +++++++++++ ...eport_8a5494dd-6ed3-45a8-b047-9560a1326912.json | 47 ++++++++ ...lized_8a5494dd-6ed3-45a8-b047-9560a1326912.json | 132 +++++++++++++++++++++ 11 files changed, 289 insertions(+), 6 deletions(-) "}
diff --git a/benchmark/examples/cli/test_all_commands.sh b/benchmark/examples/cli/test_all_commands.sh
new file mode 100644
index 0000000000..964823225b
--- /dev/null
+++ b/benchmark/examples/cli/test_all_commands.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+# Test all swarm-benchmark real commands
+
+echo "πŸ§ͺ Testing swarm-benchmark CLI commands..."
+echo "========================================="
+
+# Test swarm command
+echo -e "\n1️⃣ Testing SWARM command..."
+swarm-benchmark real swarm "Create hello world" --strategy development --timeout 1
+if [ $? -eq 0 ]; then
+ echo "βœ… Swarm command works!"
+else
+ echo "❌ Swarm command failed"
+fi
+
+# Test hive-mind command
+echo -e "\n2️⃣ Testing HIVE-MIND command..."
+swarm-benchmark real hive-mind "Design system" --max-workers 2 --timeout 1
+if [ $? -eq 0 ]; then
+ echo "βœ… Hive-mind command works!"
+else
+ echo "❌ Hive-mind command failed"
+fi
+
+# Test SPARC command
+echo -e "\n3️⃣ Testing SPARC command..."
+swarm-benchmark real sparc coder "Implement function" --timeout 1
+if [ $? -eq 0 ]; then
+ echo "βœ… SPARC command works!"
+else
+ echo "❌ SPARC command failed"
+fi
+
+echo -e "\n========================================="
+echo "βœ… All CLI commands tested successfully!"
\ No newline at end of file
diff --git a/reports/metrics_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json b/reports/metrics_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json
new file mode 100644
index 0000000000..421e1777a6
--- /dev/null
+++ b/reports/metrics_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json
@@ -0,0 +1,66 @@
+{
+ "summary": {
+ "wall_clock_time": 1.3057057857513428,
+ "tasks_per_second": 0.7658693182741544,
+ "success_rate": 1.0,
+ "peak_memory_mb": 0.0,
+ "average_cpu_percent": 0.0
+ },
+ "performance": {
+ "average_duration": 0.0,
+ "median_duration": 0.0,
+ "p95_duration": 0.0,
+ "p99_duration": 0.0,
+ "total_cpu_seconds": 0.0
+ },
+ "resources": {
+ "memory": {
+ "peak_mb": 0.0,
+ "average_mb": 0.0
+ },
+ "cpu": {
+ "average_percent": 0.0,
+ "total_seconds": 0.0
+ },
+ "io": {
+ "disk_read_mb": 0.0,
+ "disk_write_mb": 0.0,
+ "network_sent_mb": 0.0,
+ "network_recv_mb": 0.0
+ }
+ },
+ "processes": {
+ "total": 1,
+ "peak_threads": 0,
+ "peak_fds": 0
+ },
+ "output": {
+ "total_size": 1,
+ "average_size": 1,
+ "complexity_score": 0.7658693182741544
+ },
+ "collectors": {
+ "performance": 1,
+ "resource": 1
+ },
+ "timestamp": "2025-08-06T11:40:50.696411",
+ "process_executions": {
+ "sparc:{\"positional\": [\"coder\", \"Build REST API\"]}": {
+ "command_type": "sparc",
+ "args": {
+ "positional": [
+ "coder",
+ "Build REST API"
+ ]
+ },
+ "execution_count": 1,
+ "success_count": 1,
+ "failure_count": 0,
+ "success_rate": 1.0,
+ "average_duration": 0.30352163314819336,
+ "total_duration": 0.30352163314819336,
+ "average_memory_mb": 41.446614583333336,
+ "peak_memory_mb": 69.4296875
+ }
+ }
+}
\ No newline at end of file
diff --git a/reports/metrics_61802b7e-92c9-45b6-be20-8a322a162e69.json b/reports/metrics_61802b7e-92c9-45b6-be20-8a322a162e69.json
new file mode 100644
index 0000000000..61b11006dd
--- /dev/null
+++ b/reports/metrics_61802b7e-92c9-45b6-be20-8a322a162e69.json
@@ -0,0 +1,66 @@
+{
+ "summary": {
+ "wall_clock_time": 1.3062376976013184,
+ "tasks_per_second": 0.7655574493343199,
+ "success_rate": 1.0,
+ "peak_memory_mb": 0.0,
+ "average_cpu_percent": 0.0
+ },
+ "performance": {
+ "average_duration": 0.0,
+ "median_duration": 0.0,
+ "p95_duration": 0.0,
+ "p99_duration": 0.0,
+ "total_cpu_seconds": 0.0
+ },
+ "resources": {
+ "memory": {
+ "peak_mb": 0.0,
+ "average_mb": 0.0
+ },
+ "cpu": {
+ "average_percent": 0.0,
+ "total_seconds": 0.0
+ },
+ "io": {
+ "disk_read_mb": 0.0,
+ "disk_write_mb": 0.0,
+ "network_sent_mb": 0.0,
+ "network_recv_mb": 0.0
+ }
+ },
+ "processes": {
+ "total": 1,
+ "peak_threads": 0,
+ "peak_fds": 0
+ },
+ "output": {
+ "total_size": 1,
+ "average_size": 1,
+ "complexity_score": 0.7655574493343199
+ },
+ "collectors": {
+ "performance": 1,
+ "resource": 1
+ },
+ "timestamp": "2025-08-06T11:40:46.182174",
+ "process_executions": {
+ "sparc:{\"positional\": [\"coder\", \"Build REST API\"]}": {
+ "command_type": "sparc",
+ "args": {
+ "positional": [
+ "coder",
+ "Build REST API"
+ ]
+ },
+ "execution_count": 1,
+ "success_count": 1,
+ "failure_count": 0,
+ "success_rate": 1.0,
+ "average_duration": 0.303790807723999,
+ "total_duration": 0.303790807723999,
+ "average_memory_mb": 40.165364583333336,
+ "peak_memory_mb": 64.4609375
+ }
+ }
+}
\ No newline at end of file
diff --git a/reports/process_report_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json b/reports/process_report_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json
new file mode 100644
index 0000000000..ca64169a1c
--- /dev/null
+++ b/reports/process_report_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json
@@ -0,0 +1,47 @@
+{
+ "summary": {
+ "total_executions": 1,
+ "successful_executions": 1,
+ "failed_executions": 0,
+ "overall_success_rate": 1.0,
+ "total_duration": 0.30352163314819336,
+ "average_duration": 0.30352163314819336,
+ "peak_memory_mb": 69.4296875,
+ "average_memory_mb": 41.446614583333336,
+ "total_output_lines": 1,
+ "total_errors": 1
+ },
+ "command_statistics": {
+ "sparc:{\"positional\": [\"coder\", \"Build REST API\"]}": {
+ "command_type": "sparc",
+ "args": {
+ "positional": [
+ "coder",
+ "Build REST API"
+ ]
+ },
+ "execution_count": 1,
+ "success_count": 1,
+ "failure_count": 0,
+ "success_rate": 1.0,
+ "average_duration": 0.30352163314819336,
+ "total_duration": 0.30352163314819336,
+ "average_memory_mb": 41.446614583333336,
+ "peak_memory_mb": 69.4296875
+ }
+ },
+ "executions": [
+ {
+ "command": "claude-flow sparc coder Build REST API",
+ "exit_code": 0,
+ "success": true,
+ "duration": 0.30352163314819336,
+ "start_time": 1754480447.3876772,
+ "output_size": 1,
+ "error_count": 1,
+ "cpu_percent": 92.7,
+ "memory_mb": 41.446614583333336,
+ "peak_memory_mb": 69.4296875
+ }
+ ]
+}
\ No newline at end of file
diff --git a/reports/process_report_61802b7e-92c9-45b6-be20-8a322a162e69.json b/reports/process_report_61802b7e-92c9-45b6-be20-8a322a162e69.json
new file mode 100644
index 0000000000..dc66067c2f
--- /dev/null
+++ b/reports/process_report_61802b7e-92c9-45b6-be20-8a322a162e69.json
@@ -0,0 +1,47 @@
+{
+ "summary": {
+ "total_executions": 1,
+ "successful_executions": 1,
+ "failed_executions": 0,
+ "overall_success_rate": 1.0,
+ "total_duration": 0.303790807723999,
+ "average_duration": 0.303790807723999,
+ "peak_memory_mb": 64.4609375,
+ "average_memory_mb": 40.165364583333336,
+ "total_output_lines": 1,
+ "total_errors": 1
+ },
+ "command_statistics": {
+ "sparc:{\"positional\": [\"coder\", \"Build REST API\"]}": {
+ "command_type": "sparc",
+ "args": {
+ "positional": [
+ "coder",
+ "Build REST API"
+ ]
+ },
+ "execution_count": 1,
+ "success_count": 1,
+ "failure_count": 0,
+ "success_rate": 1.0,
+ "average_duration": 0.303790807723999,
+ "total_duration": 0.303790807723999,
+ "average_memory_mb": 40.165364583333336,
+ "peak_memory_mb": 64.4609375
+ }
+ },
+ "executions": [
+ {
+ "command": "claude-flow sparc coder Build REST API",
+ "exit_code": 0,
+ "success": true,
+ "duration": 0.303790807723999,
+ "start_time": 1754480442.873836,
+ "output_size": 1,
+ "error_count": 1,
+ "cpu_percent": 92.7,
+ "memory_mb": 40.165364583333336,
+ "peak_memory_mb": 64.4609375
+ }
+ ]
+}
\ No newline at end of file
diff --git a/reports/real-benchmark-development-centralized_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json b/reports/real-benchmark-development-centralized_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json
new file mode 100644
index 0000000000..e77bfdf571
--- /dev/null
+++ b/reports/real-benchmark-development-centralized_5bfe756f-a874-4e50-9ff9-7144beac1c4e.json
@@ -0,0 +1,132 @@
+{
+ "id": "5bfe756f-a874-4e50-9ff9-7144beac1c4e",
+ "name": "real-benchmark-development-centralized",
+ "description": "Real Benchmark: Build REST API",
+ "status": "completed",
+ "config": {
+ "name": "real-benchmark-development-centralized",
+ "description": "Real Benchmark: Build REST API",
+ "strategy": "development",
+ "mode": "centralized",
+ "max_agents": 5,
+ "max_tasks": 100,
+ "timeout": 60,
+ "task_timeout": 300,
+ "max_retries": 3,
+ "parallel": false,
+ "background": false,
+ "monitoring": false,
+ "quality_threshold": 0.8,
+ "resource_limits": {
+ "max_memory_mb": 1024,
+ "max_cpu_percent": 80,
+ "max_network_mbps": 100
+ },
+ "output_formats": [
+ "json"
+ ],
+ "output_directory": "./reports",
+ "verbose": false
+ },
+ "tasks": [
+ {
+ "id": "476239cd-21e1-4601-b42f-0db0e7fc1718",
+ "objective": "Build REST API",
+ "description": "Benchmark task: Build REST API",
+ "strategy": "development",
+ "mode": "centralized",
+ "parameters": {},
+ "timeout": 300,
+ "max_retries": 3,
+ "priority": 1,
+ "status": "pending",
+ "created_at": "2025-08-06T11:40:47.387203",
+ "started_at": null,
+ "completed_at": null,
+ "duration": null,
+ "assigned_agents": [],
+ "parent_task_id": null,
+ "subtasks": [],
+ "dependencies": []
+ }
+ ],
+ "results": [
+ {
+ "id": "6dac32bf-29b3-4205-8b6e-2a9c7631035e",
+ "task_id": "476239cd-21e1-4601-b42f-0db0e7fc1718",
+ "agent_id": "claude-flow",
+ "status": "success",
+ "output": {
+ "raw_output": "\u274c Failed to run SPARC mode: Deno is not defined",
+ "lines": [
+ "\u274c Failed to run SPARC mode: Deno is not defined"
+ ],
+ "sections": {}
+ },
+ "errors": [],
+ "warnings": [],
+ "performance_metrics": {
+ "execution_time": 0.2863621711730957,
+ "queue_time": 0.0,
+ "throughput": 3.4920813594318494,
+ "success_rate": 1.0,
+ "error_rate": 0.0,
+ "retry_count": 0,
+ "coordination_overhead": 0.0,
+ "communication_latency": 0.0
+ },
+ "quality_metrics": {
+ "accuracy_score": 0.0,
+ "completeness_score": 1.0,
+ "consistency_score": 0.0,
+ "relevance_score": 0.0,
+ "overall_quality": 0.5,
+ "review_score": null,
+ "automated_score": null
+ },
+ "resource_usage": {
+ "cpu_percent": 92.7,
+ "memory_mb": 41.446614583333336,
+ "network_bytes_sent": 0,
+ "network_bytes_recv": 0,
+ "disk_bytes_read": 0,
+ "disk_bytes_write": 0,
+ "peak_memory_mb": 69.4296875,
+ "average_cpu_percent": 92.7
+ },
+ "execution_details": {
+ "command": "claude-flow sparc coder Build REST API",
+ "exit_code": 0,
+ "output_lines": 1,
+ "error_count": 1
+ },
+ "created_at": "2025-08-06T11:40:47.691659",
+ "started_at": "2025-08-06T11:40:47.387677",
+ "completed_at": "2025-08-06T11:40:47.691199",
+ "duration": 0.303522
+ }
+ ],
+ "metrics": {
+ "total_tasks": 1,
+ "completed_tasks": 1,
+ "failed_tasks": 0,
+ "total_agents": 0,
+ "active_agents": 0,
+ "average_execution_time": 0.0,
+ "total_execution_time": 1.3057057857513428,
+ "success_rate": 1.0,
+ "throughput": 0.7658693182741544,
+ "resource_efficiency": 0.0,
+ "coordination_efficiency": 1.0,
+ "quality_score": 0.0,
+ "peak_memory_usage": 0.0,
+ "total_cpu_time": 0.0,
+ "network_overhead": 0.0
+ },
+ "created_at": "2025-08-06T11:40:47.387231",
+ "started_at": "2025-08-06T11:40:47.387237",
+ "completed_at": "2025-08-06T11:40:47.691685",
+ "duration": 0.304448,
+ "error_log": [],
+ "metadata": {}
+}
\ No newline at end of file
diff --git a/reports/real-benchmark-development-centralized_61802b7e-92c9-45b6-be20-8a322a162e69.json b/reports/real-benchmark-development-centralized_61802b7e-92c9-45b6-be20-8a322a162e69.json
new file mode 100644
index 0000000000..c009c6b806
--- /dev/null
+++ b/reports/real-benchmark-development-centralized_61802b7e-92c9-45b6-be20-8a322a162e69.json
@@ -0,0 +1,132 @@
+{
+ "id": "61802b7e-92c9-45b6-be20-8a322a162e69",
+ "name": "real-benchmark-development-centralized",
+ "description": "Real Benchmark: Build REST API",
+ "status": "completed",
+ "config": {
+ "name": "real-benchmark-development-centralized",
+ "description": "Real Benchmark: Build REST API",
+ "strategy": "development",
+ "mode": "centralized",
+ "max_agents": 5,
+ "max_tasks": 100,
+ "timeout": 3600,
+ "task_timeout": 300,
+ "max_retries": 3,
+ "parallel": false,
+ "background": false,
+ "monitoring": false,
+ "quality_threshold": 0.8,
+ "resource_limits": {
+ "max_memory_mb": 1024,
+ "max_cpu_percent": 80,
+ "max_network_mbps": 100
+ },
+ "output_formats": [
+ "json"
+ ],
+ "output_directory": "./reports",
+ "verbose": false
+ },
+ "tasks": [
+ {
+ "id": "a3746893-f3ac-4841-a442-9aaf0fc1e812",
+ "objective": "Build REST API",
+ "description": "Benchmark task: Build REST API",
+ "strategy": "development",
+ "mode": "centralized",
+ "parameters": {},
+ "timeout": 300,
+ "max_retries": 3,
+ "priority": 1,
+ "status": "pending",
+ "created_at": "2025-08-06T11:40:42.873100",
+ "started_at": null,
+ "completed_at": null,
+ "duration": null,
+ "assigned_agents": [],
+ "parent_task_id": null,
+ "subtasks": [],
+ "dependencies": []
+ }
+ ],
+ "results": [
+ {
+ "id": "25f7ff2d-26b2-4244-bbb3-5b03d74efdc9",
+ "task_id": "a3746893-f3ac-4841-a442-9aaf0fc1e812",
+ "agent_id": "claude-flow",
+ "status": "success",
+ "output": {
+ "raw_output": "\u274c Failed to run SPARC mode: Deno is not defined",
+ "lines": [
+ "\u274c Failed to run SPARC mode: Deno is not defined"
+ ],
+ "sections": {}
+ },
+ "errors": [],
+ "warnings": [],
+ "performance_metrics": {
+ "execution_time": 0.299224853515625,
+ "queue_time": 0.0,
+ "throughput": 3.3419683834778176,
+ "success_rate": 1.0,
+ "error_rate": 0.0,
+ "retry_count": 0,
+ "coordination_overhead": 0.0,
+ "communication_latency": 0.0
+ },
+ "quality_metrics": {
+ "accuracy_score": 0.0,
+ "completeness_score": 1.0,
+ "consistency_score": 0.0,
+ "relevance_score": 0.0,
+ "overall_quality": 0.5,
+ "review_score": null,
+ "automated_score": null
+ },
+ "resource_usage": {
+ "cpu_percent": 92.7,
+ "memory_mb": 40.165364583333336,
+ "network_bytes_sent": 0,
+ "network_bytes_recv": 0,
+ "disk_bytes_read": 0,
+ "disk_bytes_write": 0,
+ "peak_memory_mb": 64.4609375,
+ "average_cpu_percent": 92.7
+ },
+ "execution_details": {
+ "command": "claude-flow sparc coder Build REST API",
+ "exit_code": 0,
+ "output_lines": 1,
+ "error_count": 1
+ },
+ "created_at": "2025-08-06T11:40:43.178057",
+ "started_at": "2025-08-06T11:40:42.873836",
+ "completed_at": "2025-08-06T11:40:43.177627",
+ "duration": 0.303791
+ }
+ ],
+ "metrics": {
+ "total_tasks": 1,
+ "completed_tasks": 1,
+ "failed_tasks": 0,
+ "total_agents": 0,
+ "active_agents": 0,
+ "average_execution_time": 0.0,
+ "total_execution_time": 1.3062376976013184,
+ "success_rate": 1.0,
+ "throughput": 0.7655574493343199,
+ "resource_efficiency": 0.0,
+ "coordination_efficiency": 1.0,
+ "quality_score": 0.0,
+ "peak_memory_usage": 0.0,
+ "total_cpu_time": 0.0,
+ "network_overhead": 0.0
+ },
+ "created_at": "2025-08-06T11:40:42.873125",
+ "started_at": "2025-08-06T11:40:42.873131",
+ "completed_at": "2025-08-06T11:40:43.178075",
+ "duration": 0.304944,
+ "error_log": [],
+ "metadata": {}
+}
\ No newline at end of file