Repository avatar
Other Tools
v0.2.0
active

stormeval-bench

io.github.marginsystems/stormeval-bench

Open code review benchmark: fetch PR tracks, view scores, and submit runs for free judging.

Documentation

StormEval Bench

Open, reproducible runner for AI code review benchmarks. Run one command on a tool's review comments for Martian's 50-PR offline set and get Strict, Core, and All scores plus the full judged output using Martian's unchanged MIT-licensed extract, deduplicate, and judge pipeline.

If you find StormEval useful, please star this repository.

One-line rerun

Re-score Mergestorm's published Vortex Swarm run (GPT-5.2 judge)

Runs Martian's unchanged extract, dedup, and judge steps against our published 50-PR reviews (requires OPENAI_API_KEY; a full 50-PR GPT-5.2 judge run typically costs about $1.30–$2.00 on your OpenAI account):

OPENAI_API_KEY=sk-... uvx --from git+https://github.com/marginsystems/stormeval-bench \
  stormeval-bench score https://mergestorm.ai/data/vortex-swarm-code-review-bench/dataset.json \
  --max-usd 3.0 --out vortex-swarm-judged.json

Verify the published judged file at $0 (no API calls)

Deterministically checks every hit, miss, and false alarm against Martian's vendored golden answer key:

uvx --from git+https://github.com/marginsystems/stormeval-bench \
  stormeval-bench verify https://mergestorm.ai/data/vortex-swarm-code-review-bench/dataset.json

Expected output for our December 5, 2026 run (mergestorm-vortex-swarm, Core profile, Martian's GPT-5.2 judge):

  • Core (default): 103 found, 56 false alarms, 55 missed — Precision 64.78%, Recall 65.19%, F1 64.98, F2 65.11
  • Strict: 96 found, 56 false alarms, 43 missed — Precision 63.16%, Recall 69.06%, F1 65.98, F2 67.80
  • All: 106 found, 56 false alarms, 67 missed — Precision 65.43%, Recall 61.27%, F1 63.28, F2 62.06

Disclosure: Our December 5, 2026 Vortex Swarm result is a self-run development-set score (we used these public PRs and answer key while building Swarm), scored under Martian's GPT-5.2 judge only (Martian's site shows its Opus 4.5 judge by default), with lower-confidence secondary findings kept in notes rather than posted on the PR. It is not a Martian leaderboard entry; Martian's published numbers are dated September 8, 2026.

Score your own tool

  1. List the 50 pull requests in Martian's offline set:
uvx --from git+https://github.com/marginsystems/stormeval-bench stormeval-bench prs --json > prs.json
  1. Run your reviewer on those 50 PRs and save the comments as JSON:
{
  "tool": "my-reviewer-v1",
  "reviews": [
    {
      "pull_request": "https://github.com/calcom/cal.com/pull/10600",
      "review_body": "Optional PR summary comment.",
      "inline_comments": [
        {
          "path": "packages/features/...",
          "line": 42,
          "body": "Description of the bug."
        }
      ]
    }
  ]
}

You can also pass Martian's native benchmark_data.json format directly, or a flat "comments" list per PR. Both canonical Martian URLs and upstream original_url links are recognized.

  1. Score it with one command:
OPENAI_API_KEY=sk-... uvx --from git+https://github.com/marginsystems/stormeval-bench \
  stormeval-bench score ./my-reviews.json --tool my-reviewer-v1 --max-usd 3.0 --out ./my-judged.json

You can also use Martian's API gateway (MARTIAN_API_KEY=..., default model openai/gpt-5.2, base URL https://api.withmartian.com/v1) or pass --judge and --base-url explicitly. Add --work-dir ./work to keep Martian's intermediate files (benchmark_data.json, candidates.json, dedup_groups.json, evaluations.json) and resume interrupted runs.

Submit to the public board (free sponsored judging)

Mergestorm sponsors GPT-5.2 judge calls for public submissions — up to $10 per team per month (with a $3/run hard stop). Authenticate with either your GitHub token (gh auth token, account at least 30 days old) or a Mergestorm API key (MERGESTORM_API_KEY). Completed scores and raw review comments are published on the public board at https://mergestorm.ai/stormeval.

Via CLI

GITHUB_TOKEN="$(gh auth token)" uvx --from git+https://github.com/marginsystems/stormeval-bench@v0.3.0 \
  stormeval-bench submit ./my-reviews.json \
  --tool "My Reviewer" \
  --tool-version "1.0.0" \
  --runner vendor \
  --wait

Useful subcommands:

  • stormeval-bench tracks — list active tracks (Martian Offline 50 and monthly Fresh TypeScript + Python cohorts)
  • stormeval-bench prs --track fresh-2026-12 --json — fetch the 40 PRs for a monthly Fresh cohort (20 TypeScript + 20 Python; 50% of the answer key is public for audit and 50% is held out server-side so no tool can tune on it)
  • stormeval-bench leaderboard --track martian-offline-50 --profile core
  • stormeval-bench status <submission-id> --wait
  • stormeval-bench quota

Via MCP server

Hosted Streamable HTTP MCP endpoint (no local install):

{
  "mcpServers": {
    "stormeval": {
      "url": "https://api.mergestorm.ai/api/v1/stormeval/mcp"
    }
  }
}

Local stdio MCP server:

{
  "mcpServers": {
    "stormeval-stdio": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/marginsystems/stormeval-bench@v0.3.0",
        "stormeval-bench",
        "mcp"
      ]
    }
  }
}

Read-only tools (stormeval_list_tracks, stormeval_get_prs, stormeval_get_leaderboard, stormeval_get_submission) work without credentials. Pass a Bearer token (Authorization: Bearer ... on HTTP, or GITHUB_TOKEN / MERGESTORM_API_KEY on stdio) for stormeval_check_quota and stormeval_submit_run.

Why Martian's pipeline is vendored unchanged

Every file under src/stormeval_bench/vendor/martian/ (step2_extract_comments.py, step2_5_dedup_candidates.py, step3_judge_comments.py, golden_comments/*.json, and LICENSE) is copied byte-for-byte from withmartian/code-review-benchmark at commit e616e849755441da38f18bf3adba2c9583b03803 — the exact revision behind Martian's published September 8, 2026 leaderboard evaluations.

Verify the vendored files against their SHA-256 manifest at any time:

uvx --from git+https://github.com/marginsystems/stormeval-bench stormeval-bench check-vendor

Optional spend caps (--max-usd) are enforced outside Martian's code via a transparent local pass-through HTTP proxy; pass --direct to connect straight to the API without the local proxy.

Attribution and licences

  • Runner code: MIT License, Copyright (c) 2026 Mergestorm, Inc.
  • Vendored benchmark pipeline and golden comments: MIT License, Copyright (c) 2025 Martian (https://github.com/withmartian/code-review-benchmark).
  • Reviewed pull requests belong to their respective open-source projects (Cal.com, Discourse, Grafana, Keycloak, Sentry) under their own licences.