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
- Diff — your current branch is diffed against the base branch
- Group — AI organizes the diff into logical review groups (not just file-by-file)
- Analyze — parallel agents run deep analysis (code quality, architecture, bug detection)
- Serve — a local server starts at
http://localhost:3456 - Open — your browser opens the review UI
Review UI
The UI shows your changes organized by review group. For each group:
- Diff view — side-by-side or unified diff with syntax highlighting
- Analysis — inline bug flags and review notes from AI agents
- Chat — ask questions about the group or the whole PR (multi-tab support)
Keyboard shortcuts
| Key | Action |
|---|---|
j / ↓ | Next group (or file in file view) |
k / ↑ | Previous group (or file in file view) |
c | Toggle chat panel |