Skip to content
romanzdkPublic

About

Review the evidence, not the diff. A self-hosted place where coding agents publish change reports and people judge them.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

verifair

Review the evidence, not the diff. A self-hosted place where coding agents publish change reports and people judge them.

For people and teams whose coding agents write most of the code. Reports are stored in your own Postgres, and verifair runs no AI itself.

Try the demo review → (a static copy: you can read it, but not comment)

How to say it: verifier (/ˈvɛrɪfaɪər/, like the word) or veri-fair (/ˈvɛrifɛər/, “very fair”). Both are fine.

CI License: MIT Python 3.15 Postgres 16+

Docs · Quickstart · How it works · Screenshots · API · Configuration · Deployment


Demo of the full review loop: an agent publishes a report with a diagram, the author signs it, a reviewer comments on a sentence with the issue label, the agent replies and pushes version 2, the author signs again, and the reviewer resolves the thread and approves

Run it: git clone https://github.com/romanzdk/verifair.git && cd verifair && docker compose up, then open http://localhost:8000. Details in the Quickstart.

Why

Agents now write most of the code. A person cannot read every diff they make, and reading a diff was never the best way to decide if a change is right.

verifair is a small web service where agents push markdown change-review reports and humans read them, comment by selecting text, and give a verdict. Agents already handle code review. A human should judge the intent and the evidence: is this the right change, and does the proof hold up? verifair gives them one page per change to do that.

When the agent writes the code, the prompts are the part a person wrote. With prompt coaching, authors can share them on the same page, so the team learns from each other how to work with agents.

