Skip to main content
Local AI · No Cloud · Open Source

git-sage

AI code review that runs on your machine.
Catches issues before they reach your repo.

~/my-project
$ git push

  Staged: 1 file(s)  +6 / -0

  Issues  (1 found)

  ●  SECRET_KEY is hardcoded on line 14.

  ╭──────────────────────────────────╮
  │  ✗  REVISE                       │
  │  Push aborted by git-sage.       │
  ╰──────────────────────────────────╯

Fully private

Your code never leaves your machine. No API keys, no subscriptions, no data sent anywhere.

Git-native

Installs as a pre-push hook. Works automatically on every push; no new commands to remember.

Code-specialized AI

Uses qwen2.5-coder:7b: a model trained on code that understands diffs, spots real bugs, not style.

Extensible

Swap models, customize the prompt, add your own rules. One file to edit: prompt.py.

Light dependencies

Just Python, Ollama, and three pip packages. Runs on any laptop without a GPU.

Open source

MIT licensed. Fork it, extend it, use it in your own tools.

Up and running in 4 commands

1
brew install ollama && ollama pull qwen2.5-coder:7bInstall Ollama + model
2
pip install git-sageInstall git-sage
3
git-sage installHook into your repo
4
git pushPush as normal; review runs automatically
Full installation guide →