r/codereview • • 2d ago

I built an open-source Claude Code plugin that reviews PRs and then fixes its own review comments. Looking for feedback

https://github.com/subhiandrews/codecheck

I've been building code-check, a Claude Code & Codex plugin plus a Python CLI for PR review and review-comment handling. Works with Github and Gitlab. I'd like feedback from people who'd actually use it.

The design. The deterministic parts are plain Python: diff parsing, finding validation, dedupe, anchoring comments to the right lines, policy, state, and the git and gh calls. The LLM does only the judgment work: reviewing, aggregating, and addressing comments. That keeps a model slip from putting a comment on the wrong line or posting to the wrong PR.

What it does:

review-pr and review-local: a panel of reviewer subagents (language experts, skeptic, architect, docs, and optional security and performance) reviews a PR or your own branch. An aggregator merges the findings, and one inline review is posted with Critical, Warning and Suggestion levels. review-local never posts.

address-comments: works through the review threads on your own PR. It checks each claim against the code before acting, fixes the valid ones, pushes back with evidence on the rest, and pushes behind a test gate. It also merges the base branch (never a rebase) and fixes failing CI, then replies to and resolves each thread.

babysit-pr: loops the above under /loop. It stops after 5 rounds per PR and skips PRs that are down to a few Suggestions, because the late rounds were almost all nitpicks.

Project guidance: a CODE_CHECK.md in the repo tells the reviewers your rules. It's read from the base branch, so a PR can't rewrite the rules it's judged by.

Safety defaults: it never force-pushes, never posts to draft PRs, and doesn't review its own PRs. Anything from a PR that reaches git or gh is guarded against option injection.

Feedback skill: it files a GitHub issue about code-check only after you've read the exact text and said yes. It never asks when running unattended.

Honest limit. I haven't tested it extensively on codex or gitlab - only limited testing.

What I'd like feedback on:

  1. Does the split between deterministic code and LLM work make sense, or is it over-engineered?
  2. Would you trust something like address-comments to push to your PR, and what guardrails would you want?
  3. What would make you turn the review noise off, and what's missing from the panel?

Repo: https://github.com/subhiandrews/codecheck

Happy to answer questions or take criticism.

0 Upvotes

5 comments sorted by

2

u/fuckme 1d ago

You mentioned Codex had seen limited testing, so I ran your native review-local panel on 30 external PRs, 10 each from Cal.com, Keycloak and Sentry. (from the review-bench.ai set)

Disclosure: I work on Assay (https://pr-agent.assay.guide/) , which we used as the comparison. Every reviewer and the aggregator used Codex GPT‑6.2 Sol through the subscription.

Assay Regular got one call per PR and a 6k supplied prompt. CodeCheck got its native panel and no token cap.

The result I’d want to know as the author: your panel caught 28 of 35 high/critical reference defects. Our regular reviewer caught 9. Across all severities it was 54/86 versus 20/86. That’s a good reason to reach for your panel on a change where missing something serious is expensive.

On noise, CodeCheck emitted 281 findings across those PRs and Assay emitted 61. Reference-match precision was 17.1% versus 32.8%, and F1 was close at 26.9% versus 27.2%. The expert lists only contain known positives, so an unmatched comment can still be right. What I’d want as a reviewer is a short inline list ranked by concrete consequence, with the rest of the panel’s work available to expand. I’d keep the broad search that found those 28 serious defects.

Yes to the Python/model split. Keeping line anchoring deterministic and taking project rules from the base branch are two decisions I’d borrow. For address-comments, I’d start with a proposed patch and the exact test result, then opt particular repos into pushing once I’d seen it handle disputed comments well. We tested review-local only, so that’s a preference, not a finding about your fixer.

One thing we did hit: all 30 PRs got a review, but 12 role calls timed out and seven reviews came from partial panels. I’d want to see which specialist missed the deadline and be able to retry just that role. If you had to cut the panel’s spend in half while keeping those high-severity catches, which role or repeated read would you look at first?

Cheers

--Ian

1

u/Prize_Amoeba_7868 1d ago

Thanks for doing that. One of the challenges of building something like this in Open Source is that there isn't a bunch of labeled organizational PRs that you can benchmark this against. I tried doing it against a couple of Open Source repos and didn't do too much since I risked annoying the code owners.

I didn't know that review-bench.ai set existed. Since I am on Claude Ultra plan personally, I will use that to improve recall on Claude first and then on Codex.

I have some ideas around cost optimization. That's second after recall.

1

u/Prize_Amoeba_7868 1d ago

This was the baseline results in Claude:

Precision against reference: 89.5
Precision counting real ones missing in reference: 91.8
Recall all severities: 35.4
Recall high severity: 40.6

2

u/Sataric-Parsy 1d ago

yeah keeping the line anchoring deterministic is huge, models are terrible at line numbers