PR Lens

Turn code changes into animated architecture and data-flow diagrams so reviewers can see the change before reading the code.

Stars
★ 2.4k
Last updated
5d ago v0.15.0
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
TypeScript

At a glance

How it runs
Agent plugin / skillCLIChat bot
Works with
Universal · cross-platformCodex
Cost
Free tier plus a paid hosted plan
Setup effort
Low · running in minutes
You'll need
Node 20.11 or newerpnpm 10GitHub CLIShell / CLINetwork accessLocal filesystem
Typical use
A reviewer wants to locate affected components and call paths in a large PR before reading its files one by one.
Not a fit if
  • Teams that require analyzed diffs to stay within their own environment
  • Teams that need Bitbucket pipelines to run on fork pull requests
Website
prlens.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-18latest release v0.15.0 (2026-11-07)+3.7 ★/day over 7 days
Source review
65/100 · Some gaps

What does this agent do, and when should you use it?

PR Lens can run as a GitHub App, GitHub Action, CLI, or coding agent skill to draw architecture and data-flow views of pull requests. Its shared graph format is JSON defined by @coldtea/pr-lens-schema, which @coldtea/pr-lens-renderer renders as self-contained light and dark SVGs. The GitHub App posts diagrams in a PR comment and updates that comment on later pushes; the CLI and Action can analyze diffs with a model key you provide. GitLab CI/CD component and Bitbucket pipe integrations bring diagram generation into those review workflows too. It suits teams that want a visual map of changes across components; teams running their own analysis need to account for model credentials and pipeline setup.

PR Lens reads a code diff against its merge base and, in the analysis path, calls the selected model to produce graph JSON. @coldtea/pr-lens-cli analyze runs analysis, render writes light and dark SVGs for each drawing, validate checks a graph and repository configuration, comment outputs Markdown for a target forge, and export can write a system map. Diagrams use lanes, cards, and connecting paths to show affected components and calls; architecture views mark additions in green, changes in amber, and removals in red. Data-flow views step through a path and let readers inspect the request or response shape carried by an arrow. The GitHub App, GitHub Action, GitLab component, and Bitbucket pipe connect drawings to their review workflows; the coding agent skill lets a compatible local coding agent draw a code change.

  1. A reviewer wants to locate affected components and call paths in a large PR before reading its files one by one.
  2. A monorepo maintainer needs to see which lanes, components, and data-flow steps a change crosses.
  3. A developer using a coding agent wants SVGs of its changes before opening a pull request.
  4. A GitHub team wants the App to post diagrams in a PR comment and update them on every push.
  5. A GitLab or Bitbucket team wants review diagrams generated through a CI/CD component or pipe.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx skills add coldteadotai/pr-lens
  • npx @coldtea/pr-lens-cli analyze --base origin/main
  • npx @coldtea/pr-lens-cli render .pr-lens/graph.json
Environment variables
GEMINI_API_KEY
Config files
.pr-lens/graph.json
Runtime
Node.js 20.11
Install notes cover
Linux

How do you install or deploy this agent?

Install the local CLI or coding agent skill with the commands below. The repository specifies Node 20.11 or newer and pnpm 10; GitHub App users can install it from the App page. For Action, GitLab component, or Bitbucket pipe deployments, configure the model key and the comment permissions or token required by that integration.

npx skills add coldteadotai/pr-lens
pnpm install

How do you use this agent?

For first-run CLI analysis, set an API key for the model provider. Gemini is the default; OpenAI and services compatible with /chat/completions are also supported. These commands analyze changes from the merge base with origin/main and render SVGs:

export GEMINI_API_KEY=…
npx @coldtea/pr-lens-cli analyze --base origin/main
npx @coldtea/pr-lens-cli render .pr-lens/graph.json

The CLI can also run validate, comment, and export after analysis. The GitHub Action example runs on pull_request; save the model key as a repository secret and grant permission to publish SVGs and write PR comments:

name: PR Lens

on:
  pull_request:

permissions:
  contents: write
  pull-requests: write

