Inspiration
"Manual code reviews are time-consuming, inconsistent, and often delayed during high-volume development sprints."
We were inspired by the increasing complexity and speed of modern software development, where manual code reviews often become a bottleneck. Our goal was to reduce cognitive load on developers, ensure consistent feedback, and improve review turnaround time—all without compromising code quality.
What it does
Automatically listens to GitLab merge request events and captures the code diff.
Uses Google Cloud Functions to preprocess and format code changes.
Sends the data to Vertex AI / Gemini for Code to generate review suggestions.
Posts AI-generated feedback as inline comments directly into the merge request.
How we built it
[i] GitLab Webhook Trigger A webhook listens for merge request events (created or updated) and sends the payload to a Google Cloud Function.
[ii] Google Cloud Function This function extracts the diff, determines the language, formats the input, and sends it to Vertex AI for analysis.
[iii] Vertex AI / Gemini for Code The code diff is passed to a large language model (LLM) which returns review comments, suggestions, and code quality insights.
[iv] GitLab API Bot The bot posts the AI-generated review comments directly into the merge request—either as inline annotations or as summary feedback.
Challenges we ran into
[i] Diff Parsing Complexity Handling multi-file diffs and maintaining line mappings across added and removed sections was intricate.
[ii] Prompt Engineering for LLMs Getting accurate, actionable review comments required multiple iterations and fine-tuning prompts.
[iii] Rate Limits and Payload Sizes Working with GitLab and cloud service limits required optimization and batching strategies.
[iv] Security and Access Control Ensuring that only valid, authorized users could trigger and receive responses in GitLab.
Accomplishments that we're proud of
Achieved accurate, context-aware code feedback using Gemini for Code and line-specific parsing.
Streamlined developer workflows by reducing manual review time and improving merge quality.
3 Built a scalable, reusable architecture that can be extended to other version control systems
What we learned
How to integrate GitLab webhooks with external cloud services.
How to parse diffs programmatically and identify meaningful code changes.
How to use Vertex AI / Gemini for Code to generate context-aware feedback.
How to format and post inline comments back into GitLab merge requests using its API.
The importance of aligning AI outputs with human reviewer expectations.
What's next for AI Review Assistant for Quality and Velocity
Add support for additional languages
Improve prompt adaptability for different code styles
Implement feedback learning loop from human reviewers
Package as a GitLab plugin or CI/CD template
Built With
- ci/cd
- gitlab
- google-cloud
- llm
- python
- restapi
- sdk
- vertexai
- webhook

Log in or sign up for Devpost to join the conversation.