FastAPI Celery Redis PostgreSQL OpenAI GitHub API Docker Kubernetes

LLM Code Review Bot

Automated pull-request reviews powered by GPT-4 — zero-config GitHub integration

LLM Code Review Bot video thumbnail
40%
Faster Reviews
98%
PR Coverage
< 90s
Avg Review Time
0
Security Slips
Overview

What is this project?

LLM Code Review Bot wires into your GitHub repository via Webhooks. Every time a pull request is opened or updated, the service fetches the diff, chunks it into context windows, and sends each chunk to GPT-4 with a project-specific system prompt.

The results are de-duplicated, ranked by severity (error → warning → suggestion), and posted as inline review comments directly on the PR. A summary card is added as a PR-level comment with an overall quality score.

The system is stateless per review — each job is queued via Celery, results are cached in Redis to avoid re-reviewing unchanged hunks, and all review history is persisted in PostgreSQL for analytics. Teams report a 40% reduction in human review turnaround and near-zero security antipatterns slipping through to main branches.

Architecture

System Diagrams

System Architecture
Architecture
System Architecture
End-to-end flow from GitHub Webhook to GPT-4 and back to PR comments
Celery Task Queue
Data Flow
Celery Task Queue
How diffs are chunked, queued, and processed with Redis-backed Celery workers
Process

Build Timeline

Phase 01 — Jan 2025
Research & Design
Evaluated GitHub Apps vs Webhooks, designed the chunking strategy, chose GPT-4 for accuracy over speed.
Phase 02 — Feb 2025
Core API & Queue
Built FastAPI webhook receiver, Celery workers, Redis broker setup, and GitHub API client with retry logic.
Phase 03 — Mar 2025
LLM Integration
Prompt engineering, context-window chunking, de-duplication heuristics, severity classification and review posting.
Phase 04 — Apr 2025
Hardening & Shipping
Docker Compose for local dev, Kubernetes manifests, Helm chart, GitHub Actions CI, integration test suite.
Get This Project

What's Included

Free
one-time payment · lifetime access
  • Full FastAPI + Celery + Redis source code
  • Prompt templates with configurable severity rules
  • PostgreSQL schema & Alembic migrations
  • Docker Compose + Kubernetes Helm chart
  • GitHub App setup guide & deployment docs
  • 90-day free email support
Get Source Code