jobs:
  lens:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: coldteadotai/pr-lens/packages/action@v0
        with:
          api-key: ${{ secrets.GEMINI_API_KEY }}

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Its custom renderer produces animated SVGs and uses distinct colors for added, changed, and removed code.
  • PR comments support foldable diagram sections, with a zoomable, pannable canvas and step-by-step walkthroughs also available.
  • The project documents GitHub App, CLI, GitHub Action, GitLab component, Bitbucket pipe, and coding agent skill entry points.
  • The Action and CLI can use Gemini, OpenAI, or a provider compatible with /chat/completions.
Limitations
  • CLI and user-managed CI analysis require a model API key; the diff is sent to the provider you select.
  • The repository specifies Node 20.11 or newer and pnpm 10; CLI use also requires a local Git repository and shell.
  • Bitbucket does not run pipelines for pull requests from forks, so its documented pipe cannot draw those PRs.
  • Bitbucket comments are plain Markdown, without foldable sections or paired light and dark diagrams.

How does this agent compare with similar options?

The README explicitly contrasts PR Lens with Mermaid: PR Lens uses a custom renderer for animated diagrams and represents code additions, removals, and changes. It does not provide a feature or price comparison with other alternatives.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
PR Lens This agent 65 · Some gaps Agent plugin / skillFreemium ★ 2.4k 5d ago TypeScript Codex
Auggie CLI 43 · Major gaps CLI ★ 296 today Shell —
Vet Code Change Verifier 47 · Major gaps CLIFree + model costs ★ 472 2mo ago Python Codex · Claude Code · OpenAI API · Claude API
DeepSeek Harness for GitHub 85 · Good Chat botFree + model costs ★ 67 23d ago TypeScript —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
65/ 100 5-point scale 3.3 / 5
Trust 14/29
Reliability 8/14
Adaptability 15/18
Convention 13/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

The repository presents several concrete permission and data-flow controls: the Action example grants content and PR-comment write permissions, passes keys through the environment, and the CLI documentation says diffs go only to the selected provider. It also discloses GitLab attachment exposure and the Bitbucket fork limitation. Deductions: several modes still write repository content, comments, or attachments without per-operation confirmation; rollback, dependency-security review, and maintainer identity/update path are not well evidenced.

Reliability8 / 14 · 2.9/5

The CLI has explicit command dispatch and a stable error-code convention; supplied Action tests cover stale-run comment updates, comment ownership, input references, and script failures, and the README descriptions are broadly consistent. Deductions: availability of npm, GitHub, model providers, and hosted canvases is outside the evidence, and the sample is not the complete implementation needed to assess every failure path.

Adaptability15 / 18 · 4.2/5

The materials address reviewers, coding agents, beginners, and PR, codebase, and data-model scenarios. They describe GitHub, GitLab, Bitbucket, CLI, configurable model providers, and correction files, while naming limitations such as forks and private attachments. Deductions: skill triggers are broad and partly keyword-driven, and the supplied materials do not define the boundaries of every entry point.

Convention13 / 18 · 3.6/5

The README organizes features, configuration, and installation examples across platforms; a security contact, privacy-policy reference, and MIT license are present, and limitations are concrete. Deductions: package documentation is only sampled, so the full information architecture cannot be judged; root AGENTS.md is mainly contributor guidance rather than product usage documentation. The root package is version 0.0.0, no changelog is included in the sample, and the security contact gives limited evidence about release ownership or update commitments.

Effectiveness10 / 13 · 3.8/5

The product turns changes into navigable animated architecture and data-flow diagrams, walkthroughs, and PR comments/canvases, with outputs suited to code review; configuration can correct names and exclude files. Deductions: the claimed incremental value over a normal diff is supported mainly by project claims and examples, not independent evaluation, and model, deployment, and maintenance costs are not quantified.

Verifiability5 / 8 · 3.1/5

README setup examples and the supplied Action tests provide traceable support for some permissions, inputs, and comment behavior; parts of the workflow descriptions correspond to CLI interfaces and test snippets. Deductions: the sample is incomplete, promotional feature claims lack comprehensive implementation evidence, and some security and output-effectiveness statements remain documentation claims that cannot be checked item by item here.

