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/src/swarm_benchmark/cli/main.py

rUvd7104e54a929
diff --git a/benchmark/.claude/checkpoints/1754488371.json b/benchmark/.claude/checkpoints/1754488371.json
new file mode 100644
index 0000000000..7025c23dab
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754488371.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250806-135251", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py", "timestamp": "2025-08-06T13:52:51Z", "type": "pre-edit", "original_branch": "alpha-88"}
diff --git a/benchmark/.claude/checkpoints/1754488373.json b/benchmark/.claude/checkpoints/1754488373.json
new file mode 100644
index 0000000000..73c049e07d
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754488373.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250806-135253", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py", "timestamp": "2025-08-06T13:52:53Z", "type": "post-edit", "branch": "alpha-88", "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/task-1754488349.json | 1 + benchmark/src/swarm_benchmark/cli/main.py | 6 +++--- claude-flow-wiki | 0 6 files changed, 20 insertions(+), 7 deletions(-) "}
diff --git a/benchmark/src/swarm_benchmark/cli/main.py b/benchmark/src/swarm_benchmark/cli/main.py
index 48d6ba403b..db81e455c3 100644
--- a/benchmark/src/swarm_benchmark/cli/main.py
+++ b/benchmark/src/swarm_benchmark/cli/main.py
@@ -61,10 +61,9 @@ def cli(ctx, verbose, config, mock, claude_flow_path, timeout, stream):
help='Output directory (default: ./reports)')
@click.option('--name', help='Benchmark name')
@click.option('--description', help='Benchmark description')
[email protected]('--real-metrics', is_flag=True, help='Use real metrics collection (default: False)')
@click.pass_context
def run(ctx, objective, strategy, mode, max_agents, max_tasks, timeout, task_timeout,
- max_retries, parallel, monitor, output_formats, output_dir, name, description, real_metrics):
+ max_retries, parallel, monitor, output_formats, output_dir, name, description):
"""Run a swarm benchmark with the specified objective.
OBJECTIVE: The goal or task for the swarm to accomplish
@@ -93,16 +92,19 @@ def run(ctx, objective, strategy, mode, max_agents, max_tasks, timeout, task_tim
verbose=ctx.obj.get('verbose', False)
)
+ # Always use real execution by default unless --mock flag is set
+ use_real = ctx.obj.get('real', True)
+
if ctx.obj.get('verbose'):
click.echo(f"Running benchmark: {config.name}")
click.echo(f"Objective: {objective}")
click.echo(f"Strategy: {strategy}")
click.echo(f"Mode: {mode}")
- click.echo(f"Real metrics: {'Enabled' if real_metrics else 'Disabled'}")
+ click.echo(f"Execution: {'Real claude-flow' if use_real else 'Mock'}")
# Run the benchmark
try:
- result = asyncio.run(_run_benchmark(objective, config, real_metrics))
+ result = asyncio.run(_run_benchmark(objective, config, use_real))
if result:
click.echo(f"✅ Benchmark completed successfully!")