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.
def charge(user, amount):- if amount > 0:+ if amount >= 0: return gateway.create(user.id, amount)
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.
- WebhookGitHub sends the PR event. The signature is verified.
- QueueThe job is stored durably in SQLite.
- WorkerFetches the PR and enforces your budget.
- EngineRoutes to a model, then applies the precision gate.
- ReviewInline comments, or an approval on a clean PR.
Works with
- Ollama
- vLLM
- llama.cpp
- OpenRouter
- OpenAI
- Anthropic
- NVIDIA NIM
- Nous
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.
confidence 0.91 · suggestion attached>=lets zero-value charges through, and the payment gateway rejects them. Keep the original> 0check.