Dev.to
7/14/2026
Local AI code reviewer using Ollama for private codebase and PR review
Original: I Built a Local AI Code Reviewer That Reads Your Entire Codebase (and PRs!) for Free
Short summary
A developer built a CLI tool that uses Ollama with local LLMs like qwen2.5-coder to review code entirely on-device — no API keys, no cloud, no data leaving the machine. It supports full codebase review, automatic PR review via GitHub URLs or piped diffs, and interactive snippet mode. The tool dynamically adjusts its prompt based on input type, focusing on architecture for directories and side effects for diffs.
- •CLI tool runs local LLMs via Ollama for fully private code review
- •Supports full codebase, PR, file, and piped snippet review modes
- •No API keys or cloud — all inference stays on your machine
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



