prism-review
About the project
prism-review is a local-first pull request reviewer for freelancers and small agencies who cannot send client code to a cloud AI service (NDA).
You paste a PR title, description and diff. A local Gemma 4 (E4B) model, running through Ollama on the developer’s own laptop, returns a first-pass review in a fixed schema: category, quality (1-5), risk, summary, reasons, missing items, a needs_human flag and an editable, polite reply draft. It never merges, closes or comments on anything; a human always decides.
Why local and open: client code never leaves the machine, there is no per-PR fee, and the model is one setting. Honest trade-off: a large cloud model is probably more accurate; we did not measure that.
How it works: web UI -> FastAPI backend -> Ollama/Gemma. The reply is constrained to a Pydantic schema and validated again (one retry, otherwise a clear 503 error). Treating PR text as hostile input, we use two layers against prompt injection: a warning in the prompt plus a code-level guard (English and Turkish phrase patterns) that forces needs_human = true.
Measured, with limits: on 22 real public PRs, the model matched category 19/22 against one labeller and 5/22 against the other; the two humans agreed with each other on only 5/22, so we report no single accuracy. Valid JSON 22/22, median 1.8 s per review. The guard is a phrase list, tested only by a small smoke test (6 held-out attacks, 6/6).
Not built: GitHub integration (you paste the PR text), contributor history, a real Ollama health check.
Tests: 55 backend + frontend tests, GitHub Actions CI, protected main.
Built with
AI tools
Prize Categories Entered
- Submitted
Best Use of Gemma 4
- Submitted

Best Open-Source AI Project
- Event prizeSubmitted
Best Use of GitHub Copilot