🌊 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
rUvf6f062a49369
diff --git a/benchmark/.claude/checkpoints/1754447973.json b/benchmark/.claude/checkpoints/1754447973.jsonnew file mode 100644index 0000000000..259c3bcc46--- /dev/null+++ b/benchmark/.claude/checkpoints/1754447973.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250806-023933", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py", "timestamp": "2025-08-06T02:39:33Z", "type": "pre-edit", "original_branch": "alpha-88"}diff --git a/benchmark/.claude/checkpoints/1754447975.json b/benchmark/.claude/checkpoints/1754447975.jsonnew file mode 100644index 0000000000..3b5bdc859d--- /dev/null+++ b/benchmark/.claude/checkpoints/1754447975.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250806-023935", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py", "timestamp": "2025-08-06T02:39:35Z", "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/1754447970.json | 1 + benchmark/.claude/checkpoints/1754447972.json | 1 + .../optimized_benchmark_engine.cpython-312.pyc | Bin 15770 -> 15428 bytes .../src/swarm_benchmark/optimization/engine.py | 12 ++- claude-flow-wiki | 0 8 files changed, 136 insertions(+), 6 deletions(-) "}diff --git a/benchmark/src/swarm_benchmark/optimization/engine.py b/benchmark/src/swarm_benchmark/optimization/engine.pyindex cf408f6564..bd339120c5 100644--- a/benchmark/src/swarm_benchmark/optimization/engine.py+++ b/benchmark/src/swarm_benchmark/optimization/engine.py@@ -422,8 +422,15 @@ class AsyncFileManager:try:Path(file_path).parent.mkdir(parents=True, exist_ok=True)- async with aiofiles.open(file_path, 'w') as f:- await f.write(content)+ if AIOFILES_AVAILABLE and aiofiles:+ async with aiofiles.open(file_path, 'w') as f:+ await f.write(content)+ else:+ # Fallback to synchronous write+ with open(file_path, 'w') as f:+ f.write(content)+ # Simulate async behavior+ await asyncio.sleep(0.001)except Exception as e:print(f"Error writing text to {file_path}: {e}")