🌊 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/optimization/engine.py
rUv122919910006
diff --git a/benchmark/.claude/checkpoints/1754447970.json b/benchmark/.claude/checkpoints/1754447970.jsonnew file mode 100644index 0000000000..32b3c8fa16--- /dev/null+++ b/benchmark/.claude/checkpoints/1754447970.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250806-023930", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py", "timestamp": "2025-08-06T02:39:30Z", "type": "pre-edit", "original_branch": "alpha-88"}diff --git a/benchmark/.claude/checkpoints/1754447972.json b/benchmark/.claude/checkpoints/1754447972.jsonnew file mode 100644index 0000000000..abadc28d33--- /dev/null+++ b/benchmark/.claude/checkpoints/1754447972.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250806-023931", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py", "timestamp": "2025-08-06T02:39:32Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 120 +++++++++++++++++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754447953.json | 1 + benchmark/.claude/checkpoints/1754447955.json | 1 + .../optimized_benchmark_engine.cpython-312.pyc | Bin 15770 -> 15428 bytes .../src/swarm_benchmark/optimization/engine.py | 11 +- claude-flow-wiki | 0 8 files changed, 135 insertions(+), 6 deletions(-) "}diff --git a/benchmark/src/swarm_benchmark/optimization/engine.py b/benchmark/src/swarm_benchmark/optimization/engine.pyindex 0162276185..cf408f6564 100644--- a/benchmark/src/swarm_benchmark/optimization/engine.py+++ b/benchmark/src/swarm_benchmark/optimization/engine.py@@ -399,8 +399,16 @@ class AsyncFileManager:async def readJSON(self, file_path: str) -> Any:"""Read JSON data from file asynchronously."""try:- async with aiofiles.open(file_path, 'r') as f:- content = await f.read()+ if AIOFILES_AVAILABLE and aiofiles:+ async with aiofiles.open(file_path, 'r') as f:+ content = await f.read()+ return json.loads(content)+ else:+ # Fallback to synchronous read+ with open(file_path, 'r') as f:+ content = f.read()+ # Simulate async behavior+ await asyncio.sleep(0.001)return json.loads(content)except Exception as e:print(f"Error reading JSON from {file_path}: {e}")