Comparisons
PR Lens vs CodeRabbit
CodeRabbit reviews the lines and draws a Mermaid sequence diagram of the new path. PR Lens draws what the pull request did to the system. Most teams run both.
No, PR Lens does not replace CodeRabbit, and I would not want it to. CodeRabbit reads your diff line by line and tells you what is wrong with it. PR Lens draws the change and tells you what it is. Those are two different reading problems, and LinearB's 2026 benchmarks, drawn from 8.1 million pull requests across more than 4,800 organisations, suggest the second one is the expensive one right now: AI-generated pull requests wait 4.6 times longer for a reviewer to pick them up, over 16 hours against about 200 minutes, and once review starts they finish faster than human PRs. The delay is in front of the review, not inside it.
This post is the honest version of the comparison, because CodeRabbit is the one tool people assume overlaps with ours. It does generate diagrams. The overlap is narrower than the word "diagram" makes it sound.
What CodeRabbit does well
It is the most feature-dense product in the category, and I say that as a competitor. As of September 2026, on top of inline review comments and one-click fixes, CodeRabbit posts a walkthrough comment at the top of the pull request that contains a grouped summary of changed files with a plain-language description of each group, an estimated review effort, related issues and pull requests, a linked-issue assessment, suggested labels and reviewers, and a poem. It runs linters and SAST tools as part of the review, more than fifty of them by its own count. It has chat on the pull request, so you can argue with it. Its Advanced tier lists continuous security monitoring and architectural impact.
Its pricing page lists Essentials at $24 per developer per month billed annually, Team at $48, Advanced at $72 and custom Enterprise pricing, and public repositories get free reviews. For an open source maintainer that is a genuinely good offer and I recommend taking it.
If what you need is somebody to notice that the retry loop has no backoff, CodeRabbit is a better answer than any diagram.
What are CodeRabbit's sequence diagrams?
CodeRabbit's docs describe the diagram as one section of the walkthrough comment: for pull requests that affect component interactions, such as API calls, event flows and async workflows, it generates Mermaid sequence diagrams showing the updated flow, rendered inline by GitHub and GitLab. It is controlled by a sequence_diagrams configuration option that defaults to true.
That is a real feature and it is useful. A sequence diagram of the new flow is more than most tools give you. Four things are missing from it.
There is no delta in it. A Mermaid sequence diagram has participants and messages, and no way to say that this participant is new, that one was modified, and this third one was deleted. You get the flow after the change, and you reconstruct the before from the diff yourself.
The system around the flow is absent. A sequence diagram includes the participants the flow touches and nothing else, which drops exactly the context a reviewer who does not know the codebase is missing. The parts a change did not touch are the frame that makes the parts it did touch mean something.
Nothing moves. Mermaid renders a static picture inside a GitHub comment, so there is no ordering you can watch and no way to dim everything except the step you are on.
Layout is out of everyone's hands, including the model's. Mermaid's engine decides it, and it is not stable across content changes: add a participant and the diagram rearranges. I wrote out the full argument in Why Mermaid is the wrong tool for code review, including the places where Mermaid is clearly the right tool.
What PR Lens draws instead
Two lenses over one typed document.
The architecture lens draws the blast radius: what the pull request touches, drawn against the system around it, with the calls between components. Colour carries the delta. Green is new, amber is changed, red is gone, and removed components are struck through. The components the PR did not touch stay on the page, greyed and unlabelled by delta, because they are what makes the change legible to someone who has not been in that directory this quarter.
The data-flow lens is the one that looks closest to a sequence diagram, and it is the hero image on this page. It plays the ordered pipeline of the change as an animation, one dot crossing one arrow at a time, in the order the steps happen. You watch the enqueue, then the trigger firing, then the suppression list being fetched, then the batched posts to the email API. Seven steps, each taking one cycle.
CodeRabbit draws the path the code takes. PR Lens draws what the pull request did to the system. Both sentences are true at the same time, which is why teams end up running both.
There is one more thing that has no CodeRabbit equivalent. Every PR Lens comment links to a canvas at prlens.dev/c/<id> where the diagrams are full size with pan, zoom and a light or dark theme. On the canvas you press play, or W, and it walks the change one step at a time: everything else dims, the cards and routes for that step light up, and one line of text says what happened there. That is the artefact you send a teammate when they ask what the PR does. What a good pull request walkthrough looks like goes into why the steps matter more than the picture.
Where the mechanics differ
CodeRabbit's diagram is generated by the model as Mermaid text and handed to Mermaid to lay out. PR Lens splits that in half. The model writes a strongly typed JSON graph document with lenses, lanes and nodes, each node carrying an id, label, kind, delta and lane. A schema validates it. Then a renderer with zero dependencies beyond that schema draws it, measuring text from an embedded table rather than a browser, and emitting SVG with SMIL animation and no JavaScript. Everything left of graph.json reasons about code. Everything right of it draws.
That split is why the output is deterministic, why the same document renders identically on a CI runner with no fonts installed, and why the animation survives inside a GitHub comment where scripts are stripped. I wrote the reasoning up in Why the model should describe the graph and never draw it.
Running both
They do not fight. PR Lens keeps exactly one comment per pull request, identified by a hidden HTML marker, and rewrites that comment in place on every push, so it never turns into a thread. CodeRabbit's walkthrough is collapsible and every section of it can be switched off in configuration, so if you keep PR Lens for the picture you can turn CodeRabbit's diagrams off and keep its file summary.
The order I would suggest for a reviewer: open the PR, look at the PR Lens diagram to learn the shape, expand the drill-down to see the new path on its own, then read CodeRabbit's findings knowing where in the system each one sits. The finding "this fetch has no timeout" means something different when you can see that the fetch is on the only path between the queue and the email provider.
What PR Lens will not do for you
It will not catch a bug. It has no linters, no SAST, no severity ranking, no chat. If PR Lens is the only automation on your pull requests then nothing is checking correctness, which is a worse position than running CodeRabbit alone.
And the walkthrough summary CodeRabbit writes is prose about code, which is a different artefact from a picture of code even when both are accurate. I put the same pull request through both treatments in AI pull request summaries vs diagrams.
It costs nothing to try on a public repository, which is the fastest way to settle this. Install it on one repo, open a PR, and see whether the picture changes how you read the diff. If it does not, you have lost a minute. The same comparison against the reviewer most teams already have is PR Lens vs GitHub Copilot code review, and the rest of the category is in AI code review tools in 2026, grouped by what they actually do.
Questions people ask
Does PR Lens replace CodeRabbit?
- No. CodeRabbit reviews the diff line by line, flags issues, suggests fixes and posts a walkthrough summary. PR Lens does none of that; it draws the change as architecture and data-flow diagrams so you can see its shape before reading. Teams that run both get a picture at the top of the PR and findings on the lines.
CodeRabbit already generates sequence diagrams. Why would I add PR Lens?
- CodeRabbit's diagrams are Mermaid sequence diagrams of the interaction the change affects, generated when a PR touches component interactions. They show the flow the code takes. They do not show which components are new, changed or removed, and they do not include the parts of the system the PR left alone. PR Lens draws the blast radius against the surrounding system, with colour carrying the delta.
How much do PR Lens and CodeRabbit cost?
- As of September 2026 CodeRabbit lists Essentials at $24 per developer per month billed annually, Team at $48, Advanced at $72 and custom Enterprise pricing, with free reviews for public repositories. PR Lens is MIT licensed, free for open source, and can be run as a GitHub Action or CLI on your own model key. Check both vendors' current pricing before budgeting.
Will two bots clutter the pull request?
- Less than you would expect. PR Lens posts exactly one comment per pull request and rewrites it in place on every push, so it never grows a thread. CodeRabbit's walkthrough is collapsible and its sections can be turned off individually in configuration.
Sources
Keep reading
Turn it on
Install the App and every pull request in the repositories you pick gets drawn. Or hand the prompt to the agent you already have open.