Git Diff Reviewer
A terminal-based CLI tool integrated into Git workflows as a pre-commit hook. Before a commit it invokes an LLM to review the staged diff and outputs a structured report of issues.
Timeline (last 90 days)
Git Diff Reviewer is a terminal-based CLI tool that embeds into the Git workflow as a pre-commit hook, extracting the staged diff, sending it to an LLM provider and outputting structured review results in the terminal.
Git Diff Reviewer supports switching between four LLM providers: Gemini, OpenRouter, Groq and local Ollama.
Git Diff Reviewer presents review results in four categories: serious bugs (logic errors, infinite loops), security vulnerabilities (SQL injection, XSS, hardcoded keys, aligned with OWASP/CWE), anti-patterns, and performance bottlenecks.
The Git Diff Reviewer project ships with 22 unit tests to ensure reliability.
By default, Git Diff Reviewer only reviews the staged diff (git diff --staged), so unstaged temporary changes will not be falsely reported.
Git Diff Reviewer supports three review modes: --staged to review the staging area, --unstaged to review unstaged changes, and --branch main to compare against a specific branch or commit.
Git Diff Reviewer uses .reviewerignore to filter out lockfiles, build artifacts and .env files, avoiding wasted tokens.
Git Diff Reviewer's known limitations include false positives caused by LLM hallucinations, context window limits that may prevent very large diffs from being processed by the model, and the need for a network connection unless local Ollama is used.
Large diffs in Git Diff Reviewer are safely truncated to avoid exceeding the model's context window, and review results can be exported as Markdown files.
Git Diff Reviewer provides the --install-hook command, which writes the hook script into the .git/hooks/ directory and grants it executable permission, so that every commit automatically triggers a review.
All Facts (10)
Git Diff Reviewer is a terminal-based CLI tool that embeds into the Git workflow as a pre-commit hook, extracting the staged diff, sending it to an LLM provider and outputting structured review results in the terminal.
50%UnverifiedGit Diff Reviewer supports switching between four LLM providers: Gemini, OpenRouter, Groq and local Ollama.
50%UnverifiedGit Diff Reviewer presents review results in four categories: serious bugs (logic errors, infinite loops), security vulnerabilities (SQL injection, XSS, hardcoded keys, aligned with OWASP/CWE), anti-patterns, and performance bottlenecks.
50%UnverifiedThe Git Diff Reviewer project ships with 22 unit tests to ensure reliability.
50%UnverifiedBy default, Git Diff Reviewer only reviews the staged diff (git diff --staged), so unstaged temporary changes will not be falsely reported.
50%UnverifiedGit Diff Reviewer supports three review modes: --staged to review the staging area, --unstaged to review unstaged changes, and --branch main to compare against a specific branch or commit.
50%UnverifiedGit Diff Reviewer uses .reviewerignore to filter out lockfiles, build artifacts and .env files, avoiding wasted tokens.
50%UnverifiedGit Diff Reviewer's known limitations include false positives caused by LLM hallucinations, context window limits that may prevent very large diffs from being processed by the model, and the need for a network connection unless local Ollama is used.
50%UnverifiedLarge diffs in Git Diff Reviewer are safely truncated to avoid exceeding the model's context window, and review results can be exported as Markdown files.
50%UnverifiedGit Diff Reviewer provides the --install-hook command, which writes the hook script into the .git/hooks/ directory and grants it executable permission, so that every commit automatically triggers a review.
50%