Skip to content

leanreview

A terminal code-review client. It reviews a patch/diff file, a local git comparison, a GitHub pull request, or a GitLab merge request in the same TUI: navigate the diff, attach draft comments anchored to semantic diff locations, then export them as Markdown (great for feeding review notes back to an AI as prompt feedback) or submit them as a real review.

It is a review client, not a git client: the installed git, gh, and glab handle repository and forge semantics; leanreview owns navigation, rendering, review state, and comments.

The main view

The main view: changed-files sidebar, unified diff, a draft comment in its inline box (), and an existing review thread marker ().

Install

go install github.com/perrito666/leanreview/cmd/leanreview@latest

Or from a checkout:

make            # builds ./leanreview
make install    # installs into GOBIN

Per-mode optional dependencies: gh (after gh auth login) for GitHub, glab (after glab auth login) for GitLab. Patch-file and local-git review need nothing but git — and a plain patch file needs not even that.

Quick start

leanreview change.diff        # review a patch file
leanreview --base main        # review this branch against main
leanreview 418                # review PR/MR 418 of this repo's origin
leanreview --list             # pick something from your review queue

Where to go next