Features

  • One report per change. Intent, the design shown with a before/after and a diagram, edge cases, verification with commands, results and links, what was not verified, rollback, security impact, a summary of the agent reviews, the questions only a human can answer, and one row per merge request. See the report.
  • Prompt coaching. Other tools let you see the prompts behind a change. verifair lets teammates comment on each one, right where they review the change. An author can add the prompts they typed to the review, and teammates suggest clearer ones: missing context, a vague goal, no way to check the result. Opt-in, previewed and trimmed by the author before anything is shared, and never blocking. The export is automatic for Claude Code, local Codex and OpenCode sessions; with other agents, paste the prompts by hand (#56). See prompt coaching.
  • A human signs first. The person who asked for the change reads the agent's report and signs it. Only then does the team get asked to review. The signer or an admin can unsign while nobody has given a verdict.
  • Comment on any text. Select a sentence to start a thread. Threads are blocking by default; a reviewer can mark one as a suggestion. Conventional Comments label buttons (issue:, nitpick:, question: and more) set the label and whether the thread blocks.
  • Verdicts with rules. Approve or request changes. Approve is refused while a blocking thread is open, and the signer cannot approve their own version. Unapprove or withdraw a verdict if you change your mind.
  • Versions. The agent pushes a new version after feedback. Signatures and verdicts are kept per version; comments show when they were made on an older one.
  • Plan first, when needed. Review and approve a Markdown plan before implementation, then attach the change report at the same URL. Plan and implementation have separate signatures, comments and verdicts. Direct report submission still works.
  • Diagrams and screenshots. A Mermaid block in a report is drawn as a diagram, with its source one click away. Agents upload screenshots through the API and show them in the report; images from other sites stay links.
  • Optional execution evidence. Attach a local recording or a labelled reconstruction to an implementation version. The read-only Execution tab adds context; people still sign and judge the implementation. See the trace format and version-pinned capture recipes.
  • Built for agents. A small JSON API to push reports, read and answer comments, long-poll for feedback, and archive or restore a review. Ships with an agent skill you install with one npx skills command, and an API explorer at /docs.
  • An Inbox for people. Grouped by whose turn it is: needs your review, needs your signature, returned to you, needs implementation, waiting on others. Assigned to me, Created by me and All reviews list the rest, with status tabs.
  • Archive and delete. Archive a finished or test review (or a whole project) to take it out of the lists; it stays readable and can be restored. Admins can delete one for good.
  • Two modes. Local mode for one person or a small trusted group. Shared mode for a team, with built-in sign-in (Google or any OpenID Connect provider), members, admins, per-member agent tokens, optional open sign-up for your own domains, and a first-run guide that connects each member's agent.
  • Small and plain. FastAPI, Jinja and htmx, no JavaScript build step, strict CSP. State lives in Postgres, so you can run several replicas. System, light and dark theme, works on a phone.
  • Safe to open. Images from other sites in a report are shown as links, not loaded. Local mode refuses unknown hostnames, which blocks DNS rebinding.
  • Optional Slack messages for drafts, ready-for-review, comments, verdicts and withdrawn verdicts. Text written by the agent is labelled as such in Slack and email.
  • Request reviews from any member on the review page, with optional emails when a change is ready for them, and a welcome email for new members (shared mode).

How it works

verifair runs no AI itself. Coding agents run where they always do (your machine, CI) and use an agent token to publish reports here. People who only review need no token.

  1. The agent pushes a report. It is a draft and its status is unsigned. The team is not told to review it yet.
  2. The human author reads it, has the agent fix what is wrong (a new version) and signs the version. Signing says: I read this and I stand behind it. The team now gets a "ready for review" message.
  3. Reviewers select text and comment. A comment is a blocking thread by default, or a non-blocking suggestion. The agent can read and answer threads through the API.
  4. A reviewer approves or requests changes. The person who signed cannot approve.
  5. A new version has no signature, so it goes back to unsigned. Signatures and verdicts are kept per version.

For work that needs plan review first, submit workflow: "plan_first" with a plan and no implementation body. The author signs the plan and another person approves it. The change then waits for implementation. Attach the report under the same ID with expected_version set to the latest snapshot; sign and review the implementation separately. An unchanged plan keeps its approval across implementation versions. An edited plan needs approval again, and an unresolved blocking plan thread pauses the workflow. See plan review and the API.

sequenceDiagram
    autonumber
    participant Agent
    participant Author
    participant verifair
    participant Reviewer
    Agent->>verifair: POST /api/reports (v1)
    Note over verifair: unsigned
    Author->>verifair: read and sign v1
    Note over verifair: awaiting review
    Reviewer->>verifair: comment on text, request changes
    Agent->>verifair: GET /api/reports/{id}/wait
    verifair-->>Agent: new comment or verdict
    Agent->>verifair: answer threads, push v2
    Author->>verifair: sign v2
    Reviewer->>verifair: approve v2
    Note over verifair: approved
Loading

Quickstart

You need Docker with Compose.

git clone https://github.com/romanzdk/verifair.git
cd verifair
docker compose up

This runs the latest release image, not the code you cloned. To run your checkout, see Run from source.

Open http://localhost:8000. The agent token is change-me. Set VERIFAIR_API_TOKEN before you start to use another one. Users set a display name (kept in a cookie). The author signs a version, reviewers select text to comment, then approve or request changes.

In a second terminal, load the demo reviews (it needs only Python 3):

VERIFAIR_API_TOKEN=change-me python3 scripts/demo.py

It adds five reviews by "Alice" and "Bob", each in a different state: a high-risk change Alice has not signed yet, one with an execution trace and the author's prompts that waits for Bob, an approved plan that waits for its implementation, one Bob approved at version 2 after asking for changes, and one by Bob that waits for Alice's review. Running it again skips what is already there; to load them fresh, run docker compose down -v and start again.

The static demo shows these reviews from Alice's side. In your own browser you are a new person: set your name, sign the high-risk change, then open the same page in a private window with another name to comment and approve it.

The compose passwords and token are for local use. Change them for any shared setup.

This is local mode. For a team, use shared mode. See docs/access.md.

To let your coding agent set it up, locally or on Kubernetes, paste the prompt from Deploy with your agent.

Screenshots

A verifair review page: the Design section of a report with a before/after table and a diagram, an open blocking thread on a sentence with the agent's answer, the list of sections and the reviewers on the side

Inbox, light Inbox, dark
Inbox in light theme Inbox in dark theme
All reviews with status tabs Review page, dark
All reviews list with status tabs from Open to Archived Review page in dark theme with the Design diagram and a blocking thread
Agent tokens (shared mode) Members (shared mode)
Agent tokens page with active and revoked tokens Members page with roles
Prompt coaching Prompt coaching, dark
The Prompts section of a review: the author's numbered prompts, and a teammate's non-blocking suggestion on a vague one Prompts section in dark theme
Execution trace Execution trace, dark
Execution tab with the agent's call tree, a failed test run with its output, and the plan used for the implementation Execution tab in dark theme

Inbox on a phone    Review page on a phone: the Design diagram and an open blocking thread

The report

docs/report-template.md is the layout agents should follow. Each section has a one-line hint shown as a quote. The reader first sees what changes and the evidence, and the decisions come last, once they understand the change.

Section Why it is there
Intent The problem, the ticket, what is out of scope, and the decision the reader will be asked to make.
Design What changes, shown: a before/after example, a diagram, links to runs, demos and screenshots, and one option that was rejected.
Edge cases One row per worry, with the check that proves it.
Verification What each check proves, the command, the result (✅, ⚠️ or ❌, with a reason for anything not run), a link, and whether it fails if the change is reverted.
Not verified / assumptions What was not checked or was taken on trust.
Rollback How to undo the change.
Security impact What it touches that matters for security, or None with the reason.
Agent reviews Which agent reviewers ran, how many rounds, and how many findings were fixed or dismissed.
Judge this The questions only a human can answer, asked once the reader knows the design and the evidence.
Changes One row per merge request, in merge order, with its status.

Verification, Rollback and Security impact are required by default. See Report rules.

Agent skill

skills/verifair-review/SKILL.md teaches a coding agent to write the report in this template, push it, and wait for and answer review feedback. It never signs or gives verdicts. On request it can also add the author's own prompts for prompt coaching. The agent needs VERIFAIR_URL and VERIFAIR_API_TOKEN (your own agent token in shared mode).

Install it with skills, which works for Claude Code, Codex, Cursor and many other agents:

npx skills add romanzdk/verifair --skill verifair-review -g

That installs the newest skill. To match an older server, add its version tag, for example romanzdk/[email protected]; the Agent tokens page and the first-run page show the command with your server's version. Without Node.js, download the skill from your server instead (api.md).

API in short

Push a report (push again with the same id to add a version):

curl -sS --fail-with-body -X POST http://localhost:8000/api/reports \
  -H "Authorization: Bearer $VERIFAIR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"id": "my-change", "project": "billing-service", "title": "Prorate mid-cycle plan changes",
       "risk": "high", "body": "## Intent\n...\n\n## Verification\n...\n\n## Rollback\n...\n\n## Security impact\nNone."}'
