LLM-assisted code review tool for GitLab
Top 50.1% on sourcepulse
This project provides an AI-assisted code review tool specifically for GitLab, aiming to enhance developer productivity by leveraging Large Language Models (LLMs). It targets development teams seeking to automate and improve their code review process, offering integration with various LLMs and GitLab's merge request workflow.
How It Works
The system integrates with GitLab via webhooks, triggering LLM-based code reviews on merge requests. It utilizes a modular architecture with a UnionLLM
component, compatible with LiteLLM
, to support a wide array of LLMs, including OpenAI, DeepSeek, and Google's models. This multi-model approach allows for flexibility and the potential to leverage the best model for specific review tasks. Customization of review logic and notification mechanisms is facilitated through custom Response
and Review Handle
classes.
Quick Start & Requirements
docker run -d --network bridge --add-host=host.docker.internal:host-gateway -v ./config:/workspace/config -p 8080:80 --name codereview xuxin1/llmcodereview:latest
pip install -r requirements.txt
then python3 app.py
Highlighted Details
UnionLLM
and LiteLLM
compatibility.Maintenance & Community
mixuxin@163.com
.Licensing & Compatibility
Limitations & Caveats
The project is actively under development, with features like commit and tag triggers, Feishu notifications, and static code analysis integration listed as pending. While it supports many LLMs, the effectiveness of the code review is dependent on the chosen LLM's capabilities.
3 months ago
1 day