skill_benchmark
skill_benchmark
¶
SkillBenchmarkRunner — orchestrate the 4-condition × N-seed × M-task PinchBench sweep that measures whether skills + DSPy/GEPA optimization improves agent performance.
Plan 2B implementation. See: docs/superpowers/specs/2026-04-08-skills-benchmark-evaluation-design.md
Classes¶
SkillBenchmarkConfig
dataclass
¶
SkillBenchmarkConfig(benchmark: str = 'pinchbench', model: str = 'qwen3.5:9b', engine: str = 'ollama', agent: str = 'native_react', tools: List[str] = (lambda: ['calculator', 'think', 'shell_exec', 'web_search', 'file_read', 'file_write'])(), seeds: List[int] = (lambda: [42, 43, 44])(), max_samples: Optional[int] = None, output_dir: Path = (lambda: Path('docs/superpowers/results/'))(), skills_dir: Path = (lambda: expanduser())(), overlay_dir_dspy: Path = (lambda: expanduser())(), overlay_dir_gepa: Path = (lambda: expanduser())())
Configuration for a single SkillBenchmarkRunner sweep.
ConditionResult
dataclass
¶
ConditionResult(condition: str, seeds: List[int], per_seed_pass_rate: Dict[int, float], mean_pass_rate: float, stddev_pass_rate: float, per_task_results: Dict[str, List[bool]], skill_invocation_counts: Dict[str, int], total_tokens: int, total_runtime_seconds: float)
Aggregated result for a single condition across all seeds.
ConditionComparison
dataclass
¶
ConditionComparison(config: SkillBenchmarkConfig, started_at: str, ended_at: str, results: Dict[str, ConditionResult], deltas: Dict[str, float])
Top-level result of a SkillBenchmarkRunner sweep.
SkillBenchmarkRunner
¶
SkillBenchmarkRunner(config: SkillBenchmarkConfig)
Orchestrates the 4-condition × N-seed × M-task PinchBench sweep.
Each condition is a different SystemBuilder configuration: - no_skills: cfg.skills.enabled = False - skills_on: enabled, overlay_dir = empty (no overlays load) - skills_optimized_dspy: enabled, overlay_dir = config.overlay_dir_dspy - skills_optimized_gepa: enabled, overlay_dir = config.overlay_dir_gepa
Per-seed runs share the same backend instantiation but pass a fresh seed to the EvalRunner.
Source code in src/openjarvis/evals/skill_benchmark.py
Functions¶
run_condition
¶
run_condition(condition: str) -> ConditionResult
Run the benchmark for condition across all configured seeds.
Returns a ConditionResult with mean ± stddev pass rate and the per-task / per-skill aggregations.
Source code in src/openjarvis/evals/skill_benchmark.py
run_all_conditions
¶
run_all_conditions() -> ConditionComparison
Run all 4 conditions × all seeds.
Returns a ConditionComparison with per-condition results and the computed deltas (skills_on - no_skills, etc.).
Source code in src/openjarvis/evals/skill_benchmark.py
write_report
¶
write_report(comparison: ConditionComparison) -> Path
Write a markdown report to output_dir.
Filename: pinchbench-skills-eval-{YYYY-MM-DD}.md
Source code in src/openjarvis/evals/skill_benchmark.py
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 | |