Skip to content
DocsReview and Git

Review and Git

Whatever an agent changes sits in your project folder until it is committed. Read it all in one view, undo what you don't want, and ship the rest without leaving lpm.
Lesson · 1:39 · Review code changes, with chapters and a transcript

Review what changed

  1. Click the three dots above the terminal and choose Review changes.

  2. Every uncommitted change is in one view, file by file. Red is how a line was, green is how it is now. Click a file in the list to see just that one.

  3. To drop a change, hover the file, click the undo arrow and confirm with Discard.

  4. Click Commit in the footer, type a message or let AI write it, and commit.

⌘⇧R opens the review straight away. You can edit and save right in the diff, and lpm won’t overwrite a file an agent changed in the meantime.

Commit and open a pull request

  • AI commit messages: your installed agent CLI (Claude Code, Codex, Gemini CLI or OpenCode) writes a conventional-commit message from the diff. Auto Commit does it in one click, and can push too.
  • In the commit dialog you tick files or whole folders. It commits whole files; there is no line-level staging.
  • Auto Create PR goes from uncommitted work to an open GitHub pull request in one step: a new AI-named branch if you are on the default one, a commit, a push, and a written title and description.
  • When your branch has a pull request, the footer shows PR #N, colored by its state. Click it to open the PR.
  • Merge a branch from the branch switcher. When Git reports conflicts, Resolve with AI clears the markers and stages the files for your review; the commit stays yours.
  • Tell lpm how to write commit messages, PR titles and branch names, for every project or just one.

Read and edit files

The Files tab (⌘⇧E) is a file tree with Git status colors beside a code editor. ⌘P jumps to a file by name. It is a light editor, not an IDE: any file can be sent to Cursor, VS Code, Windsurf, Zed, Sublime Text or WebStorm at the same line.

Read more: reviewing changes in the terminal and Git in lpm.