Ollama Reviewer PIP LINK HERE
A local multi-agent code review tool that uses Ollama-hosted LLMs to analyze git diffs and produce structured PR reviews. Uses local ollama models due to constraints of using cloud models on servers and model constraints github workflows vm.
How It Works
The tool runs several specialised review agents against your staged/unstaged code changes (git diff HEAD):
- Code Smells & Metrics — analyses code quality, complexity, and anti-patterns
- Readability Review — evaluates naming, documentation, and overall clarity
- Security Review — checks for common vulnerabilities and insecure patterns
- Synthesizer — stitches the individual agent reports into a single markdown PR comment
Each agent returns a JSON score out of 100. If any agent detects a fatal block (security flaw or architecture issue), the commit is blocked with exit code 1. But users can commit whether or not they care about the pr check. After all agents is ran an md file consisting of the reviews will be available in whatever directory the command was ran.
Requirements
- Ollama running locally with at least one model pulled
- Python 3.10+
Setup
# Install the package
pip install -e . # for any local installs from git
# Pull a supported model or check available models at end of page (default: gemma3:12b)
ollama pull gemma3:12b
Usage
Run from the root of any git repository you want to review:
ollama-review -m AVAILABLE_MODEL -p MODEL_PARAMS
Specify a different model:
ollama-review -m "qwen3:4b"
Model parameters (temperature, top_p) are configured in providers.yml.
Output
- Prints each agent's score as it runs
- Writes a final synthesised markdown review to
markdown_output.mdto the directory in which the review command was executed - Exits with code 0 on approval, code 1 if a fatal issue is found
Available models in providers.yml, feel free to add your own by looking through the package
- "qwen3:1.7b": { "temperature": 0.0, "top_p": 0.9 },
- "gemma3:1b": { "temperature": 0.0, "top_p": 0.9 },
- "qwen3:4b": { "temperature": 0.1, "top_p": 0.4 },
- "gemma3:4b": { "temperature": 0.1, "top_p": 0.9 },
- "gemma3:12b": { "temperature": 0.1, "top_p": 0.9 },
- "mistral:7b": { "temperature": 0.1, "top_p": 0.9 }
Metadata
Release files for ollama-local-reviewer 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ollama_local_reviewer-1.0.8.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ollama_local_reviewer-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / ollama_local_reviewer-1.0.8.tar.gz
| Download URL | ollama_local_reviewer-1.0.8.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a17fb75a51fea69356b2dbe869768ffba389b8615f1b7daf09331405658fbf87
|
|
BLAKE2b-256 checksum How to use checksums |
9ac1532a2a146597e79f937b1e453c954853086c714ce80f650807b46cccf4e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / ollama_local_reviewer-1.0.8-py3-none-any.whl
| Download URL | ollama_local_reviewer-1.0.8-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0682a8f7f9b0c88badd6503967e44f9c670612bd52ac737d60ebd85dc1a08d5
|
|
BLAKE2b-256 checksum How to use checksums |
fe159c481eb529ccd488bffed81828838d23b8ba55a34d32579070edd59632ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|