#88th of 15 in Code review and testing
pr-lens
Posts animated architecture and data-flow diagrams as pull request comments
- Stars
- 2.2k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- TypeScript
21 on 18 Aug 20262,180 on 20 Oct 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
PR Lens reads a pull request diff with an LLM and posts a comment containing animated diagrams of the components touched and the calls between them, with new, changed and removed parts colored. It runs as a hosted GitHub App, a GitHub Action or GitLab/Bitbucket pipeline with your own model key, or through an agent skill and CLI that draw diagrams before a PR exists. An interactive canvas offers walkthroughs and per-arrow payload views.
Who it is for: Teams reviewing large PRs and agent users wanting visual code explanations
Ranked among open-source alternatives to CodeRabbit (#8 of 10).
Strengths
- Covers GitHub, GitLab and Bitbucket, with an Action, CI component and pipe
- Action accepts Gemini, OpenAI or any OpenAI-compatible endpoint via base-url
- Corrections like rename and exclude live in pr-lens.yml and survive reruns
- Agent skill and CLI validate diagrams locally before any PR is opened
Weaknesses
- Diagrams are LLM-generated, so names can be wrong and need config fixes
- Diff is sent to the chosen model provider
- Action comments are static; the checkbox view selection works only in the App
- On GitLab.com, project access tokens need a paid plan; Free uses a personal token
What it needs
- Needs GitHub App, GitLab CI or Bitbucket Pipelines, LLM API key (Gemini, OpenAI or compatible), Node.js (npx CLI)
- Models: Gemini, OpenAI, OpenAI-compatible /chat/completions
Also in Code review and testing
See all 15| Rank | Project | Score |
|---|---|---|
| 1 | open-code-reviewCLI that reviews Git diffs with an LLM agent and line-level comments | 80 out of 100 |
| 2 | react-doctorCLI that scans React codebases for state, performance, security and accessibility issues | 74 out of 100 |
| 3 | hunkTerminal diff viewer for reviewing code changes, with inline agent notes | 74 out of 100 |
| #4 | no-mistakesLocal git proxy that runs AI review, tests and lint before opening a PR | 73 out of 100 |
| #5 | pr-agentLLM pull request reviewer that comments via /review, /describe and /improve | 71 out of 100 |