AI product Open source

PR Lens

PR Lens is a pull-request visualization tool by Coldtea that generates animated architecture and data-flow diagrams and posts them inside GitHub pull requests. It maps a change's components and call paths, uses green for new elements, amber for changed elements, and red for removed elements, and provides step-by-step walkthroughs, nested diagrams, and interactive canvases with pan, zoom, and light or dark themes.

View repository Visit site Mentioned in 1 video ↓

Overview

It is available as a GitHub App, GitHub Action, CLI, or coding-agent skill. The CLI analyzes a diff against a merge base, produces a graph document, renders theme-paired SVGs, validates documents against a schema, and can compose the pull-request comment. The GitHub Action can use Gemini, OpenAI, or an OpenAI-compatible endpoint; the agent skill lets a coding agent generate and attach the diagrams. Repository configuration in .github/pr-lens.yml supports renames, exclusions, lane pins, and groupings.

The repository documents Node 20.11+ and pnpm 10 requirements and is licensed under the MIT License.

What PR Lens is used for

1 use taken from transcripts — each links to the moment in the video.

  • Adds animated architecture and data-flow diagrams to pull requests, color-coding new, changed, and deleted elements. It can run as a GitHub app or CLI with local previewing.

Videos mentioning PR Lens

1 in the library.