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
- Open the Workspace Review tab in the right sidebar. With Split View, click Show git review in a pane header instead.
- Pick a repository if the session touched more than one.
- Open the Scope menu and choose a branch, Staged changes, or Unstaged changes.
- For a branch, use the Commit menu to show All commits or one commit.
- Click a file row to expand its diff.
- Select lines and click Quote to put them in the composer.
Controls & gestures
Toolbar
| Where | Gesture | Result |
|---|---|---|
| Repository name (one repository) | hover | Tooltip with the full path |
Context label (for example vs main, HEAD → Index) | hover | Tooltip with the comparison |
File tree and diffs
| Where | Gesture | Result |
|---|---|---|
| File row | hover | Tooltip with the full path |
| Diff text | select | A floating Quote button appears above the selection |
| Floating Quote button | click | Insert 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
| Where | Gesture | Result |
|---|---|---|
| Review card in chat | click | Open the review in the pane overlay. Needs Split View |
| Review card in chat | key Enter or Space | Same as click |
| Branch name on the card | click | Copy the branch name. Does nothing while text is selected |
| Branch name on the card | key Enter or Space | Copy 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
butCLI is on the hostPATH. 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, andmainare 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_presenttool and one short result line per call.
Install
sh
dsh plugin --profile <web|desktop> add @lukstei/dsh-client-review-git