r/coolgithubprojects • u/Queasy_Beautiful_31 • 19h ago
Local AI PR-review CLI that caught a real concurrency bug — and also confidently hallucinated a deadlock (here's how I caught that too)
https://github.com/Spacexcx/pr-checkLocal CLI that reads your git diff (or a GitHub PR URL), sends it to Gemini, flags files worth a second look before you push — with a required exact quote from the diff as evidence for every flag.
Tested it against a small batch of real merged Godot PRs. Caught a real concurrency bug, correctly stayed quiet on clean PRs — and also produced one confident, well-evidenced, completely wrong flag (claimed a deadlock, but the mutex type was actually recursive so it wasn't one). Added a second pass that now catches exactly that kind of error by asking the model to name its own unverified assumptions.
Repo + README: github.com/Spacexcx/pr-check
If you don't want to bother with the Gemini API key setup — paste a link to one of your own merged/open PRs here and I'll run it and post the output. Genuinely curious how it holds up outside my own testing.
1
u/Obvious-Comedian-495 11h ago
I have been working on a similar problem for past 2 months, and the approach is very similar to the initial versions of our current solution. Hope it helps.
To consider for next versions: 0. Accuracy ( cos no one would believe the dev) 1. How to handle big PR (>40 files) ? 2. Addition of new files. ( codebase structure, architecture rules, coding guidelines, solution principles) 3. Correlation between blast radius and changes. 4. Regression on existing flow.