Quick answer: Multi-agent system design for a production PR reviewer comes down to six patterns: a trigger and intake layer, parallel specialist agents, an aggregation step, verification by an independent agent, human approval routed by confidence, and cost visibility. Each one exists to stop a specific failure. A small team can get the coordination patterns from a task board with agents and still has to code the intake and the cost math.
Why a single-prompt reviewer fails in production
The first version of every AI reviewer is one prompt: “Review this diff for bugs, security, tests and docs.” It works on a demo branch. It fails on a real team for four reasons.
The prompt mixes four jobs, so the model gives each one a shallow pass. Its output is prose, so nobody can count findings, compare runs or audit a decision later. It runs once with no second opinion, so a confident wrong comment lands on the PR. And nobody sees what it cost until the invoice shows up.
Every pattern below fixes one of those failures.
The six patterns of multi-agent system design
A production multi-agent reviewer splits into six parts, each guarding against one failure:
- Trigger and intake: accept the event, prove it’s real, drop duplicates.
- Parallel specialists: one agent per concern, each with a narrow brief.
- Aggregation: merge findings into one ranked, deduplicated list.
- Independent verification: a separate agent checks the findings before anyone sees them.
- Human approval by confidence: route low-confidence findings to a person.
- Cost visibility: track tokens and spend per run.

1. Trigger and intake: what stops duplicate reviews?
Intake is the layer that receives the GitHub webhook, proves it came from GitHub and returns fast. GitHub signs each delivery with an HMAC-SHA256 digest in the X-Hub-Signature-256 header, per its guide to validating deliveries.
GitHub’s webhook guidance also says your server should answer with a 2XX “within 10 seconds”, or the delivery counts as failed. A model call takes longer than that, which is why the course puts a Redis queue between the webhook and the agents. The X-GitHub-Delivery header gives each delivery a unique ID, and a redelivery keeps the same ID, so you store it and skip repeats.
Without intake, a forged request can start paid runs, and one retried delivery can post the same review twice.
2. Parallel specialists: why split the reviewer?
A specialist is an agent with one concern and a short brief: security, code quality, tests or documentation. Narrow briefs produce findings you can check, because each agent knows what a finding in its lane looks like.
Each finding should carry a file, a line, a severity and a confidence score. That structure is what the later patterns run on. Without specialists, you get one long comment that’s hard to verify and impossible to route.
3. Aggregation: how do findings become one review?
The aggregator merges the specialists’ output into one list, drops duplicates (two agents flagging the same line), and ranks by severity. The course builds this with LangGraph workflow patterns. Anthropic’s Building effective agents describes the same shape as parallelization with sectioning: split the task, run the parts at once, combine the results.
Without aggregation, the PR gets four bot comments that repeat and contradict each other, and authors learn to ignore all four.
4. Independent verification: who checks the reviewers?
A verifier is a separate agent whose only job is to test the findings, not to find new ones. It reruns the claim against the code, checks that the line exists and asks whether the fix would compile. The course adds regression checks here too.
Independence matters. A verifier that shares the specialists’ prompt or context tends to agree with them. Give it different instructions and, if you can, a different model. Without verification, hallucinated findings reach the author with the same confidence as real ones.

