ReviewGrid is a backend code-review service: POST a diff (or a GitHub PR URL), get back a structured pass/needs_changes/fail verdict with line-anchored issues, callable by any agent or webhook. It combines a deterministic static pass with a model pass and derives the verdict from fixed rules, never from the model's own judgment.
Live endpoint: https://reviewgrid-915b1bbc.base44.app
Live dashboard (no setup, opens in a browser): reviewgrid-915b1bbc.base44.app/functions/review-dashboard?key=rg_view_f498168e348dc31c03148dfe
That key is deliberately read-only — it opens the dashboard and returns 401 on
review-diff and webhook, so a public link can never spend model credits.
Live. Five functions are deployed:
| Function | What it does |
|---|---|
review-diff |
Core endpoint. Takes a diff or pr_url, runs static + LLM analysis, returns verdict/score/issues. |
review-schema |
Returns the machine-readable JSON Schema for the review-diff request/response contract. |
review-dashboard |
Serves a dashboard of past reviews (requests, verdicts, timings) from the DB. |
webhook |
GitHub webhook receiver. Verifies the HMAC signature, reviews the PR diff, posts the verdict as a PR comment. |
ping |
Liveness check. |
Current runtime note. The Base44 account's monthly model quota is spent, so live responses come back with
degraded: ["llm"]— deterministic static findings only, no model pass. Nothing is broken: this is exactly whatdegraded[]exists to tell you, and a caller can distinguish "reviewed and clean" from "could not fully review". Full static+model output is visible in PR #1 and in the dashboard's history.
- Deterministic static analysis (ESLint, 23 fragment-safe rules) for JavaScript and TypeScript
- Every other language is reviewed by the model alone and reports
static_mode: "unavailable" - Identical diffs replay identical verdicts, via a diff-keyed cache — this makes the service
deterministic per diff (same
diffin, sameverdict/scoreout), it does not make the model itself deterministic; the cache is what pins the answer down
Functions are reachable only at the app subdomain above; the platform domain rejects them.
Open a PR against this repo → ReviewGrid reviews the diff automatically and posts a comment with the verdict, score, and issues.
Proof: PR #1 on this repo. ReviewGrid
posted fail, score 15/100, catching:
- a
typeoftypo (static, rulevalid-typeof) - an out-of-bounds array access (llm)
- an undefined dereference (llm)
- Set these secrets on the Base44 app (never commit real values — use a secrets manager or
npx base44 secrets set):GITHUB_TOKEN— a GitHub token with permission to comment on PRs in the target repo.GITHUB_WEBHOOK_SECRET— shared secret used to verify theX-Hub-Signature-256header on every delivery. A missing or wrong secret fails closed.REVIEWGRID_KEY— theX-ReviewGrid-Keythe webhook uses to callreview-diffinternally.REVIEWGRID_DASHBOARD_KEY— optional read-only key that opensreview-dashboardand nothing else. Use this one for any link you share;REVIEWGRID_KEYalso authorises POSTs.
- In the GitHub repo settings, add a webhook:
- Payload URL:
https://reviewgrid-915b1bbc.base44.app/functions/webhook - Content type:
application/json - Secret: the same value as
GITHUB_WEBHOOK_SECRET - Events: Pull requests (opened, synchronize, reopened)
- Payload URL:
Agents that write code cannot tell whether the code they just wrote is acceptable. Today the check is either a human reading a PR, or a bespoke prompt each agent author re-invents and no other agent can reuse. Concretely: an agent finishes a diff, has no verdict, and either ships it blind or hands it to a human. Solved means any agent — not just its author's — can POST a diff and receive a machine-parseable pass/fail with line-anchored issues, and get the same verdict twice for the same diff.
- A second agent, given only
skills/reviewgrid/SKILL.mdand no other context, calls the endpoint and correctly acts on the verdict — without me editing anything. - The same diff submitted three times returns the identical
verdictandscore. - Every returned
linepoints at a line that actually exists in the diff's post-image. - Every request appears as a row in the Base44 DB with timings and outcome.
curl -X POST "https://reviewgrid-915b1bbc.base44.app/functions/review-diff" \
-H "X-ReviewGrid-Key: <key>" \
-H "Content-Type: application/json" \
-d '{
"diff": "string",
"pr_url": "string?",
"base_ref": "string?",
"language_hint": "string?"
}'Prefer pr_url when reviewing a PR: it fetches whole files, which upgrades the static pass to
full_file mode (the highest-accuracy path), instead of the fragment-only mode a raw diff
gets.
Trimmed example response:
line is 1-indexed and refers to the post-image (new) file. Every issue is
guaranteed to anchor to a line the diff actually added.
- Deterministic static analysis covers JavaScript and TypeScript only. Every other language
is reviewed by the model alone and reports
static_mode: "unavailable"— there is no deterministic guarantee for those results. - Results are cached per diff: identical diffs replay identical verdicts and scores
(
cached: true). This makes the service deterministic per diff; it does not make the underlying model deterministic — the cache is what pins the replayed answer.
Don't trust this prose — fetch the live schema:
curl -X POST "https://reviewgrid-915b1bbc.base44.app/functions/review-schema" \
-H "Content-Type: application/json" -d '{}'Returns request_schema / response_schema (JSON Schema draft 2020-12), the auth header, and the verdict/score rules — enough for an agent to call review-diff correctly without reading this README.
| Cut | Re-enter when |
|---|---|
| Multi-user auth / tiers — one shared key | >1 external consumer asks |
| Admin panel — Base44's data browser is the admin panel | Never for v1 |
| Deterministic analysis beyond JS/TS — Python, Go and the rest are model-reviewed only | A non-WASM Python linter exists that runs in this isolate |
Auto-fix / patch output — ESLint supplies fix data, we discard it |
Post-hackathon (cheap: the field is already on every diagnostic) |
| Configurable rules/thresholds engine — hard-coded | The third consumer wants different thresholds |
| Streaming responses, i18n, theming | Never for v1 |
{ "schema_version": "1.1", "verdict": "needs_changes", "score": 92, "summary": "string", "issues": [ { "file": "src/cart.js", "line": 42, "severity": "warning", "rule": "eqeqeq", "comment": "Expected '===' and instead saw '=='.", "source": "static" } ], "static_mode": "fragment", "degraded": [], "truncated": false, "cached": false }