π 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/cli/main.py
rUvc65358dd3197
diff --git a/.claude/checkpoints/task-1754481099.json b/.claude/checkpoints/task-1754481099.jsonnew file mode 100644index 0000000000..815db0b6a0--- /dev/null+++ b/.claude/checkpoints/task-1754481099.json@@ -0,0 +1 @@+{"checkpoint": "task-20250806-115138", "task": "can i improve the report to include the refernce to the file and details? @ruvnet β /workspaces/cl", "timestamp": "2025-08-06T11:51:39Z", "commit": "c652668c0d4041b6ef3d488f5b3139f05376b8e1", "github_release": "true"}diff --git a/benchmark/src/swarm_benchmark/cli/main.py b/benchmark/src/swarm_benchmark/cli/main.pyindex 211cbae4d1..296c21bfab 100644--- a/benchmark/src/swarm_benchmark/cli/main.py+++ b/benchmark/src/swarm_benchmark/cli/main.py@@ -305,10 +305,68 @@ def swarm(ctx, objective, strategy, mode, sparc_mode, all_modes, max_agents, timresult = asyncio.run(_run_real_benchmark(objective, config, sparc_mode, all_modes))if result:- click.echo(f"β Real benchmark completed successfully!")- click.echo(f"π Results saved to: {output_dir}")+ # Generate detailed report+ click.echo(f"\n{'='*60}")+ click.echo(f"β Real Benchmark Completed Successfully!")+ click.echo(f"{'='*60}")++ # Basic info+ click.echo(f"π Objective: {objective}")+ click.echo(f"π― Strategy: {strategy.upper()}")+ click.echo(f"π Mode: {mode.upper()}")++ # Metrics if available+ if 'metrics' in result:+ metrics = result['metrics']+ click.echo(f"\nπ Performance Metrics:")+ if 'wall_clock_time' in metrics:+ click.echo(f" β±οΈ Execution Time: {metrics['wall_clock_time']:.2f}s")+ if 'tasks_per_second' in metrics:+ click.echo(f" β‘ Tasks/Second: {metrics['tasks_per_second']:.2f}")+ if 'success_rate' in metrics:+ click.echo(f" β Success Rate: {metrics['success_rate']:.1%}")+ if 'peak_memory_mb' in metrics:+ click.echo(f" πΎ Peak Memory: {metrics['peak_memory_mb']:.1f} MB")+ if 'average_cpu_percent' in metrics:+ click.echo(f" π₯οΈ Avg CPU: {metrics['average_cpu_percent']:.1f}%")++ # File outputs+ import os+ from pathlib import Path+ output_path = Path(output_dir)+ output_path.mkdir(parents=True, exist_ok=True)++ benchmark_id = result.get('benchmark_id', 'latest')++ click.echo(f"\nπ Output Files:")++ # Main results file+ results_file = output_path / f"benchmark_{benchmark_id}.json"+ click.echo(f" π Results: {results_file}")++ # Save results+ import json+ with open(results_file, 'w') as f:+ json.dump(result, f, indent=2, default=str)++ # Check for additional files+ metrics_file = output_path / f"metrics_{benchmark_id}.json"+ if metrics_file.exists():+ click.echo(f" π Metrics: {metrics_file}")++ process_file = output_path / f"process_report_{benchmark_id}.json"+ if process_file.exists():+ click.echo(f" π Process Report: {process_file}")++ # Summary+ click.echo(f"\nπ Summary:")+ click.echo(f" {result.get('summary', 'Benchmark completed successfully')}")+if ctx.obj.get('verbose'):- click.echo(f"π Summary: {result.get('summary', 'N/A')}")+ click.echo(f"\nπ Detailed Results:")+ click.echo(json.dumps(result.get('metrics', {}), indent=2, default=str))++ click.echo(f"{'='*60}\n")else:click.echo("β Real benchmark failed!")return 1