DEV Community

Cover image for Building an AI code review agent for our self-hosted GitLab 🤖
Flora Brandão for Upsun

Posted on

Building an AI code review agent for our self-hosted GitLab 🤖

Managing code reviews on a self-hosted GitLab instance can be a constant grind as the volume of merge requests starts to pile up.

We used Claude to vibe-code a custom review agent to handle this workload and the results were surprising.

  • The agent consists of 40,000 lines of Python code.
  • It has already reviewed 1,000 merge requests for our team.
  • Building a custom tool provided the specific control we needed for our self-hosted environment.
  • This approach automates the initial feedback loop and keeps the development workflow moving.

You can find the full technical write-up covering the architecture and the lessons learned here:

Building an AI code review agent for our self-hosted GitLab - Upsun Developer

I vibe-coded a GitLab code review agent last month - 40K lines of Python written by Claude - and it has reviewed 1000 merge requests.

favicon developer.upsun.com

Top comments (0)