The repository,
inside the session.
One portable plugin gives a DSH host a real Git surface: status, diffs, history and branch controls in the right sidebar — plus GitHub Remote where the host offers the credentials seam. The same package runs on a web profile and in Rivetdeck, where it is preinstalled.
- Changes, Graph, Worktrees and Remote tabs in the right sidebar
- Git through ctx.subprocess — never a shell
- No model tools, no prompt content

Features
The whole review loop, without leaving the window.
Changes, Graph, Worktrees and Remote join the upstream right sidebar as pages through its standard registration — and every file comparison opens as a dsh-resource diff.
Changes
Status, staging and the commit in one tab
Porcelain v2 status in staged, unstaged and untracked sections, each row badged with its letter. A plus or minus toggles the index; undo discards behind a second confirmation that names the path.
- Split commit button: Commit, Amend, Commit & Push, Commit & Sync
- Auto-growing commit message field with a Generate control
- Refresh and reveal-in-folder actions live inside the Git frame

Diffs
One file, one side, one addressable tab
Every comparison is a dsh-resource://git/diff address, so the staged and working-tree diffs of one file open side by side. Asking for an address that already exists reveals its tab and refreshes it on a revision counter.
- Rendering is the official DSH DiffBlock — copying, folding and line wrapping included where the host offers them
- Binary, metadata-only, empty and truncated files are distinguished, not flattened
- The address is the tab identity, so diffs restore with the layout
Two addresses for one file
dsh-resource://git/diff/src%2Fcart.tsx/stagedstaged comparison
dsh-resource://git/diff/src%2Fcart.tsx/worktreeworking-tree comparison
Graph
A lane graph that pages itself
History renders as a canvas-drawn lane graph in one continuous coordinate space, so rails and merge edges never break at row boundaries. A scroll sentinel appends older commits instead of materializing everything.
- Auto, All and First-parent scopes beside refresh
- Kind-colored HEAD, branch, remote and tag chips on each line
- A hover card carries the full subject, hash, author and date
- HEAD → main
Merge pull request #19: support the 0.2.1 release candidates
cherrchen · 2h ago
- v0.2.7
feat(compat): support DSH 0.2.1-alpha.5, 0.2.1-rc.1 and 0.2.1-rc.2
cherrchen · 5h ago
- origin/main
feat: worktree management tab with upstream delegation and local fallback
cherrchen · 1d ago
- v0.2.5
feat(client): staged diff opens beside the worktree one
cherrchen · 1d ago
Composer
Branch and change count, before you type
A branch selector and a changed-files indicator sit to the left of the input and open the Changes tab. Creating a branch shares one modal, and after git init with no commits the menu explains that the first commit must exist.
- The selector follows the session’s effective directory when the host projects one
- A linked checkout shows a worktree label; “Use in this session” enters it through the host directory service
- Each session keeps its own repository state — two sessions never share a snapshot
Describe what you want to build…
Commit messages
Suggested, never committed
When the host exposes an LLM runtime, Generate sends the staged diff — capped by commitMessage.maxDiffBytes — to the session model or a provider/model pair pinned in plugin configuration. The streamed draft lands in the editable input.
- Generation never stages, commits or pushes anything
- The system prompt defaults to a Conventional Commits instruction and is editable
- With no resolvable model the control reports unavailable instead of guessing
plugins: - entry: @dsh-electron/dsh-plugin-git config: commitMessage: mode: custom provider: anthropic model: claude-haiku-4-5Worktrees
Every checkout, in one list
A dedicated Worktrees page lists each checkout of the current repository — wherever it was created — marks the one this session uses, and opens a creation dialog with an optional branch name and start point.
- “Use in this session” enters a linked checkout through the host directory service
- Creation delegates to the upstream worktrees runtime when mounted, or a local git worktree add when enabled in settings
- The tab appears only while the host reports a creation mode; delete and prune stay with Git
Checkouts of this repository
- current
main
~/code/shop
- Use in this session
feat/checkout-flow
~/code/shop/.agents/worktrees/checkout-flow
GitHub Remote
Pull requests and issues, beside the commit graph
Where the host provides the optional credentials seam, Remote adds GitHub to the same sidebar: browse PRs and issues, open each in its own detail tab, and follow a timeline of comments, commits and reviews.
- Verified PR checkout and Issue branches; create, close and merge stay protected actions
- Lists and file comparisons page in progressively, with rate-limit recovery
- Platform sign-in is its own dialog — it never configures Git fetch/push authentication
- Without the seam the package stays local Git; Remote simply does not register
Pull requests
signed in · GitHub CLI- #42
feat(remote): guarded PR create, close and merge
Open - #38
Issue branch: refresh worktrees after checkout
Open - #19
Merge pull request #19: support the 0.2.1 release candidates
Merged
Design boundaries
Git runs as Git. Nothing is reinvented.
The plugin shells out to the Git on the machine and keeps every risky edge explicit — including the ones it refuses to build.
- 01
Never a shell
ctx.subprocess starts Git with an executable plus separate argv values. Every caller-supplied path, branch and message stays one argv — no interpolation, no quoting surprises.
- 02
Destructive means two clicks
Discard restores one staged, unstaged or untracked change through explicit index, worktree and clean steps — and always behind a second confirmation that names the path.
- 03
Credentials stay with Git
Push and sync invoke git push and git pull --rebase as argv. A missing origin or rejected auth surfaces Git’s own error. Remote’s platform sign-in lives in its own dialog and never configures Git authentication.
- 04
Desktop is optional
A child ctx.inject(['desktop']) fiber adds reveal-in-folder and open-path where the provider exists. Repository, status, diff, stage, commit and branch operations work without it.
- 05
Bounded output
One command’s stream is capped at 8 MiB by default; past the cap the collector keeps the tail. It is validated configuration, not a hidden constant.
- 06
Nothing reaches the model
The plugin registers no model tools, prompt sections or request context. Commit-message generation is a separate host LLM request that leaves session tokens untouched.
Getting started
Two commands on a web profile.
The plugin installs through the DSH plugin manager from four sources — and in Rivetdeck it is already preinstalled, so there is nothing to do.
- 1
Install the package
Run this with a supported DSH runtime. Replace the profile for Electron desktop.
Recommended. Pre-built artifact; no package code runs at install time.
install · npm $ dsh plugin --profile web add @dsh-electron/dsh-plugin-git$ dsh --profile webPre-built offline package; the same tgz is attached to the GitHub Release.
install · tarball $ pnpm pack @dsh-electron/dsh-plugin-git$ dsh plugin --profile web add ./dsh-electron-dsh-plugin-git-0.2.14.tgzFetches sources and builds via prepare. allowBuilds must name the git+ key pnpm prints — the bare package name does not match it.
install · github $ dsh plugin --profile web add github:cherrchen/dsh-plugin-git#v0.2.14Links a local checkout for development. pnpm build produces lib/, which the install reads.
install · local $ git clone https://github.com/cherrchen/dsh-plugin-git.git$ cd dsh-plugin-git$ pnpm install$ pnpm build$ dsh plugin --profile web add "$PWD" - 2
Approve the GitHub build step
Only a
github:install builds on your machine — the package’s ownprepare. pnpm 10+ refuses withERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWEDuntil the key it prints is allowed in that profile’spnpm-workspace.yaml; pin a tag so a later push cannot change what runs.pnpm-workspace.yaml allowBuilds: '@dsh-electron/dsh-plugin-git@git+https://github.com/cherrchen/dsh-plugin-git#v0.2.14': true - 3
Open a session in a repository
The branch chip and the changed-files indicator appear in the composer once the session’s directory is a repository.
Every supported release ships the right sidebar this plugin registers into — no extra host plugin is needed.
Notes
- Rivetdeck preinstalls Git; the bundled version can lag the npm release. Install into the profile to run a newer one.
- Commands above use the web profile. For Electron desktop, replace
--profile webwith--profile desktop. - Running DSH from a source checkout? Use
pnpm dshinstead ofdsh.
Compatibility
An exact list, not a range.
The client registers into sidebar and settings slots whose shapes change between pre-stable releases, so support is the exact list CI has run — each row lists the releases a published plugin version accepts; the current package is v0.2.14.
| Plugin version | Supported DSH releases |
|---|---|
| v0.2.14latest |
|
| v0.2.13 |
|
| v0.2.12 |
|
| v0.2.11 |
|
| v0.2.10 |
|
Platforms
- macOSVerified
Same portable build on web and desktop; reveal actions use the desktop provider when present
- LinuxVerified
Same portable build; no platform-specific code paths
- WindowsVerified
Same portable build; Git errors from push and sync surface verbatim
Status is declared per release and never inferred from version order. From DSH 0.1.7-rc.1 the plugin manager enforces these exact peer ranges at install time. Per-release adaptation notes live in the compatibility reference (opens in a new tab).
Review the change where it happens.
One command on a supported host — and in Rivetdeck it is already there. Uninstall and the window is exactly upstream again.
