In short.
PR Lens is a tool for developers and reviewers who want a visual picture of a code change before reading the diff. A model reads the change and writes a graph document. With the agent skill, that model is your coding agent. A custom renderer then draws the graph as animated architecture and data-flow diagrams. How you get the result depends on the route. The hosted GitHub App, the GitHub Action, the GitLab component and the Bitbucket pipe post it as a pull request or merge request comment. The CLI can render SVGs on your own computer and leaves posting to you. The agent skill can attach the diagram to a pull request description. A comment or drawing can optionally link to an interactive canvas. The main catch is that the diagrams come from a model and nothing here shows how accurate they are. The README gives no pricing beyond "free for open source", and it does not say where the hosted GitHub App sends your code. The README describes six routes. The hosted GitHub App needs no model key from you. The GitHub Action, GitLab CI/CD component and Bitbucket pipe use your own model key. In the CLI, only the analyze command talks to a model and needs a key. With the agent skill, your coding agent reads the diff and writes the diagram file, and the README mentions no separate model key. The keyed routes can use Gemini (the default), OpenAI, or any /chat/completions-compatible endpoint. The code is MIT licensed, copyright 2026 Coldtea AI. Every claim below comes from the project's own README and LICENSE. Nothing was installed or run, so behaviour, diagram quality and cost are untested.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is one file: README.md in the coldteadotai/pr-lens repository at commit 7d7042c771957286825b72a4577e35055402515e. The repository LICENSE (MIT) is included as the licence notice beside it. Both were read in full. Not covered: the images and animations the README references, the sub-package documentation, docs/canvas-api.md, the hosted GitHub App at [https://github.com/apps/coldtea-pr-lens], the website and canvas at [https://prlens.dev], the npm packages, the agent skill contents, and the Action, GitLab and Bitbucket implementations. Nothing was installed or run. Diagram quality, accuracy, setup effort, runtime behaviour and costs were not tested. Statements about them repeat the README's claims or are marked unknown.
The overview
What this is
PR Lens is a developer tool from Coldtea AI, the copyright holder named in the LICENSE. Its source lives in the GitHub repository coldteadotai/pr-lens, and the README names the website [https://prlens.dev]. The README's tagline: understand a pull request, any codebase, or software visually, before you read a line of code.
The README describes several parts in one repository: a shared schema package (@coldtea/pr-lens-schema), a renderer package (@coldtea/pr-lens-renderer), a CLI (@coldtea/pr-lens-cli), a GitHub Action, a GitLab CI/CD component, a Bitbucket pipe and an agent skill (@coldtea/pr-lens-agent-skill). It also describes a hosted GitHub App called coldtea-pr-lens [https://github.com/apps/coldtea-pr-lens] and a hosted interactive canvas on the PR Lens website. The hosted pieces are not part of the captured files, so only the README's description of them is available.
Overall assessment
The idea is clear and the README documents it well. It covers three code hosts, a CLI you run yourself, a CI route and an agent route, with example configuration for each. A reviewer facing a large or unfamiliar change could save time with a diagram of which components the change touches and how data moves between them. The README also links a blog post on reducing the cognitive load of reviewing AI-generated pull requests.
The evidence limits this assessment. Every claim comes from the authors' own README. The example diagrams and the Hall of Fame gallery (React, Node fetch, Kubernetes Ingress and seven others) are the project's own showcase. There are no independent benchmarks, accuracy measurements or test results, and nothing was run for this report. How closely the model-generated diagrams match the real code is unknown. Treat PR Lens as a way to get oriented, not as a replacement for reading the code.
Who it is for
The README targets people who review pull requests on GitHub, GitLab or Bitbucket. It also targets people who use a local coding agent and want to understand a codebase, or check the agent's own changes, before a pull request exists. The agents it lists are Claude Code, Codex, Gemini CLI, Cursor, OpenCode and Copilot. Open-source maintainers are also a stated audience, since the README says it is free for open source.
It may suit teams that get large or AI-generated pull requests, though the README names no target team size. If your code must not go to a third-party model provider, the README documents some options that may fit. The CLI accepts an openai-compatible provider with a base URL, and the README names Ollama as one option. The Action's openai-compatible setting is described as working with your own server. Only the analyze command talks to a model, so render, validate and export do not send anything to one. You can also draw the SVGs and open them on your own computer. How these routes actually handle data was not checked. The README does not say where the hosted GitHub App sends code, so that question stays open. PR Lens is a poorer fit for Bitbucket repositories with many pull requests from forks, because the README says the Bitbucket pipe cannot draw those.
What it can do
According to the README, PR Lens draws a change both as an architecture diagram and as a data-flow diagram. The architecture view shows the components a change touches against the system around them, plus the calls between them. Colours mark what changed: green is new, amber is changed and red is removed. The data-flow view plays the steps of the change in order with a moving dot. Clicking an arrow opens a panel with the request and the response, each shown as an expected shape or a sample. Added fields are green and removed fields are red.
The README says the comment has folding sections, each with a zoomed-in diagram: the whole change first, then the new path, then what was removed. Bitbucket is the documented exception. It shows comments as plain Markdown, so there are no folding sections and no light and dark pair. Instead it shows the headline, the numbers, one diagram per lens, and then the zoomed-in views in order. A comment or drawing can optionally link to an interactive canvas, where you can pan, zoom and switch between light and dark themes. On the canvas you can start step-by-step animated walkthroughs with the play button or the W key. A local coding agent can connect to a canvas, answer follow-up questions live, and respond when you select cards. The README says its custom renderer (not Mermaid) scales from one card to a whole monorepo, and it shows an example with 37 cards and 49 lines.
How diagrams are delivered depends on the route. The renderer produces light and dark SVGs. With the GitHub App, every diagram comes in both versions and GitHub shows the one that matches the reader's theme. The App posts one comment per pull request, updates it on every push, and offers checkboxes for picking other views. Those checkboxes work only in the App. The GitHub Action posts a comment that stays the same after it is posted. The GitLab component and Bitbucket pipe post a comment that updates. The CLI's comment command prints the comment as Markdown and leaves posting to you. The agent skill can attach the diagram to the pull request description. A repository config file lets you rename cards, leave files out, pin cards to a lane and group items. The README does not claim any automated code review, bug finding or security analysis.
Using it
What you need
GitHub App: a GitHub repository where you can install the App. The README says it needs no model key from you.
GitHub Action: a workflow file and a model API key saved as a repository secret. It also needs two permissions: contents: write, to publish the rendered SVGs, and pull-requests: write, to post the comment. The checkout step needs fetch-depth: 0 so both commits of the diff are present.
GitLab: two masked variables, your model key and a project access token with the api scope. You also need a workflow rules block in your own .gitlab-ci.yml. On GitLab.com, project access tokens need the Premium or Ultimate plan. On the Free plan, a personal access token with the api scope works, but comments show your name instead of a bot's.
Bitbucket: full clone depth, plus two secured variables passed to the pipe by name. These are your model key and a repository access token with the pullrequest:write and repository:write scopes. Tokens for a whole workspace need Premium.
CLI: only the analyze command talks to a model. It needs a git repository and a model key in the environment: GEMINI_API_KEY by default, or OPENAI_API_KEY with --provider openai. For an openai-compatible endpoint you pass --provider openai-compatible --base-url. The README does not say whether such an endpoint also needs a key. The render, validate, comment and export commands do not talk to a model, and the README ties the key only to analyze. The README gives Node 20.11 or newer and pnpm 10 only as requirements for working inside the repository itself. It does not state the minimum Node version for running the published CLI through npx.
Agent skill: a coding agent, with the skill installed using npx skills add coldteadotai/pr-lens. The README says the agent itself reads the diff and writes the diagram file. It then runs the CLI's validate command until the file passes, draws the diagram, and attaches it with gh pr create --attach. The README does not mention a separate model API key for this route.
How it works
The CLI shows the pipeline step by step. The analyze command reads the diff, measured against the merge base rather than the branch tip, and asks a model to produce a graph document in JSON. Only this step talks to a model. The render command turns the JSON graph into light and dark SVG files plus a manifest. The comment command prints the pull request comment as Markdown on standard output, and posting it is up to you. The validate command checks any PR Lens document or config file against the schema and reports every problem it finds. The export command saves a pull-request document as a map of the system that you can commit.
The README says the renderer draws the SVGs "the same way every time" from a given graph. The part that varies is the model's reading of the diff. The rename and exclude rules in the config file are applied on top of what the model finds, so they keep working when the model names things differently between runs. Working files go in a .pr-lens/ folder, which the CLI adds to .gitignore the first time it writes there.
For the agent route, the README says the skill teaches the agent to read the diff and write the diagram file. The agent runs npx @coldtea/pr-lens-cli validate until the file passes, draws the diagram, and attaches it to the pull request description with gh pr create --attach. The README does not explain how an agent connects to a live canvas. The canvas API is documented in docs/canvas-api.md, which was not captured.
Setup paths
Easiest path, per the README: install the GitHub App from [https://github.com/apps/coldtea-pr-lens] on a repository and open a pull request. The diagram appears and updates on every push.
Agent path: run npx skills add coldteadotai/pr-lens, then ask your agent to diagram the change it just made. The README also supplies a longer prompt to paste in. It has the agent install the skill, help install the App, optionally set up the Action with your own key, and then test on the latest change.
Own-CI path: add the GitHub Action workflow, the GitLab component (gitlab.com/coldteadotai/pr-lens/pr-lens@0.1.0) or the Bitbucket pipe (docker://ghcr.io/coldteadotai/pr-lens-pipe:0.1.0), with the variables listed under requirements. Own-machine path: export your model key, run npx @coldtea/pr-lens-cli analyze --base origin/main, then render. Per-repository settings go in .github/pr-lens.yml. On GitLab and Bitbucket the file can be .gitlab/pr-lens.yml or a pr-lens.yml at the repository root. Setup was not performed or timed, and the README gives no time estimate.
Examples from the README
Agent prompt: "Diagram the change you just made with PR Lens and attach it to the pull request."
CLI sequence from the README: run npx @coldtea/pr-lens-cli analyze --base origin/main, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json, then open the generated dark or light SVG in any browser. The README says the SVGs are self-contained.
Action workflow from the README: a workflow named PR Lens that triggers on pull_request, with the permissions contents: write and pull-requests: write. It has one concurrency group per pull request number with cancel-in-progress. It has an actions/checkout@v4 step with fetch-depth: 0, and a step using coldteadotai/pr-lens/packages/action@v0 with api-key set to the secret GEMINI_API_KEY.
Config correction from the README: a .github/pr-lens.yml with schemaVersion 0.1.0. Its map.rename entry renames services/legacy-mailer.ts to "Postmark sender", and its map.exclude entry lists the glob "**/*.test.ts". These examples are quoted from the README. None were run for this report, so no real output is shown.
Assessment & evidence
Limitations and risks
Accuracy is not measured. The diagrams come from a model's reading of a diff, and the README gives no error rates or failure cases. The rename and exclude corrections exist, which suggests names and groupings can be wrong. The README also says the model may name things differently from one run to the next.
Platform differences, per the README: the GitHub Action posts a comment that stays the same after posting, because an Action cannot remember anything between runs. The checkboxes for other views work only in the App. Bitbucket comments are plain Markdown, with no folding sections and no light and dark pair, and Bitbucket never runs a pipeline for pull requests opened from forks. On GitLab, diagrams are uploaded as project attachments. On a private project, anyone with the attachment link can see the diagram without being a member. If the project requires authentication to view media files, the images will not load, though the canvas link still works.
Privacy and security questions: for the Action, the README says the key reaches the CLI through the environment, never on a command line, and the diff goes only to the provider you pick. For the CLI, it says only analyze talks to a model and the key is read from the environment, never from a flag. It does not say what the hosted App does with code. The setups ask for broad tokens: contents: write on GitHub, an api-scope token on GitLab and repository:write on Bitbucket. The Action is referenced by the movable tag @v0, and whether to pin it more tightly is your decision. The contents of the npm packages, the skill and the pipe image were not reviewed. One contributor rule, not a user risk: contributions need an approved issue first, and pull requests without one are closed.
Reasoning behind this report
PR Lens keeps the model's judgement separate from the drawing. Per the README, only the CLI's analyze command talks to a model, and its output is a JSON graph document. The validate command checks that document, and the repository config, against the schema and reports every problem, not just the first. The renderer turns a graph into light and dark SVGs the same way every time. Corrections in pr-lens.yml (rename, exclude, pin to a lane, group) are applied on top of what the model finds, so they keep working when the model names things differently between runs. The keyed routes let you choose Gemini, OpenAI or an openai-compatible endpoint, which the README says can include Ollama or your own server. Together these give you ways to check the structure, fix names and choose where the diff is sent.
Weighed against that, the README describes validation as a check against the schema. It does not claim validation confirms that a diagram matches the code, and it gives no accuracy data or failure cases. It does not describe how the hosted GitHub App and canvas handle data, it gives no pricing beyond open source, and nothing has been independently verified. These are gaps in the evidence, not findings that the tool is poor. They do mean PR Lens is best treated as an aid to reading the diff, not a substitute for it.
Alternatives
The README compares PR Lens only with Mermaid. It says PR Lens uses a custom renderer instead, with animation, colours for what changed, and support for very large systems. The README gives no head-to-head comparison, and none was made for this report.
Other approaches you might weigh, not assessed here: drawing Mermaid or other diagrams by hand in pull request descriptions, relying on text-based AI pull request summaries, or reading the diff with help from a coding agent. The difference the README claims is the visual map of a change.
Evidence base
This report rests on two captured files, both at commit 7d7042c771957286825b72a4577e35055402515e: README.md (26,928 bytes) and the repository LICENSE (1,067 bytes). The README is the author's own description. Its images, GIFs and gallery links were not retrieved. Nor were the external pages: [https://prlens.dev], the GitHub App page [https://github.com/apps/coldtea-pr-lens], the skill page [https://skills.sh/coldteadotai/pr-lens] and the blog post [https://www.coldtea.ai/blog/reducing-cognitive-load-ai-generated-prs]. The sub-package READMEs (CLI, Action, GitLab component, Bitbucket pipe, agent skill and schema) and docs/canvas-api.md were not captured either.
No code was run, no package was installed, no diagram was generated and no cost was measured. Everything said here about behaviour is what the README claims.
Access & freshness
Costs
The software is MIT licensed, and the README says the service is "Free for open source". Pricing for repositories that are not open source is not stated, so it is unknown. The hosted canvas's limits and terms are not stated either.
The GitHub Action, GitLab component, Bitbucket pipe and the CLI's analyze command use a model key or compatible endpoint that you supply. Supplying a key or endpoint does not by itself mean you pay per use. Whether you are charged depends on the provider and your arrangement with it, and a local server such as Ollama or your own endpoint may work differently from a paid hosted API. Provider, compute and hosting costs are unknown, and the README gives no per-run cost or token figures. The README mentions no separate model key for the agent skill, and the cost of running your own coding agent is not covered. The README does note plan requirements for tokens. GitLab.com project access tokens need Premium or Ultimate, though a personal access token works on Free. Every Bitbucket plan has repository access tokens, but workspace tokens need Premium. CI minutes are not covered.
Rights and licence
The LICENSE file is the standard MIT licence with the notice "Copyright (c) 2026 Coldtea AI". It allows you to use, copy, modify, merge, publish, distribute, sublicense and sell the software and its associated documentation files, as long as the copyright and permission notice are included in all copies or substantial portions. The software is provided as is, with no warranty. The README footer also says "MIT © Coldtea". The README is a file in the same repository at the same commit, so it can be redistributed unchanged with that notice.
The captured files do not say how far the licence reaches beyond the repository. Whether it, or other terms, applies to the hosted GitHub App, the hosted canvas at [https://prlens.dev] or the Hall of Fame gallery pages is unknown. Terms of service, data handling and retention for those hosted services are not in the evidence. The rights that apply to content that was not captured, such as the README's images and animations, the other repository files and the external pages, are also unknown. The LICENSE text does not mention trademarks or brand use, so whether any separate conditions apply to the PR Lens name and logos is not stated.
Freshness
The content was captured on 2026-11-14 at commit 7d7042c771957286825b72a4577e35055402515e. The LICENSE copyright year is 2026. The README shows early version numbers: 0.1.0 for the GitLab component, the Bitbucket pipe image and the config schemaVersion, and the v0 tag for the Action. That suggests a young project whose interfaces may still change, though the README does not say so.
The evidence has no release dates, no changelog and no date of last update. The README gives two different Discord invite links, one in the badge row and one in the Community section. One may be left over from an earlier version, so check them before relying on either. Anything about the hosted App or canvas may have changed since capture.
What to do next
The README advertises free use for open source. Pricing for any other repository is unknown, whether or not its code is sensitive. If you try it on an open-source repository, compare a few generated diagrams with the real diff to judge accuracy for yourself.
Before using the hosted App on private code, find out where it sends diffs and on what terms, because the README does not say. If you choose the Action, GitLab component, Bitbucket pipe or CLI, decide which model provider or compatible endpoint will see your diff, and check its data handling yourself. Use tokens with the fewest permissions that work, and consider pinning versions rather than using a moving tag.
Read the per-package READMEs (packages/cli, packages/action, packages/gitlab-component, packages/bitbucket-pipe, packages/agent-skill) before relying on specific options, since only the top-level README was reviewed. Look for pricing and terms for repositories that are not open source at [https://prlens.dev].
