Skip to main content

LinkedIn splits AI code review across specialized agents

· Do Minh Tuan · Future Pulse 🔮

LinkedIn splits AI code review across specialized agents

The write-up on LinkedIn's multi-agent code review platform describes an internal system built to review pull requests at its scale. The company's argument is that a single general assistant plugged into GitHub produces too much noise at its scale, so it split the job across specialized agents instead.

That matches what I see when teams bolt an AI reviewer onto a repository. The first week is impressive. By the fourth week, a lot of the comments are formatting suggestions that the linter already handles, and the rest are confident statements about functions that do not exist. Developers stop reading, and the tool becomes decoration.

A pull request, for anyone outside engineering management, is a proposed set of code changes that a colleague reviews before it merges. Review is where quality and knowledge transfer happen, and it is also where senior engineers lose their afternoons.

The four roles

LinkedIn's system divides the work. One agent gathers context from the wider codebase and internal documentation, so the review knows what the change touches. A second looks for security and performance problems. A third checks style and house standards. A fourth synthesizes the findings, filters the low-confidence ones and produces the review a person actually reads.

The synthesis step is the one I would copy first. Specialized agents are easy to reason about; they are just prompts with a narrow job. The hard part is deciding which of their outputs deserves a human's attention. A filter that is too loose buries the important comment. Too tight and the reviewer misses the one thing that mattered.

I think splitting by concern also fixes a common failure in single-prompt reviews. When one prompt is asked to check everything, it tends to check the easy things. Formatting is easy. Whether a new query will time out under load is hard. Give the model one job and the odds improve that the hard job gets done.

What it costs to run

Each agent is a model call, and a review may involve several. That is more expensive per pull request than one prompt, and LinkedIn is large enough that the cost is a real budget line. For a smaller company the arithmetic is different. If you review forty pull requests a week, the extra calls are noise on the bill. If you review four thousand, the routing decisions matter.

The pattern I would use is to run the cheap checks always and the expensive agents only when the diff touches sensitive paths. A change to a CSS file does not need the security agent. A change to an authentication module does. That one rule cuts cost more than any prompt tuning.

I would also want to know how the system handles a large diff. A review agent that only sees the first two thousand lines of a refactor will miss the part where the bug is, and it will not tell you it only saw part of the change. Truncation is the silent failure mode of every code review tool.

What worries me is the maintenance cost the post does not dwell on. Four agents mean four prompts, four sets of examples and four things to update when your standards change. The style agent in particular will rot quietly, because coding conventions drift and nobody rewrites the prompt. Assign an owner per agent, or watch the reviews drift back toward generic advice within a quarter.

The claim about developer time

The post says senior engineers spend a large share of their week on routine reviews, with a range attached. I have no way to verify the range, and it varies wildly by team. The underlying problem is real. Reviewing boilerplate is expensive because it consumes the attention of the most expensive people in the room.

But I would push back on the conclusion that automating review lets a small team operate like a large one. The reviews that matter most are the ones about design, trade-offs and whether a change belongs at all. An agent can flag a missing test. It cannot tell you that the feature should not ship, and that judgement is what senior engineers are paid for.

What automation does well is clear the queue of small comments so the human review can focus on the part that needs a person. That is a good outcome. It is also a narrower claim than the one vendors usually make.

That is also the honest boundary for the business case. If your team spends its review time on naming and formatting, the tool will pay for itself. If the bottleneck is that nobody has time to think about the design of a change, an agent adds comments to a queue that is already too long. Measure which problem you have before you buy the solution.

If you want to try it

Start with two agents, not four. One that reads the diff and the surrounding files, and one that reviews for a specific class of bug you actually suffer from. Run them in comment-only mode for a month. Count how many comments a developer acted on. If the number is low, the prompts are wrong, and adding agents will not fix it.

The question I would still ask LinkedIn is how they evaluate the reviewer itself. A system that produces fewer false positives might also be missing real issues, and those two numbers have to be tracked together. Otherwise you end up optimising for quiet, which is not the same as safe. That mismatch is what I would watch.

Written with AI assistance, reviewed and edited by Do Minh Tuan.