5. Human approval by confidence: when should a person decide?
Approval routing sends each verified finding down one of two paths. Above your threshold, it posts to the PR. Below it, it waits in a queue for a person. The threshold is a dial: start strict, then loosen it as you see which findings hold up.
Without this pattern, you choose between two bad options: every finding needs a human (so the agents save no time) or none does (so wrong findings ship). For how to size that queue, see Human Review Is the Bottleneck.
6. Cost visibility: what does one review cost?
Cost visibility means recording tokens and spend per run, per agent and per PR. Five agents per pull request multiply spend fast, and the cost grows with the size of the diff. The course builds a token dashboard for this. Without one, the first sign of trouble is the bill.
Build vs use: which patterns you still code
Here is the honest split. The middle column is what the course builds. The right column is what a board with agents gives you, checked against Sharkly’s docs.
| Pattern | Build it yourself (the course) | What a board with agents gives you |
|---|---|---|
| Trigger and intake | Webhook server, HMAC check, delivery-ID dedupe, Redis queue | GitHub integration links a PR to a task by task ID. HMAC, dedupe and fast-ack are yours to build. |
| Parallel specialists | LangGraph nodes, one per concern | Agents with their own instructions, grouped in a Crew |
| Aggregation | LangGraph merge step | The Crew leader combines member results on one task |
| Independent verification | Verifier sub-agent, regression checks | A separate reviewer Agent started by a task-status Automation |
| Human approval by confidence | Threshold logic plus an approval queue | Review statuses and Inbox for the human step. The threshold rule lives in your agent’s instructions. |
| Cost visibility | Token economics dashboard | Per-Runtime usage on each Computer. Per-PR dollar cost is yours to build. |
The pattern: coordination is configuration, intake and money are code.
The same reviewer as board work in Sharkly
Sharkly doesn’t replace the course’s stack. It replaces the glue between agents and people. Here is the reviewer rebuilt as board work, using only documented behavior.
A task per PR. Put the task ID in the branch name, PR title or PR body and the GitHub integration links the pull request to the task. Merging the PR does not change the task’s status, so the review state stays your call.
Specialists as a Crew. A Crew is a group of Agents with one leader Agent. Assign the task to the Crew and the leader starts first, reads the task, then mentions the members it needs: a security Agent, a tests Agent, a docs Agent. Their results land on the same task, and the leader combines them. That covers patterns 2 and 3.
A reviewer Agent as the gate. An Automation with a task-status trigger starts a different Agent when the task moves into a chosen status. We run this exact setup on our own board: when a writer Agent moves a task to Ready for Release, a gate Agent with its own instructions reviews the work.

A human approves. An Agent can leave the task waiting for human review, which surfaces in the reviewer’s Inbox. The board shows those tasks flagged for review in their column, so the approval queue is a place you can see.

Model spend stays on your own Claude Code, Codex or API plans, and each Computer reports usage per Runtime. To try it on your own repos, Sharkly is free to start.
Where a three-person team should start
Don’t build all six at once. Start with two.
First, independent verification. It’s the cheapest pattern with the biggest payoff: one extra Agent with different instructions catches the confident wrong findings that make developers stop reading bot reviews.
Second, human approval. Route everything through a person for two weeks, note which findings they accept, then set your confidence threshold from that record instead of a guess.
Add specialists when one reviewer’s comments get long and shallow. Build real intake (HMAC, dedupe, queue) before you point the reviewer at a public repository. For a smaller first step, AI Code Review Workflow for Small Teams covers the lighter version.
Conclusion
Multi-agent system design is less about the number of agents and more about the failures between them. Intake stops forged and duplicate runs. Specialists and aggregation make findings checkable. Verification and approval keep wrong findings off the PR. Cost visibility keeps the bill honest. For the build-it-yourself path, take Ayush Singh’s course. For the coordination half, set up one task, one Crew and one gate Agent in Sharkly, and keep your code for intake and cost.
FAQ
What is multi-agent system design?
Multi-agent system design is how you split a job across several AI agents and connect them: who triggers each agent, what each one owns, how results merge, who checks them and when a person decides. A good design gives each agent one concern and makes every handoff visible.
How many agents does an AI PR reviewer need?
Fewer than you think. A reviewer plus an independent verifier covers most of the value. Add specialist agents (security, tests, docs) when one reviewer’s output gets long and shallow, and add an aggregator once you have more than one specialist.
Can AI agents approve pull requests on their own?
They can, but don’t start there. Route findings through a human first, track which ones hold up, and only then let high-confidence findings post without approval. See what AI code review agents can and cannot verify before you widen that gate.



