Skip to content

An automated code review bot that integrates with GitHub to provide AI-powered feedback on pull requests.

Notifications You must be signed in to change notification settings

Yash-Dabhade/Code-Eagle-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeEagle - AI Code Review Bot

An automated code review bot that integrates with GitHub to provide AI-powered feedback on pull requests.

Architecture

Whats-App-Image-2025-12-31-at-16-57-06

Project Structure

  • producer/ - Webhook listener that enqueues PR analysis jobs
  • consumer/ - Worker that processes jobs and posts reviews

Quick Start

Prerequisites

  • Python 3.8+
  • RabbitMQ server
  • Ollama with Qwen model
  • ngrok (for webhook testing)

Setup

  1. Install dependencies for both services:
    cd publisher
    pip install -r requirements.txt
    cp .env.example .env
    # Edit .env with your values

    cd ../consumer
    pip install -r requirements.txt
    cp .env.example .env
    # Edit .env with your values
  1. Start RabbitMQ:
    docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
  1. Pull Qwen Model
    ollama pull qwen2.5-coder:latest 
    ollama serve
  1. Start Services
    # Terminal 1: Publisher
    cd producer
    python run_publisher.py

    # Terminal 2: Consumer
    cd consumer
    python run_consumer.py
  1. Expose Webhook with Ngrok
    ngrok http 8000

Features

  • GitHub webhook integration
  • RabbitMQ job queue with retry logic
  • Dead letter queue support
  • AI-powered code review with Qwen LLM
  • GitHub PR comment posting
  • Line-by-line comments
  • Security scanning
  • Custom rule engine
  • LoRA fine-tuning support

About

An automated code review bot that integrates with GitHub to provide AI-powered feedback on pull requests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages