Pascal

Code review that speaks only when it’s sure.

Pascal is an open-source AI reviewer for GitHub pull requests. Point it at your own model or bring your own API key. It posts inline comments and filters out the noise.

MIT licensed. Runs locally or in one Docker container.

billing/charge.py
 def charge(user, amount):-    if amount > 0:+    if amount >= 0:         return gateway.create(user.id, amount)
pascal-review

>= lets zero-value charges through, and the payment gateway rejects them. Keep the original > 0 check.

confidence 0.91 · suggestion attached
2 other findings below threshold 0.7not posted

Built to be quiet and right

Most review bots comment on everything. Pascal checks each finding before it reaches your PR.

  • Precision gates

    Confidence thresholds, category-aware filtering and a spend cap on every review.

  • Local-first

    Use a model on your own GPU through any OpenAI-compatible endpoint. No API costs and no code leaves your machine.

  • Bring your own key

    OpenRouter, OpenAI, Anthropic, NVIDIA NIM, Nous or Google. Providers without a key are skipped.

  • GitHub native

    A real GitHub App that posts inline comments and respects your repository permissions.

  • Deploy anywhere

    One Docker image runs the webhook server and the worker together.

  • Open source

    MIT licensed. Read it, extend it and host it yourself.

How a review happens

From pull request to comment in five steps. Reviews start in dry-run mode, so nothing is posted until you turn it on.

  1. WebhookGitHub sends the PR event. The signature is verified.
  2. QueueThe job is stored durably in SQLite.
  3. WorkerFetches the PR and enforces your budget.
  4. EngineRoutes to a model, then applies the precision gate.
  5. ReviewInline comments, or an approval on a clean PR.

Works with

  • Ollama
  • vLLM
  • llama.cpp
  • OpenRouter
  • OpenAI
  • Anthropic
  • NVIDIA NIM
  • Nous
  • Google

Quick start

You need Python 3.12+ and a GitHub App with pull request read and write access.

git clone https://github.com/dooodledad/Pascal.git
cd Pascal
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python -m delivery.server

Then run python -m delivery.worker in a second terminal. The README covers GitHub App setup, model routing and Docker deployment.