Skip to main content

A local multi-agent code reviewer

Project description

Ollama Reviewer

A local multi-agent code review tool that uses Ollama-hosted LLMs to analyze git diffs and produce structured PR reviews.

How It Works

The tool runs several specialised review agents against your staged/unstaged code changes (git diff HEAD):

  1. Code Smells & Metrics — analyses code quality, complexity, and anti-patterns
  2. Readability Review — evaluates naming, documentation, and overall clarity
  3. Security Review — checks for common vulnerabilities and insecure patterns
  4. 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.

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.md
  • Exits with code 0 on approval, code 1 if a fatal issue is found

Available models in providers.yml, feel free to add your on

  • "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 }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ollama_local_reviewer-1.0.4.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ollama_local_reviewer-1.0.4-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file ollama_local_reviewer-1.0.4.tar.gz.

File metadata

  • Download URL: ollama_local_reviewer-1.0.4.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for ollama_local_reviewer-1.0.4.tar.gz
Algorithm Hash digest
SHA256 74727a355e0ffe3315c27b50a75873849673e96ff47795e4a3af2ca9b5480831
MD5 1c27248f00a38c6c71e57bbb506ea6f7
BLAKE2b-256 8902b3f02c180b9c56b4f1be8e653e637c43d95f10af6ae94761c37efb3c288e

See more details on using hashes here.

File details

Details for the file ollama_local_reviewer-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ollama_local_reviewer-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ef998970f53fbbd0d0ef74e8de856250334609e59c26e038b194c13376dd4e07
MD5 77e74a2fb81c1b87c20ffffdf29ef123
BLAKE2b-256 30ed9835db9fa02a53b9be8595ece1f5f3d78f63734193e0033997866f8d03da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page