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/test_swe_single.py

rUve1509141e72f
diff --git a/benchmark/.claude/checkpoints/1754576197.json b/benchmark/.claude/checkpoints/1754576197.json
new file mode 100644
index 0000000000..8ea67f10dd
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754576197.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250807-141637", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:16:37Z", "type": "pre-edit", "original_branch": "swe-bench"}
diff --git a/benchmark/.claude/checkpoints/1754576199.json b/benchmark/.claude/checkpoints/1754576199.json
new file mode 100644
index 0000000000..6a5f3115eb
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754576199.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250807-141639", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:16:39Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 12 ++++++++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +++--- benchmark/.claude/checkpoints/1754576178.json | 1 + benchmark/.claude/checkpoints/1754576180.json | 1 + .../swarm_benchmark/swe_bench/official_integration.py | 18 +++++++++++++++--- 6 files changed, 33 insertions(+), 7 deletions(-) "}
diff --git a/benchmark/swe-bench-official/results/evaluation_report_1754576225.json b/benchmark/swe-bench-official/results/evaluation_report_1754576225.json
new file mode 100644
index 0000000000..862fe7e7e5
--- /dev/null
+++ b/benchmark/swe-bench-official/results/evaluation_report_1754576225.json
@@ -0,0 +1,22 @@
+{
+ "dataset": "SWE-bench-Lite",
+ "instances_evaluated": 1,
+ "successful_patches": 0,
+ "success_rate": 0.0,
+ "average_duration": 0.0013573169708251953,
+ "configuration": {
+ "mode": "mesh",
+ "strategy": "optimization",
+ "max_agents": 8
+ },
+ "timestamp": "2025-08-07T14:17:05.657732",
+ "results": [
+ {
+ "instance_id": "astropy__astropy-12907",
+ "success": false,
+ "patch": "",
+ "duration": 0.0013573169708251953,
+ "error": "No patch generated"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/benchmark/swe-bench-official/results/predictions.json b/benchmark/swe-bench-official/results/predictions.json
new file mode 100644
index 0000000000..1a9c3527ec
--- /dev/null
+++ b/benchmark/swe-bench-official/results/predictions.json
@@ -0,0 +1,7 @@
+{
+ "astropy__astropy-12907": {
+ "model_patch": "",
+ "model_name_or_path": "claude-flow-swarm",
+ "instance_id": "astropy__astropy-12907"
+ }
+}
\ No newline at end of file
diff --git a/benchmark/test_swe_single.py b/benchmark/test_swe_single.py
new file mode 100644
index 0000000000..984cecdb90
--- /dev/null
+++ b/benchmark/test_swe_single.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python3
+"""
+Test SWE-bench with a single instance to debug
+"""
+
+import asyncio
+import sys
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).parent / "src"))
+
+from swarm_benchmark.swe_bench.official_integration import OfficialSWEBenchEngine
+from swarm_benchmark.core.models import BenchmarkConfig, StrategyType, CoordinationMode
+
+
+async def test_single():
+ """Test a single SWE-bench instance."""
+
+ print("Testing single SWE-bench instance...")
+
+ config = BenchmarkConfig(
+ name="SWE-Test",
+ description="Testing",
+ strategy=StrategyType.OPTIMIZATION,
+ mode=CoordinationMode.MESH,
+ max_agents=8,
+ task_timeout=120, # 2 minutes for testing
+ output_directory="benchmark/swe-bench-official/test"
+ )
+
+ engine = OfficialSWEBenchEngine(config)
+
+ # Load dataset
+ print("Loading dataset...")
+ if not await engine.load_dataset(use_lite=True):
+ print("Failed to load dataset")
+ return
+
+ # Get first instance
+ instance = engine.dataset[0]
+ print(f"\nTesting: {instance['instance_id']}")
+ print(f"Repo: {instance['repo']}")
+
+ # Run it
+ result = await engine.run_instance(instance)
+
+ print(f"\nResult:")
+ print(f" Success: {result['success']}")
+ print(f" Duration: {result['duration']:.1f}s")
+ print(f" Patch length: {len(result.get('patch', ''))} chars")
+ print(f" Error: {result.get('error')}")
+
+ if result.get('patch'):
+ print(f"\nPatch preview:")
+ print(result['patch'][:500])
+
+
+if __name__ == "__main__":
+ asyncio.run(test_single())
\ No newline at end of file