π 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/swe_bench_command.py
rUv7dec5f0370c9
diff --git a/benchmark/.claude/checkpoints/1754575086.json b/benchmark/.claude/checkpoints/1754575086.jsonnew file mode 100644index 0000000000..35284f2ede--- /dev/null+++ b/benchmark/.claude/checkpoints/1754575086.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250807-135806", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/swe_bench_command.py", "timestamp": "2025-08-07T13:58:06Z", "type": "pre-edit", "original_branch": "swe-bench"}diff --git a/benchmark/.claude/checkpoints/1754575087.json b/benchmark/.claude/checkpoints/1754575087.jsonnew file mode 100644index 0000000000..1d63573186--- /dev/null+++ b/benchmark/.claude/checkpoints/1754575087.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250807-135807", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/swe_bench_command.py", "timestamp": "2025-08-07T13:58:07Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +++--- benchmark/.claude/checkpoints/1754575074.json | 1 + benchmark/.claude/checkpoints/1754575076.json | 1 + .../src/swarm_benchmark/cli/swe_bench_command.py | 1 + 6 files changed, 31 insertions(+), 4 deletions(-) "}diff --git a/benchmark/src/swarm_benchmark/cli/swe_bench_command.py b/benchmark/src/swarm_benchmark/cli/swe_bench_command.pyindex bfc2f8368c..d4c00baf81 100644--- a/benchmark/src/swarm_benchmark/cli/swe_bench_command.py+++ b/benchmark/src/swarm_benchmark/cli/swe_bench_command.py@@ -126,6 +126,104 @@ def status(ctx, output):click.echo(f" - Optimization Effective: {'β ' if imp.get('optimization_effective') else 'β'}")+@swe_bench.command('official')[email protected]('--lite', is_flag=True, default=True, help='Use SWE-bench-Lite (300 instances)')[email protected]('--limit', '-l', type=int, help='Limit number of instances to evaluate')[email protected]('--mode', '-m', type=click.Choice(['hierarchical', 'mesh', 'distributed', 'centralized']),+ default='mesh', help='Coordination mode (default: mesh - optimal)')[email protected]('--strategy', '-s', type=click.Choice(['development', 'optimization', 'testing', 'analysis']),+ default='optimization', help='Strategy (default: optimization - optimal)')[email protected]('--agents', '-a', type=int, default=8, help='Number of agents (default: 8 - optimal)')[email protected]('--output', '-o', type=click.Path(), help='Output directory')[email protected]('--validate', is_flag=True, help='Validate submission format only')[email protected]_context+def official(ctx, lite, limit, mode, strategy, agents, output, validate):+ """Run OFFICIAL SWE-bench evaluation with real dataset.++ This command uses the official SWE-bench dataset from Princeton+ and generates predictions suitable for leaderboard submission.++ Examples:+ # Run on first 10 instances of SWE-bench-Lite+ swarm-bench swe-bench official --limit 10++ # Run full SWE-bench-Lite (300 instances)+ swarm-bench swe-bench official++ # Validate existing predictions+ swarm-bench swe-bench official --validate --output predictions.json+ """++ # Create configuration with optimal settings+ config = BenchmarkConfig(+ name="Official-SWE-bench",+ description="Official SWE-bench evaluation",+ strategy=StrategyType[strategy.upper()],+ mode=CoordinationMode[mode.upper()],+ max_agents=agents,+ output_directory=output or "benchmark/swe-bench-official/results"+ )++ # Initialize official engine+ engine = OfficialSWEBenchEngine(config)++ if validate:+ # Just validate existing predictions+ predictions_file = output or "benchmark/swe-bench-official/results/predictions.json"+ click.echo(f"\nπ Validating: {predictions_file}")++ is_valid = asyncio.run(engine.validate_submission(predictions_file))++ if is_valid:+ click.echo("β Submission is valid and ready for upload!")+ click.echo("\nTo submit to leaderboard:")+ click.echo("1. Visit: https://www.swebench.com/submit")+ click.echo(f"2. Upload: {predictions_file}")+ else:+ click.echo("β Submission has validation errors")+ return++ # Run evaluation+ click.echo(f"""+ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+β Official SWE-bench Evaluation β+β β+β Dataset: {'SWE-bench-Lite (300)' if lite else 'SWE-bench Full (2,294)'}{' ' if lite else ' '}β+β Mode: {mode:<20} β+β Strategy: {strategy:<20} β+β Agents: {agents:<20} β+ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ+""")++ if limit:+ click.echo(f"β οΈ Limited to first {limit} instances for testing")++ click.confirm("Ready to start official evaluation?", abort=True)++ # Run the evaluation+ results = asyncio.run(engine.run_evaluation(+ instances_limit=limit,+ use_lite=lite,+ save_predictions=True+ ))++ # Display results+ if "error" not in results:+ click.echo(f"\nβ Evaluation Complete!")+ click.echo(f" Success Rate: {results['success_rate']:.1%}")+ click.echo(f" Instances: {results['instances_evaluated']}")+ click.echo(f" Avg Duration: {results['average_duration']:.1f}s")++ predictions_file = Path(config.output_directory) / "predictions.json"+ click.echo(f"\nπ€ Predictions ready for submission: {predictions_file}")+ click.echo("\nNext steps:")+ click.echo("1. Review predictions.json")+ click.echo("2. Run validation: swarm-bench swe-bench official --validate")+ click.echo("3. Submit to: https://www.swebench.com/submit")+ else:+ click.echo(f"β Evaluation failed: {results['error']}")++@swe_bench.command()@click.option('--target-success', '-s', type=float, default=0.8, help='Target success rate')@click.option('--target-duration', '-d', type=float, default=15.0, help='Target average duration')