Skip to content

Git review ​

Review git changes next to the chat.

@lukstei/dsh-client-review-git

What it does ​

  • Compares a branch, a single commit, or staged and unstaged changes for the repositories a session touched.
  • Shows one file tree with added and deleted line counts. Files start collapsed and expand to an inline diff.
  • Quotes selected diff lines, or a whole file diff, into the composer.
  • Opens as the Workspace Review tab in the right sidebar, or as an overlay in a Split View pane.
  • Lets the agent post a review card in the chat with git_review_present.
  • Only reads. It never checks out, fetches, or changes Git or GitButler state.

How to use ​

  1. Open the Workspace Review tab in the right sidebar. With Split View, click Show git review in a pane header instead.
  2. Pick a repository if the session touched more than one.
  3. Open the Scope menu and choose a branch, Staged changes, or Unstaged changes.
  4. For a branch, use the Commit menu to show All commits or one commit.
  5. Click a file row to expand its diff.
  6. Select lines and click Quote to put them in the composer.

Controls & gestures ​

Toolbar
WhereGestureResult
Repository name (one repository)hoverTooltip with the full path
Context label (for example vs main, HEAD → Index)hoverTooltip with the comparison
File tree and diffs
WhereGestureResult
File rowhoverTooltip with the full path
Diff textselectA floating Quote button appears above the selection
Floating Quote buttonclickInsert the selected text with file name and line range into the composer, or copy it to the clipboard if no composer is available
Pane header and chat card
WhereGestureResult
Review card in chatclickOpen the review in the pane overlay. Needs Split View
Review card in chatkey Enter or SpaceSame as click
Branch name on the cardclickCopy the branch name. Does nothing while text is selected
Branch name on the cardkey Enter or SpaceCopy the branch name

Settings you might change ​

None needed; defaults work. See the package README for scope and repository rules.

Works with ​

  • dsh-client-split-view (optional): adds the pane header button and lets chat cards open the review. Without it the card shows but cannot be clicked open; use the sidebar tab.
  • GitButler: branches compare against the branch below them when the but CLI is on the host PATH. Plain Git works without it.
  • Needs the web client with the right sidebar.

Good to know ​

  • Branches with no commit in the last 7 days are not listed, and gitbutler/workspace, gitbutler/target, and main are hidden from the list when GitButler is detected.
  • Repositories come from the working directory and from files the agent wrote or edited with its file tools. Shell edits are not detected.
  • Binary files, non-UTF-8 files, and unresolved conflicts show a notice instead of a diff.
  • Model Experience: adds the git_review_present tool and one short result line per call.

Install ​

sh
dsh plugin --profile <web|desktop> add @lukstei/dsh-client-review-git

Released under the MIT License.