XYZ1024-alt/dsh-git-diff
A Git changes tab in the DSH sidebar: branch header, status badges for every changed path, and a side-by-side HEAD versus working-tree diff.
Adds a Git changes tab beside the built-in Files and Terminal tabs. Its header shows the current branch and how many paths changed; the list badges each path as modified, added, deleted, renamed, copied, type-changed, untracked or conflicted, and marks what is already staged. Expanding a path shows two aligned columns — HEAD on the left, the working tree on the right — each with its own line numbers, removed lines red and added lines green, a changed line facing its replacement, three lines of context around each change and folded rows for long unchanged stretches. Added or untracked files fill only the right column, deleted files only the left, long lines wrap to fit a narrow sidebar, and binary files or files over 512 KiB on either side show a note instead of a diff. The list refreshes when the tab becomes visible, when an agent turn ends, and on the sidebar refresh command.
Install
dsh plugin --profile web add github:XYZ1024-alt/dsh-git-diffThe README's GitHub line, which suggests pinning a commit for reproducibility, plus a local-checkout alternative for development. The built JavaScript in lib/ is committed, so installing runs no build. Reload the page afterwards; uninstall with dsh plugin --profile web remove dsh-git-diff.
Compatibility
DeepSeek Harness >=0.2.1-rc.2 <0.3.0 with the web profile, and git on PATH inside the session's execution environment. Version 1.x drew its own Files and History panels, but DSH now ships both natively, so 2.0 keeps only the git view and rebuilds it on the right-sidebar tab API. The two routes it registers are read-only GETs sitting behind DSH's own host/origin trust checks and browser authentication, they run git only in the calling session's working directory, and they return content only for paths git status currently reports as changed.
Details
- Repo: XYZ1024-alt/dsh-git-diff
- Category: Web UI Enhancements
- Stars: 1
- Version: not published to npm; installs from the GitHub default branch
Alternatives
JanEickholt/dsh-inline-diff · Yuuz12/dsh-webui-auth · miuzel/dsh-subagent-ui