LLM-Based Agent for Standard Compliance in GitLab Merge Requests

A Structured Approach to Transparent and Rule-Based Code Reviews Support

Authors

DOI:

https://doi.org/10.52825/th-wildau-ensp.v3i.3518

Keywords:

Large Language Models, Code Review, GitLab, Software Engineering, Automated Analysis

Abstract

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

Download data is not yet available.

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.

Downloads

Published

2026-08-18

How to Cite

Na, S., & Kostunin, D. (2026). LLM-Based Agent for Standard Compliance in GitLab Merge Requests : A Structured Approach to Transparent and Rule-Based Code Reviews Support. TH Wildau Engineering and Natural Sciences Proceedings , 3. https://doi.org/10.52825/th-wildau-ensp.v3i.3518

Conference Proceedings Volume

Section

Contributions to the Wildau Conference on Artificial Intelligence 2026