/gemini-review — Gemini Pro Code Reviewer
Launches an efficiency audit on unreviewed Python files using Aider + Gemini 2.0 Flash.
Usage
/gemini-review # Review all pending modified .py files
/gemini-review <file> # Review a specific file
/gemini-review --check-only # See how many files are pending (without reviewing)
What it does
- Detects modified
.pyfiles in git that have not been reviewed yet (via DB). - Passes each file to Aider with the
gemini/gemini-2.0-flashmodel. - Analyzes: bugs, efficiency, readability, security.
- Saves Markdown report to
database/audit_reports/gemini_review_<ts>.md. - Registers the review in
dqiii8.db(tableaudit_reports). - Git push → report available in Obsidian in ~1 min.
Requirements
GEMINI_API_KEYconfigured in$DQIII8_ROOT/.envaiderinstalled:pip install aider-chat --break-system-packages
Auto-integration
Runs automatically at the end of sessions ≥15 min (via stop.py)
if there are pending files. The process runs in the background and does not block shutdown.
Implementation
python3 bin/gemini_review.py $ARGUMENTS
Source: senda-labs/DQIII8 — distributed by TomeVault.