# {"id": "my-change", "version": 1, "url": "http://localhost:8000/r/my-change"}

Wait up to 55 seconds for a verdict or a new comment, then read the open threads:

curl -sS --max-time 60 -H "Authorization: Bearer $VERIFAIR_API_TOKEN" \
  "http://localhost:8000/api/reports/my-change/wait?for=any&timeout=55"
curl -sS -H "Authorization: Bearer $VERIFAIR_API_TOKEN" \
  "http://localhost:8000/api/reports/my-change/comments?open=true"

Full reference: docs/api.md (push, read, comments, wait, errors).

Documentation

Page What is in it
docs/api.md Push a report, read it, read and answer comments, wait for feedback, archive, get the agent skill, errors, required sections, provenance
docs/reviewing.md Inbox and personal views, plan-first reviews, signing and undo, blocking threads, Conventional Comments, archive and delete
docs/prompt-coaching.md Share the prompts behind a change, give useful feedback on prompts, privacy and limits
docs/tracing.md Optional execution evidence, supported capture versions, local conversion, submission and privacy limits
docs/access.md Local and shared mode, sign-in with Google and other providers, members and admins, agent tokens, report ownership, moderation, switching from local to shared
docs/configuration.md All environment variables
docs/deployment.md Run from source, Docker, Kubernetes, deploying behind HTTPS, Postgres, backup and restore, upgrading an HTTP deployment
docs/report-template.md The report layout, as a full example
docs/privacy.md What this website and its demo send to other services, and who runs them
CHANGELOG.md What changed in each version

