GPT-4 Vision for Automated Code Review
Goal
Can GPT-4 Vision meaningfully review code changes and provide actionable feedback?
Approach
- Fetch PR diff via GitHub API
- Render diff as syntax-highlighted image
- Send to GPT-4V with structured review prompt
- Parse structured JSON response
Key Findings
- GPT-4V catches logical bugs that text-only models miss
- Visual context (indentation, structure) helps the model
- False positive rate is ~15% — needs human oversight
Future Work
- Fine-tune on accepted/rejected review comments
- Add repo-specific context via RAG
- Build VS Code extension
