lgtm

AI-powered local code review with intelligent diff grouping. Analyzes your branch changes, organizes them into logical review groups, and serves an interactive UI for self-reviewing before opening a PR.

How it works

  1. Run lgtm in your repo (or use the desktop app)
  2. Your branch is diffed against the base branch
  3. AI groups related changes into logical review units
  4. Deep analysis agents flag bugs, quality issues, and architecture concerns
  5. An interactive UI opens for reviewing, chatting, and applying fixes

Features

FeatureDescription
Intelligent groupingOrganizes diffs into logical review units, not just file-by-file
Bug detectionFlags potential issues inline with severity levels
Deep analysisParallel agents for code quality and architecture review
ChatAsk questions about specific groups or the whole PR
Code editsChat can suggest fixes you apply directly from the UI
PR commentsView and post GitHub PR review comments inline
Custom agentsDefine per-repo review agents with .lgtm.d/*.md files
ThemesGitHub Dark + 4 Catppuccin variants

Quick start

# Desktop app (recommended)
# Download from Releases, drag to Applications, open

# CLI
npm install -g @flpstudio/lgtm
lgtm

See Installation for full setup.