CLI Usage

Basic workflow

# Review current branch against auto-detected base
lgtm

# Review against a specific base branch
lgtm --base develop

# Include uncommitted changes
lgtm --include-uncommitted

# Use a different port
lgtm --port 4000

What happens when you run lgtm

  1. Diff — your current branch is diffed against the base branch
  2. Group — AI organizes the diff into logical review groups (not just file-by-file)
  3. Analyze — parallel agents run deep analysis (code quality, architecture, bug detection)
  4. Serve — a local server starts at http://localhost:3456
  5. Open — your browser opens the review UI

Review UI

The UI shows your changes organized by review group. For each group:

Keyboard shortcuts

KeyAction
j / Next group (or file in file view)
k / Previous group (or file in file view)
cToggle chat panel