PR Lens
Turn code changes into animated architecture and data-flow diagrams so reviewers can see the change before reading the code.
- Source repo
- coldteadotai/pr-lens
- Stars
- ★ 2.4k
- Last updated
- 5d ago v0.15.0
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 65/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- Low · running in minutes
- You'll need
- 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.
- A reviewer wants to locate affected components and call paths in a large PR before reading its files one by one.
- A monorepo maintainer needs to see which lanes, components, and data-flow steps a change crosses.
- A developer using a coding agent wants SVGs of its changes before opening a pull request.
- A GitHub team wants the App to post diagrams in a PR comment and update them on every push.
- 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-lensnpx @coldtea/pr-lens-cli analyze --base origin/mainnpx @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-lenspnpm installHow 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.jsonThe 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
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 ↗ -
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.1View on GitHub ↗ -
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.0View on GitHub ↗
FAQ
Do I need a paid model API key to use PR Lens?
/chat/completions.What does PR Lens read, and where does analysis go?
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?
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?
Which permissions does the GitHub Action need?
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?
Is PR Lens still maintained?
Who makes PR Lens?
What is PR Lens's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.