AI-powered Git diff code reviewer using Groq (Llama 3.3 70B).
cargo install --path .Run interactively (no arguments required):
rusty-diffThe CLI will prompt for:
- Repository path (default: current directory)
- Target branch (e.g.,
main) - Source branch (e.g.,
feature/my-feature)
-o, --output <FILE> Save review to a file
-h, --help Print help
rusty-diff --output review.mdGet a free API key at console.groq.com
On first run, you'll be prompted to enter your Groq API key. It will be saved to:
- macOS:
~/Library/Application Support/rusty-diff/config - Linux:
~/.config/rusty-diff/config - Windows:
%APPDATA%\rusty-diff\config
You can also set it via environment variable:
export GROQ_API_KEY=your_api_keyAutomatically detects and includes project context for:
- PHP (
composer.json) - Node.js (
package.json) - Go (
go.mod) - Rust (
Cargo.toml) - Python (
requirements.txt,pyproject.toml,setup.py)
MIT