🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py
rUvd44a219f964e
diff --git a/.claude/checkpoints/1754482178.json b/.claude/checkpoints/1754482178.jsonnew file mode 100644index 0000000000..5ed914c024--- /dev/null+++ b/.claude/checkpoints/1754482178.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250806-120938", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py", "timestamp": "2025-08-06T12:09:38Z", "type": "pre-edit", "original_branch": "alpha-88"}diff --git a/.claude/checkpoints/1754482180.json b/.claude/checkpoints/1754482180.jsonnew file mode 100644index 0000000000..b2a5a4069d--- /dev/null+++ b/.claude/checkpoints/1754482180.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250806-120940", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py", "timestamp": "2025-08-06T12:09:40Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 132 +++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754482088.json | 1 + .claude/checkpoints/1754482089.json | 1 + .../cli/__pycache__/main.cpython-312.pyc | Bin 36741 -> 36756 bytes .../claude_flow_real_executor.cpython-312.pyc | Bin 24769 -> 25899 bytes .../core/claude_flow_real_executor.py | 99 +++++++++++++--- benchmark/test_real_execution.sh | 0 claude-flow-wiki | 0 hello-bench/hello.mjs | 10 ++ ...hmark_97731eac-ba8e-403a-a526-f219d970d10e.json | 38 ++++++ ...trics_97731eac-ba8e-403a-a526-f219d970d10e.json | 66 +++++++++++ ...eport_97731eac-ba8e-403a-a526-f219d970d10e.json | 47 ++++++++ ...lized_97731eac-ba8e-403a-a526-f219d970d10e.json | 132 +++++++++++++++++++++ reports/sparc_tdd_20250806_120824.json | 26 ++++ 16 files changed, 542 insertions(+), 18 deletions(-) "}diff --git a/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py b/benchmark/src/swarm_benchmark/core/real_benchmark_engine.pyindex 3eae951fc0..342bffc89a 100644--- a/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py+++ b/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py@@ -171,24 +171,25 @@ class RealBenchmarkEngine(BenchmarkEngine):command = []# Determine command type based on task+ # Map strategies to valid SPARC modes: spec, architect, tdd, integration, refactorif task.strategy == StrategyType.RESEARCH:- command.extend(["sparc", "researcher", task.objective])+ command.extend(["sparc", "spec", task.objective])elif task.strategy == StrategyType.DEVELOPMENT:- command.extend(["sparc", "coder", task.objective])+ command.extend(["sparc", "tdd", task.objective])elif task.strategy == StrategyType.ANALYSIS:- command.extend(["sparc", "analyzer", task.objective])+ command.extend(["sparc", "architect", task.objective])elif task.strategy == StrategyType.TESTING:- command.extend(["sparc", "tester", task.objective])+ command.extend(["sparc", "integration", task.objective])elif task.strategy == StrategyType.OPTIMIZATION:- command.extend(["sparc", "optimizer", task.objective])+ command.extend(["sparc", "refactor", task.objective])elif "swarm" in task.objective.lower():# Swarm commandcommand.extend(["swarm", task.objective])command.extend(["--strategy", task.strategy.value])command.extend(["--mode", task.mode.value])else:- # Default sparc command- command.extend(["sparc", "orchestrator", task.objective])+ # Default to sparc tdd for generic tasks+ command.extend(["sparc", "tdd", task.objective])# Add common parametersif task.parameters.get("parallel"):diff --git a/reports/benchmark_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json b/reports/benchmark_ec89a47b-d2d2-42f0-8e3a-32343b321be2.jsonnew file mode 100644index 0000000000..5aeab6687c--- /dev/null+++ b/reports/benchmark_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json@@ -0,0 +1,38 @@+{+ "benchmark_id": "ec89a47b-d2d2-42f0-8e3a-32343b321be2",+ "status": "success",+ "summary": "Completed 1 tasks",+ "duration": 0.304876,+ "metrics": {+ "wall_clock_time": 1.3061692714691162,+ "tasks_per_second": 0.7655975545001515,+ "success_rate": 1.0,+ "peak_memory_mb": 0.0,+ "average_cpu_percent": 0.0,+ "total_output_lines": 1+ },+ "results": [+ {+ "id": "c155da24-7555-46cb-a16e-7df2058632a7",+ "task_id": "df49e1c0-2f67-4057-b1e1-7ac14f581608",+ "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": [],+ "execution_time": 0.27749085426330566,+ "resource_usage": {+ "cpu_percent": 92.63333333333333,+ "memory_mb": 41.036458333333336+ },+ "created_at": "2025-08-06T12:09:50.747018",+ "completed_at": "2025-08-06T12:09:50.746542"+ }+ ]+}\ No newline at end of filediff --git a/reports/metrics_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json b/reports/metrics_ec89a47b-d2d2-42f0-8e3a-32343b321be2.jsonnew file mode 100644index 0000000000..04644e9adc--- /dev/null+++ b/reports/metrics_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json@@ -0,0 +1,66 @@+{+ "summary": {+ "wall_clock_time": 1.3061692714691162,+ "tasks_per_second": 0.7655975545001515,+ "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.7655975545001515+ },+ "collectors": {+ "performance": 1,+ "resource": 1+ },+ "timestamp": "2025-08-06T12:09:53.751889",+ "process_executions": {+ "sparc:{\"positional\": [\"coder\", \"Create a simple calculator in ./calc-test/\"]}": {+ "command_type": "sparc",+ "args": {+ "positional": [+ "coder",+ "Create a simple calculator in ./calc-test/"+ ]+ },+ "execution_count": 1,+ "success_count": 1,+ "failure_count": 0,+ "success_rate": 1.0,+ "average_duration": 0.3038344383239746,+ "total_duration": 0.3038344383239746,+ "average_memory_mb": 41.036458333333336,+ "peak_memory_mb": 66.73828125+ }+ }+}\ No newline at end of filediff --git a/reports/process_report_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json b/reports/process_report_ec89a47b-d2d2-42f0-8e3a-32343b321be2.jsonnew file mode 100644index 0000000000..96e9c99ea7--- /dev/null+++ b/reports/process_report_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json@@ -0,0 +1,47 @@+{+ "summary": {+ "total_executions": 1,+ "successful_executions": 1,+ "failed_executions": 0,+ "overall_success_rate": 1.0,+ "total_duration": 0.3038344383239746,+ "average_duration": 0.3038344383239746,+ "peak_memory_mb": 66.73828125,+ "average_memory_mb": 41.036458333333336,+ "total_output_lines": 1,+ "total_errors": 1+ },+ "command_statistics": {+ "sparc:{\"positional\": [\"coder\", \"Create a simple calculator in ./calc-test/\"]}": {+ "command_type": "sparc",+ "args": {+ "positional": [+ "coder",+ "Create a simple calculator in ./calc-test/"+ ]+ },+ "execution_count": 1,+ "success_count": 1,+ "failure_count": 0,+ "success_rate": 1.0,+ "average_duration": 0.3038344383239746,+ "total_duration": 0.3038344383239746,+ "average_memory_mb": 41.036458333333336,+ "peak_memory_mb": 66.73828125+ }+ },+ "executions": [+ {+ "command": "claude-flow sparc coder Create a simple calculator in ./calc-test/",+ "exit_code": 0,+ "success": true,+ "duration": 0.3038344383239746,+ "start_time": 1754482190.442708,+ "output_size": 1,+ "error_count": 1,+ "cpu_percent": 92.63333333333333,+ "memory_mb": 41.036458333333336,+ "peak_memory_mb": 66.73828125+ }+ ]+}\ No newline at end of filediff --git a/reports/real-benchmark-development-centralized_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json b/reports/real-benchmark-development-centralized_ec89a47b-d2d2-42f0-8e3a-32343b321be2.jsonnew file mode 100644index 0000000000..d97a0aa5d5--- /dev/null+++ b/reports/real-benchmark-development-centralized_ec89a47b-d2d2-42f0-8e3a-32343b321be2.json@@ -0,0 +1,132 @@+{+ "id": "ec89a47b-d2d2-42f0-8e3a-32343b321be2",+ "name": "real-benchmark-development-centralized",+ "description": "Real Benchmark: Create a simple calculator in ./calc-test/",+ "status": "completed",+ "config": {+ "name": "real-benchmark-development-centralized",+ "description": "Real Benchmark: Create a simple calculator in ./calc-test/",+ "strategy": "development",+ "mode": "centralized",+ "max_agents": 5,+ "max_tasks": 100,+ "timeout": 300,+ "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": "df49e1c0-2f67-4057-b1e1-7ac14f581608",+ "objective": "Create a simple calculator in ./calc-test/",+ "description": "Benchmark task: Create a simple calculator in ./calc-test/",+ "strategy": "development",+ "mode": "centralized",+ "parameters": {},+ "timeout": 300,+ "max_retries": 3,+ "priority": 1,+ "status": "pending",+ "created_at": "2025-08-06T12:09:50.442136",+ "started_at": null,+ "completed_at": null,+ "duration": null,+ "assigned_agents": [],+ "parent_task_id": null,+ "subtasks": [],+ "dependencies": []+ }+ ],+ "results": [+ {+ "id": "c155da24-7555-46cb-a16e-7df2058632a7",+ "task_id": "df49e1c0-2f67-4057-b1e1-7ac14f581608",+ "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.27749085426330566,+ "queue_time": 0.0,+ "throughput": 3.603722373679096,+ "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.63333333333333,+ "memory_mb": 41.036458333333336,+ "network_bytes_sent": 0,+ "network_bytes_recv": 0,+ "disk_bytes_read": 0,+ "disk_bytes_write": 0,+ "peak_memory_mb": 66.73828125,+ "average_cpu_percent": 92.63333333333333+ },+ "execution_details": {+ "command": "claude-flow sparc coder Create a simple calculator in ./calc-test/",+ "exit_code": 0,+ "output_lines": 1,+ "error_count": 1+ },+ "created_at": "2025-08-06T12:09:50.747018",+ "started_at": "2025-08-06T12:09:50.442708",+ "completed_at": "2025-08-06T12:09:50.746542",+ "duration": 0.303834+ }+ ],+ "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.3061692714691162,+ "success_rate": 1.0,+ "throughput": 0.7655975545001515,+ "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-06T12:09:50.442162",+ "started_at": "2025-08-06T12:09:50.442167",+ "completed_at": "2025-08-06T12:09:50.747043",+ "duration": 0.304876,+ "error_log": [],+ "metadata": {}+}\ No newline at end of file