LLM-Based Agent for Standard Compliance in GitLab Merge Requests
A Structured Approach to Transparent and Rule-Based Code Reviews Support
DOI:
https://doi.org/10.52825/th-wildau-ensp.v3i.3518Keywords:
Large Language Models, Code Review, GitLab, Software Engineering, Automated AnalysisAbstract
Code reviews are a central component of collaborative software development, yet they often require considerable manual effort in practice. Ensuring consistent compliance with project-specific standards can be challenging, particularly when these standards require contextual interpretation of code, naming conventions, or documentation.
This paper presents an LLM-based prototype designed to support the application of a documented rule catalog within GitLab merge requests. The agent is integrated into the existing workflow and is triggered automatically by merge request events. It analyzes the source code contained in a merge request and evaluates it against explicitly defined project rules.
To ensure structured and consistent output, a predefined JSON schema guides the model’s response and enables validation before publication. Invalid or non-parseable outputs are detected and not posted to the merge request.
The approach is not intended to replace human reviewers, but to support them in the systematic application of documented project standards. The implementation demonstrates the technical feasibility of integrating rule-based governance with LLM-supported contextual interpretation in a practical GitLab workflow.
Downloads
References
[1] GitLab Inc., “GitLab,” https://about.gitlab.com/, accessed Feb. 2026.
[2] Beller, M., Bacchelli, A., Zaidman, A., Juergens, E. Modern Code Reviews in Open-Source Projects: Which Problems Do They Fix? Em-pirical Software Engineering, 2014.
[3] B. İcoz and G. Biricik, “Automated Code Review Using Large Language Models with Sym-bolic Reasoning,” arXiv:2507.18476, 2025.
[4] Helmholtz AI, “Blablador – Large Language Model Service,” https://helmholtz-blablador.fz-juelich.de/, accessed Feb. 2026.
Published
How to Cite
Conference Proceedings Volume
Section
License
Copyright (c) 2026 Sehyang Na, Dmitriy Kostunin

This work is licensed under a Creative Commons Attribution 4.0 International License.