Nine narrow agents instead of one broad prompt
Each agent looks at one concern only (security, performance, tests, architecture...). A narrow prompt can demand evidence for every finding, which a general "review this" prompt cannot.
Case study 01 / 04AI TOOLINGSide project
Nine specialised agents review every GitLab merge request in parallel. An orchestrator merges their findings into one report and drops the comments nobody would act on.
01Input
Merge request diff
02Route
Orchestrator
03Review in parallel
Nine agents
04Output
One report
01Problem
In my experience, single-prompt AI reviews tend to produce vague or stylistic comments that developers learn to skip. I wanted a review step for merge requests that reports concrete, evidenced problems and stays quiet otherwise.
For each merge request the pipeline fetches the diff, routes files to specialized agents, and posts one structured comment. Every finding has to quote the changed code it refers to.
It is a tool for a GitLab merge request workflow, not part of a deployed application.
02Decisions
Each agent looks at one concern only (security, performance, tests, architecture...). A narrow prompt can demand evidence for every finding, which a general "review this" prompt cannot.
Agents are routed to Haiku, Sonnet or Opus depending on how much reasoning their concern needs.
Agents report to the orchestrator, not to the developer. It merges duplicates and drops low-value comments, so the merge request gets one structured report.
The pipeline runs as a GitLab CI job on the merge request, so the review lands where the team already discusses the change.
03Outcome
A working pipeline of Markdown prompt files and a shell pre-filter, designed to run in a GitLab merge request workflow and post one structured comment per merge request. Each report separates merge blockers from suggestions and gives severity labels and exact line references.
04Stack