Skip to content

Run Martian Review Bench #123

Closed
Closed

Description

@berry1001

Would be really cool to run Pullfrog on Martian Bench review to see how it scores compared to closed source alternatives
https://codereview.withmartian.com/

Activity

  1. pullfrog commented on Oct 28, 2026

    @pullfrog
    Contributor

    Plan: benchmark Pullfrog on Martian Code Review Bench

    This can be done, but most of the work is operational (setting up forks, running Pullfrog on them, running Martian's Python pipeline). Little of it is code in this repo. No duplicate issues were found.

    What the benchmark is

    withmartian/code-review-benchmark (MIT) has two tracks:

    • Offline: 50 PRs from Sentry, Grafana, Cal.com, Discourse and Keycloak, each with human-verified "golden comments" labelled by severity. An LLM judge (Opus 4.5, GPT-5.2 or Sonnet 4.5) matches a tool's comments to the golden set and reports precision, recall and F-beta under Strict, Core and All category profiles.
      • Line-level comments are scored directly.
      • General comments go through an LLM that pulls out individual issues first.
    • Online: Martian finds merged public PRs reviewed by bots and tracks which bot comments developers actually fixed. The maintainers run this themselves. To be listed, a tool needs about 600–1,000 publicly reviewed PRs across varied orgs, repos and authors, and its reviews must be attributable, for example to a bot account like pullfrog[bot].

    We can run the offline track ourselves today. The online track is up to Martian once Pullfrog has enough public review volume.

    Milestone 1 — Run the offline track

    1. Set up a benchmark org. Fork the 5 source repos into a dedicated GitHub org, following the README's step 0 (its examples use an org named code-review-benchmark). In each fork:

      • Install the Pullfrog GitHub App.
      • Add .github/workflows/pullfrog.yml and the model API key secret.
      • Turn on auto review for opened PRs in the Pullfrog repo settings (this is server-side).
    2. Fix the configuration and write it down. Pullfrog works with any model, so the score belongs to a specific setup, not to "Pullfrog" in general. Record:

      • model and effort level
      • harness (claude-code, codex or opencode)
      • action version (currently 0.1.102)
      • any repo-level modeInstructions

      Default modes, with no benchmark-specific prompt tuning, are the fair baseline. If budget allows, run 2–3 models, e.g. a Claude Opus run and a GPT/Codex run.

    3. Recreate the 50 PRs in the forks so each one triggers a normal pull_request_opened → Review run. Wait until all 50 reviews are posted. Re-run any that time out or fail, and log which ones.

    4. Run Martian's pipeline. Add the tool name to the download config. The README doesn't name the file, so look in offline/code_review_benchmark/. Then run:

      uv run python -m code_review_benchmark.step1_download_prs --output results/benchmark_data.json
      uv run python -m code_review_benchmark.step2_extract_comments
      uv run python -m code_review_benchmark.step2_5_dedup_candidates
      uv run python -m code_review_benchmark.step3_judge_comments --dedup-groups results/${MARTIAN_MODEL}/dedup_groups.json
      

      offline/.env needs a GitHub token and a judge API key. Use the same judge model(s) as the published leaderboard so the numbers are comparable.

    5. Compare in offline/analysis/benchmark_dashboard.html against the published tools (CodeRabbit, Copilot, Cubic, Greptile, Qodo, Augment and others).

    Milestone 2 — Check for scoring artifacts before publishing

    Pullfrog posts more than findings, and the extractor may count that extra text as issues, which would lower precision:

    • Review body preamble. The **Reviewed changes** bullet list (modes.ts, Review default format) describes the change; it doesn't report problems. If the general-comment extractor turns those bullets into issue candidates, they will count as false positives.
    • Progress comment. The "Leaping into action…" comment, which later becomes the final summary, is a second general comment from pullfrog[bot] on every PR.

    Check step2_extract_comments output for Pullfrog-specific noise. If there is any, report it as a scoring artifact; don't quietly reshape Pullfrog's output just for the benchmark. Users may set progressComments: false, so a run with it off is a legitimate variant to report.

    Milestone 3 — Publish and go online

    1. Publish results with the full configuration from milestone 1 step 2, as a blog post or docs page. Optionally open a PR or post in Martian's Discord to get Pullfrog onto the offline leaderboard.
    2. For the online track, ask the maintainers to add pullfrog[bot] to their tracked bots once there are enough public reviews.

    Changes in this repo

    None are needed to run the benchmark. Possible follow-ups, depending on milestone 2:

    • If the preamble or progress comment measurably hurts precision and that reflects a real problem for users, change it in modes.ts / progress comment handling under its own issue.
    • Real misses found by the judge (golden comments Pullfrog didn't catch) are worth turning into Review-mode prompt issues.

    Open questions for maintainers

    • Who runs it? Who owns the org and the API budget? 50 reviews × the number of model configs, plus the judge calls.
    • Which model(s) count as the "official" Pullfrog entry?
    • Publish internally only, or submit to the public leaderboard?
    Sources
    Task list (3/3 completed)
    • Gather context on Martian bench and repo
    • Draft plan
    • Post plan via report_progress

    Pullfrog  | Implement plan ➔ | View workflow run | via Pullfrog | Using claude-opus-5-5 (free via Pullfrog for OSS) | 𝕏

  2. colinhacks commented on Oct 29, 2026

    @colinhacks
    Member

    We ran it: Pullfrog (Opus 5.5 on the Claude Code harness) on all 50 PRs of the offline track through the production app, with every tool on the board re-judged by the same judge (Opus 4.5, Core profile).

    • Recall 58–63%, level with the leaders, and more of the critical- and high-severity golden comments than any other tool: 47–50 of 66, against 46 for the best of the rest.
    • F1 43–45%, 12th–15th of 23, held down by precision (~34%).

    The precision number needs context. The golden set lists about three comments per PR, and a finding that matches none of them counts as a false positive, however real it is. Most of the "false positives" we checked by hand were real bugs the golden set doesn't list; withmartian/code-review-benchmark#69 reports the same from another team. Martian itself treats this offline set as a supporting signal and its online benchmark, scored on what developers actually fix, as the headline.

    So we used it for what it's good at. It showed that nearly half of the review's findings were missing tests, nitpicks and speculative concerns, and since v0.1.97 the review sticks to defects. A must-fix-only variant scored about as well, but got there by dropping real high-severity bugs, so we didn't ship it.

    As a held-out check, with nothing tuned against it, we also ran Qodo's PR-Review-Bench, whose ground truth lists every defect in each PR. Pullfrog scored 60.4% F1, level with Qodo's own exhaustive mode (59.9%) and ahead of every other tool on Qodo's published board, with the best bug-finding score (bug F1 69.2% against Qodo's 61.6%).

    Closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions