Git status badges for DSH: sidebar workspace-row badges and an input-row chip showing the current conversation's workspace git state, with event-driven freshness over SSE.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-git-badge
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Kevin-McIsaac/dsh-workspace-git-badge#path:/dsh-git-badge
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Git status badges for DeepSeek Harness:
- Input-row chip —
✚ main ↑0 ↓2 ✎3next to the access picker, showing the git state of the workspace the current conversation is attached to. The leading glyph is the action the node half picked; with no action the chip starts at the branch name. Works on every install. - Hover card — rest a pointer on the chip for what won't fit: the file breakdown (
✎3split into staged / unstaged / untracked), the last ten commits, and the stash. Fetched only on hover, so the everyday badge pays nothing for it. Works on every install. - PR / CI token —
✚ main ↑0 ↓2 PR#142 ✓when the branch has a GitHub pull request, read through your ownghCLI (the plugin never handles a credential). The token links to the PR — it opens in a new tab, and underlines when you hover or focus it. Invisible whenghcannot answer: not installed, not logged in, no GitHub remote, offline or rate-limited all render the unchanged chip, and a token with no URL to link to stays plain text. - Worktree-aware — a session can enter a linked
git worktreeor another repository. DSH records the session's working directory (working_directorycommits the change), and the badge describes that checkout — its branch, counts and PR/CI token (chore/global-skills-tiering ↑0 ↓2 PR#391 ✓rather thanmain). A compact full-colour tree between the branch name and the sync suffix marks a linked worktree; the hover card names the tree in aworktreerow and adds anown checkoutrow with the workspace's own directory, so the main checkout's branch and dirty state stay one hover away. The projection is a host fact, so no registration file, TTL or worktree guess is involved. A projection change pushes a refresh over SSE, so the chip follows within about one second. A workspace-targeted row always reports the checkout the registry owns. - Sidebar session-row action glyph — each session row shows the ONE thing that conversation needs from you:
resume,resolve,sync,pull,update,push,merge,commit,review,fix CI, orin syncwhen there is nothing to do. The node half is the single authority: it ranks the rules and attaches arowTokenand itsrowSeverityto every status response, so the chip, the picker and the row cannot drift. It is triage rather than status:mergeappears only when GitHub itself reportsmergeStateStatus: CLEAN, and every waiting state (draft, blocked, checks still running) stays silent. The token renders as a single coloured icon, in the row's trailing icon strip after the time label and at the head of the input chip: red for a conflict, a paused operation or a failing build, amber for a requested review, green formerge, quiet blue for routine sync, and amber for thein syncdisc when commits are not yet merged. It stays hidden while a turn is running, because the checkout is still moving and a suggestion would describe a state that is about to change. With nothing to do the node emitsin sync, so a session is never iconless: a disc in both surfaces, green when the branch is the default branch or its work is merged, amber when commits are not yet merged. The same hover card explains it. Hovering the row opens the row's usual hover card, which renders the action as a label/value row — the icon, the word and the reason (↑ push — no upstream configured) — beside the checkout and the pull request. No patch and no install step: the glyph rides upstream's ownsidebar.session.row.trailingseat, and the explanation ridessidebar.session.row.hover, so both work on a pristine install. - Nothing on workspace rows. A workspace cannot know which worktree its conversations are using, so a per-workspace badge could only guess or report the main checkout. The token is on the session row for that reason.
There is no drawn status mark: the leading icon is the node half's action token, and its colour is the severity. The same icon leads the input chip and sits in the session row's trailing strip. Four tokens are drawn arrows, the idle verdict is a drawn disc, and the rest are text glyphs. The card's worktree row names a linked checkout.
Event-driven freshness: working trees are watched and updates push over SSE — badges flip within ~1s of any commit, stage, or edit, including inside a linked worktree the session entered. One git status --porcelain=v2 per sample, shared by every surface pointing at the same checkout, plus at most one gh read per repository-and-branch per ~20s. The status API takes no path: the caller passes a session id (chip and sidebar rows) or a workspace id, and the server resolves the directory itself.
Diagrams, the hover card's full field list and a walkthrough for git newcomers live in the repo README — this file is the npm-facing summary.
Install
dsh plugin --profile web add dsh-git-badge
Restart the web process, refresh the browser. Requires Node ≥ 24.9, DSH 0.2.2-rc.1 or newer, and git on PATH. gh, on PATH and authenticated, is optional — it only enables the PR/CI token.
No seam patch and no CLI. The badge reads DSH's own workingDirectory
projection, so it follows the checkout a session entered without a registration
step. The /gh skill is registered at runtime, not copied into your home.
Sidebar technical details
Both surfaces ride upstream seats: the status icon on
sidebar.session.row.trailing (the icon strip after the time label, hidden
while the row is hovered), the hover card on sidebar.session.row.hover.
Changelog
See CHANGELOG.md.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-git-graph★ 10715
Git branch selector and Git graph for the dsh web GUI: switch branches and explore branch-lane and commit history from the conversation header. Retired by the author in favour of the official workspace-changes plugin: the published npm package stays installable but is no longer developed.
Akimiya-z/codex-guard#dsh★ 130
Pre-submit pull-request hygiene checks inside DeepSeek Harness: scans the current diff for TODO leftovers, hardcoded secrets, and non-conventional commit subjects.
xbzbing/dsh-git-panel★ 66
IDE-style Git panel in the DSH Web GUI: a resident tab with a three-column overview (branch/tag list, searchable commit-history graph, commit detail with changed-file tree and message) and a changes page (stats bar, uncommitted list with per-file stage/unstage/discard, commit box with amend); side-by-side diffs carry lazy highlight.js syntax highlighting, on-demand between-hunk context expansion and word-level intra-line emphasis, with image files shown as before/after panes; plus a zsh-style branch marker in the input bar. Every git command runs as an argv array through the host subprocess service, cwd locked to the repo root.
Cerbur/clutch-dsh#clutch-dsh-worktree★ 50
Adds a Worktree view to DSH Web UI that groups Sessions by Git worktree while keeping DSH as the source of truth.
KannaKuron/dsh-ide-git★ 42
JetBrains-style Git tool window for the sidebar: branch tree with ahead/behind badges, commit graph with text/author/date/path filters, per-file line diff, changes list and commit box, plus branch, tag and stash actions, merge, rebase, cherry-pick, reset and fetch/pull/push.
Lenonss/DSH_VsCodeMode★ 37
VSCode-style editing experience for DeepSeek Harness: a Monaco-based central file editor (tabs, Ctrl+P quick open, status bar) and interactive diff review of agent edit/write results with per-change Keep/Undo, rollback and archiving, persisted across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.