Risks and how to mitigate them
  • The GitHub Action, GitLab, and Bitbucket setups can write to repositories or publish comments and attachments; review the required permissions and audience for the intended use.
  • GitLab attachments in private projects can be viewed by anyone with the link; Bitbucket does not run this pipeline for pull requests from forks.
  • The evidence is a partial static sample. No execution was performed, and it cannot establish every feature, dependency risk, or runtime behavior.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 7aff181def71 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/pr-lens.svg)](https://followagents.com/en/agents/pr-lens)
<a href="https://followagents.com/en/agents/pr-lens"><img src="https://followagents.com/badge/pr-lens.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.15.0 cli v0.15.0, renderer v0.5.0, schema v0.10.0
    Release notes excerpt
    What's Changed * ⬆️ chore(ci): gitlab and bitbucket update by @ohansemmanuel in https://github.com/coldteadotai/pr-lens/pull/86 * ✨ feat: the data-model lens by @ohansFavour in https://github.com/coldteadotai/pr-lens/pull/88 * fix(cli): refuse HTTP redirects on model provider requests by @carljmosca in https://github.com/coldteadotai/pr-lens/pull/90 * Put each table row's box in the renderer atlas by @ohansFavour in https://github.com/coldteadotai/pr-lens/pull/94 * fix(cli): require http(s) canvas URLs by @carljmosca in https://github.com/coldteadotai/pr-lens/pull/93 …
    View on GitHub ↗
  2. v0.13.1 cli v0.13.1
    Release notes excerpt
    What's Changed * fix(action): load comment images from private repositories by @ohansemmanuel in https://github.com/coldteadotai/pr-lens/pull/71 * Fix Claude compatibility in the GitHub Action by @ohansemmanuel in https://github.com/coldteadotai/pr-lens/pull/70 Full Changelog: https://github.com/coldteadotai/pr-lens/compare/v0.13.0...v0.13.1
    View on GitHub ↗
  3. v0.13.0 cli v0.13.0, action v0.6.3
    Release notes excerpt
    What's Changed * 🐛 fix(cli): adds --temperature to analyze, with default to send none by @ohansemmanuel in https://github.com/coldteadotai/pr-lens/pull/63 Full Changelog: https://github.com/coldteadotai/pr-lens/compare/v0.12.1...v0.13.0
    View on GitHub ↗

FAQ

Do I need a paid model API key to use PR Lens?
The README says the GitHub App is free for open source and does not require your model key. CLI and user-managed CI use a key you provide; documented providers include Gemini, OpenAI, and services compatible with /chat/completions.
What does PR Lens read, and where does analysis go?
The analysis flow reads a diff against its merge base. The CLI docs say only analyze calls a model; with the CLI or your own Action, the diff is sent to the model provider you select.
Can I draw a change before opening its pull request?
Yes. Run analyze --base origin/main and then render with the CLI. With the skill installed, you can also ask a coding agent to draw its changes.
Can the Bitbucket pipe handle pull requests from forks?
No. Bitbucket does not run pipelines for fork pull requests, so the documented pipe cannot draw them.
Which permissions does the GitHub Action need?
The example workflow grants contents: write to publish SVGs and pull-requests: write to post comments. It also expects the model key to be stored as a repository secret.
Is PR Lens open source?
Yes. The source code is on GitHub (coldteadotai/pr-lens) under the MIT licence.
Is PR Lens still maintained?
Yes. The latest commit on GitHub is from 2026-11-18, within the last 30 days. The latest release is v0.15.0 (2026-11-07).
Who makes PR Lens?
PR Lens is published on GitHub by the account coldteadotai. FollowAgents has not verified which person or company is behind that account.
What is PR Lens's official website?
The project's GitHub repository lists https://prlens.dev as its website. That link is set by the repository owner; the source code itself is on GitHub (coldteadotai/pr-lens).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts