Skip to main content
Back

Coldtea AI's PR Lens Draws Animated Architecture Maps for AI-Generated Code Reviews

PR Lens turns pull requests into animated architecture and data-flow diagrams that show the shape of a change before you read a single line of code.

Repo, Full Access
  • PR Lens draws every pull request as animated architecture and data-flow SVGs posted inside the PR comment.
  • Open source under MIT, ~1.5k GitHub stars, available at github.com/coldteadotai/pr-lens.
  • Four modes: GitHub App (hosted, free for OSS), agent skill, GitHub Action, and standalone CLI.
  • Agent skill has your coding agent write the graph document itself, avoiding a second model bill.
  • Custom deterministic renderer with zero dependencies; animation uses SVG animateMotion, survives GitHub's image proxy.
  • Supports Gemini, OpenAI, and any /chat/completions-compatible endpoint including Ollama, DeepSeek, OpenRouter.

AI coding agents can produce a 400-line change across a dozen files in minutes. Human reviewers still have to reconstruct the affected system before deciding whether the code is safe to merge. PR Lens, an open-source project from Coldtea AI, generates animated architecture and data-flow diagrams for each pull request and posts them in a bot comment.

The repository has 2 stars. Its project site describes the goal succinctly: show the change before the reviewer reads each line. The diagrams identify affected components, unchanged boundaries, and new paths through the system.

Two maps from one graph

  • Architecture view: Shows the blast radius, meaning the services, routes, data stores, and packages affected by the pull request. Lanes organize components, while green, amber, and red indicate additions, modifications, and removals.
  • Data-flow view: Shows the ordered path of a request or event. Animated pulses trace how data moves through the changed system.
Architecture diagram of a signup flow through a welcome service and email queue
The architecture view groups affected components and highlights how each one changed.

Both views come from the same JSON graph document, validated against a strongly typed schema. The renderer is a pure function that converts the validated document into SVG without a browser dependency, external layout engine, or JavaScript in the output. Animation uses SVG