Main / Case studies / AI Code Review Automation

Bringing Claude into the Development Workflow: Starting with Code Review

A single architect responsible for reviewing merge requests across more than 20 parallel projects turned to Claude to bring consistency into an already busy GitLab workflow. The model was given full context of the codebase, including architecture, naming patterns, and dependencies, then learned the team's code-review conventions from a benchmark module and its own CLAUDE.md rules file. Now integrated directly into the CI/CD pipeline, Claude reviews every merge request automatically, catching issues human reviewers had missed and freeing the team to focus on architectural decisions that genuinely need human judgment.

Source: AI-generated image

Challenges

Working across roughly 20 parallel projects with different specialists, the MMC team set out to integrate artificial intelligence into its day-to-day engineering process – but the question was where to begin. Rather than launching a broad, high-risk rollout, the team needed a focused entry point that would deliver immediate value while building internal confidence in working with LLMs.

Code review was selected as that entry point. The goal was to plug an AI assistant directly into the existing GitLab workflow, so that whenever an engineer opened a merge request, they would automatically receive feedback generated by a language model. Making this work required indexing the entire project, capturing the team’s code-review rules in a form the model could use, and defining a reference module to serve as the standard for quality.

About the Project

MMC is an enterprise marketing automation platform built and maintained for a German marketing agency with a complex organizational structure and over 155 people. The product is actively used across roughly 30 clients, each with bespoke customizations that QA must validate.

Full project background is available in the original case study: MMC – Marketing Automation Software

The initiative described here focused on introducing an LLM into the existing GitLab-based code-review process.

Region
Germany
Team
155+ specialists
Stage
Ongoing
Model
Claude

Solution

After analyzing the available models, the team chose Claude as the foundation for the experiment. The deciding factors were the quality of its code reasoning, the large context window that made it practical to load an entire project into a single session, and the ability to provide structured, actionable review comments rather than generic observations.

The first step was to give the model the context it needed. The team indexed the full project – loading all source files so the model could reason about architecture, naming patterns, and dependencies across the codebase, not just the changed lines in isolation. Where written code-review rules did not yet exist, an initial set was generated directly from the reference module: the team designated a representative, well-structured part of the project as the quality benchmark, asked Claude to derive the conventions it observed there, and used that output as the starting rule set. The result was a working baseline the team could review and refine rather than having to author from scratch.

In parallel, the team evaluated existing tooling for AI-assisted review. GitLab Duo was tested but proved too expensive relative to what it offered. The team moved away from it and instead built a direct integration: Claude Code hooks into the GitLab CI/CD pipeline so that every opened or updated merge request automatically triggers a review pass. The model receives the diff, the full project index, and the current CLAUDE.md rules file, then posts its findings as a structured comment on the MR – inserting itself into the workflow engineers already use without requiring any change in how they work.

  1. Index the codebase Code, test cases, docs, wiki
  2. Derive baseline rules Benchmark module → CLAUDE.md
  3. Hook into CI/CD pipeline Claude Code + GitLab integration
  4. Merge request opened Review pass triggers automatically
  5. Post review comment Structured feedback on the MR
  6. Engineer reviews & refines Updates CLAUDE.md rules

feeds back into rules

Key Development Stages

Ready to bring AI-assisted code review into your team's workflow? Let's talk.

Key Benefits

Frequently Asked Questions

How does Claude fit into an existing GitLab code review process?

Claude Code hooks directly into the GitLab CI/CD pipeline. Every time a merge request is opened or updated, the model receives the diff, the full indexed project, and the team's CLAUDE.md rules file, then posts its findings as a structured comment on the MR, without requiring engineers to change how they work.

Why did the team move away from GitLab Duo?

GitLab Duo was tested first but proved too expensive relative to what it delivered. The team replaced it with a direct Claude Code integration into the existing pipeline, built around the team's own rules and full project context rather than a generic review tool.

Where do the code review rules come from?

Where written rules didn't already exist, the team designated a well-structured part of the codebase as a quality benchmark and asked Claude to derive the conventions it followed there. That output became the starting rule set, captured in a CLAUDE.md file and refined after each review cycle.

Does Claude replace human code reviewers?

No. The team's core principle is that Claude's output should never be trusted blindly. The model gives a strong first pass, but engineers still review it and refine the rules. Value comes from combining the AI baseline with human judgment, not from replacing it.

What results has the team seen so far?

Across five merge requests already reviewed manually, Claude surfaced oversights the human reviewer had missed. Review quality also became more consistent across context switches, since the model applies the same rule set regardless of which of the 20+ parallel projects is in focus.