Agents can read all of it as Markdown: llms.txt, or every page in one file in llms-full.txt.

Configuration

Variable Default Meaning
VERIFAIR_DATABASE_URL required Postgres connection URL
VERIFAIR_API_TOKEN required in local mode Bearer token agents use in local mode
VERIFAIR_BASE_URL http://localhost:8000 Public URL for links and notifications
VERIFAIR_OIDC_ISSUER unset Sign-in provider, for example https://accounts.google.com. Turns on shared mode
VERIFAIR_OIDC_CLIENT_ID unset Shared mode: OAuth client ID
VERIFAIR_OIDC_CLIENT_SECRET unset Shared mode: OAuth client secret
VERIFAIR_SESSION_SECRET unset Shared mode: signs the session cookie, at least 32 characters, same on every replica
VERIFAIR_OIDC_ALLOWED_DOMAINS unset Shared mode: email domains that may sign in, for example example.com. Required with Google
VERIFAIR_OPEN_SIGNUP false Shared mode: true lets anyone from the allowed domains join as a member on first sign-in
VERIFAIR_BOOTSTRAP_ADMIN_ID unset Shared mode: email of the first admin. Required while the database has no members
VERIFAIR_REQUIRED_SECTIONS Verification,Rollback,Security impact H2 headings every report must have
VERIFAIR_DB_POOL_SIZE 10 Database connections per process
VERIFAIR_SLACK_WEBHOOK_URL unset Optional Slack webhook
VERIFAIR_SMTP_URL unset Shared mode: optional mail server for review request emails, smtp:// or smtps://
VERIFAIR_EMAIL_FROM unset Sender address of those emails. Required with VERIFAIR_SMTP_URL

Details: docs/configuration.md.

Deployment

verifair needs Postgres 16 or newer, and HTTPS for any browser access outside localhost. For a team, run it in shared mode: verifair signs people in itself with Google or another OpenID Connect provider, so no auth proxy is needed.

Related projects

verifair reviews the change report, not the diff.

  • Tools that review code feed its "Agent reviews" section: CodeRabbit, Greptile, Qodo, Devin Review, Claude Code Review.
  • Plan tools such as Kiro and Plannotator can produce the Markdown reviewed before implementation.
  • rcliao/comments is the closest one: markdown review with a human-only verdict for agents. verifair adds the evidence template, versions, signing, a web UI for a team, and an API for agents to read and answer comments.

Contributing

Issues and pull requests are welcome. Keep changes small and the language plain.

docker run -d --rm --name verifair-dev-db -e POSTGRES_USER=verifair -e POSTGRES_PASSWORD=verifair \
  -p 127.0.0.1:5432:5432 postgres:18
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .

Each test gets its own schema in that database and drops it at the end. If port 5432 is taken, publish another port and set VERIFAIR_TEST_DATABASE_URL to match. docker stop verifair-dev-db removes the database and its data. tests/test_js.py runs the browser anchor code with Node and is skipped when node is not installed. tests/test_browser.py opens the demo reviews in headless Chromium at phone, laptop and desktop widths and checks the layout; run uv run playwright install chromium once, or it is skipped (in CI it fails instead).

License

MIT. See LICENSE.


Made by Roman Žydyk.

About

Review the evidence, not the diff. A self-hosted place where coding agents publish change reports and people judge them.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages