dsh-side-panel
Manifest validRight-side developer panel for DeepSeek Harness: files, session history, and git version control
dsh-git-diff
Adds a Git changes tab to the right Sidebar of the DeepSeek Harness web UI (dsh web), next to the built-in Files and Terminal tabs.
- Open it from the Sidebar guide. The header shows the current branch and how many paths changed.
- Changed paths are listed with
M/A/D/R/C/T/U(untracked) /!(conflict) badges. Paths that are already staged are marked. - Expand a path to compare it side by side (see Diff view). Use the arrow button to open the file in the Sidebar preview; deleted paths have no such button.
- The list refreshes when the tab becomes visible, when an agent turn finishes, and on the Sidebar refresh command or button.
Version 1.x drew its own Files and History panels. DSH now ships both natively: the Files tab, and turn navigation in the chat. 2.0 therefore keeps only the git view and rebuilds it on the right-Sidebar tab API.
Diff view
An expanded path shows two aligned columns: HEAD on the left, the working tree on the right.
- Each column has its own line numbers. Removed lines are red on the left, added lines are green on the right, and a changed line faces its replacement. A line with no counterpart leaves a blank cell on the other side.
- Three lines of context surround each change. Longer unchanged stretches fold into a single "N unchanged lines" row.
- A new or untracked file fills only the right column. A deleted file fills only the left column.
- Long lines wrap inside their column, so the view fits a narrow Sidebar.
- Binary files, and files where either side exceeds 512 KiB, show a note instead of a diff.
Requirements
- DeepSeek Harness
>=0.2.1-rc.2 <0.3.0with the web profile. gitonPATHin the Session's execution environment.
Installation
The package is a DeepSeek Harness bundle. Its cordis.patch.yml registers one row, which loads both the Host half (lib/index.js) and the browser half (lib/client.js).
# from GitHub (pin a commit for reproducibility: ...#<commit-sha>)
dsh plugin --profile web add github:XYZ1024-alt/dsh-git-diff
# or from a local checkout, run in its parent directory
dsh plugin --profile web add ./dsh-git-diff
The built JavaScript in lib/ is committed, so installation does not run a build. Reload the page after installing. Remove the plugin with dsh plugin --profile web remove dsh-git-diff.
Security
The plugin registers two read-only GET routes, /api/dsh-git-diff/status and /api/dsh-git-diff/diff, as exact Fetch routes on DSH's shared /api channel. Before a request reaches them, DSH's Connection applies its Host/Origin trust checks and browser authentication, and only owner Peers get through.
- Each request names a Session. Git runs only in that Session's working directory.
- The diff route returns content only for paths that
git statuscurrently reports as changed, and only inside the repository root.
Development
pnpm install
pnpm check # typecheck (Host and client separately), Biome, build lib/
| Path | Role |
|---|---|
src/contract.ts | Zod schemas for the wire responses, shared by both halves |
src/routes.ts | Route paths |
src/host/ | Host plugin: Session to working directory, git through ctx.subprocess, file reads through ctx.fs |
src/client/index.ts | Browser plugin entry: tab type, guide entry, tab body registration |
src/client/GitChangesBody.tsx | Tab body: branch header, change list, per-path diff loading |
src/client/split-diff.ts | Side-by-side row model: local patches from diff, paired old/new lines, folded gaps |
src/client/SplitDiff.tsx | Two-column diff renderer |
src/client/api.ts | Browser adapter over the Host routes, parsed with the shared contract |
src/client/locales.ts | English and Chinese dictionaries |
scripts/build.mjs | esbuild: ESM Host bundle and client bundle in the DSH module-loader envelope, with CSS-module styles injected |
The client bundle imports only from the Web shell's platform modules (react, zod, @deepseek-ai/dsh-client-ui-primitives, and so on). Everything else, including swr and diff, is bundled. The build fails when the client imports any other @deepseek-ai/* package at runtime.
License
Comments
Loading…
From the same category
by ccch1mneyyy
DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol
★ 6.5k
↓ 22.4k/wk
MIT
TypeScript
Nov 2, 2026
dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tuiby kingcharleslzy-ai
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
★ 4k
MIT
JavaScript
Nov 1, 2026
dsh plugin --profile web add dsh-purge-communityby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 4k
↓ 139k/wk
Apache-2.0
TypeScript
Nov 2, 2026
dsh plugin --profile web add dsh-contextby strukto-ai
The World's First Virtual Terminal for AI Agents
★ 3.8k
↓ 316/wk
Apache-2.0
TypeScript
Nov 2, 2026
dsh plugin --profile agent add @struktoai/mirage-dshby mmparko
DeepSeek Harness 破甲 (mirror of YuJunZhiXue/dsh-purge) — 上游即将删库,此为本仓库全量镜像:含全部分支/73 个 tag/完整提交历史。原作者署名与二开要求见 README 署名章节。
★ 2.9k
MIT
JavaScript
Oct 13, 2026
dsh plugin --profile web add dsh-purgeby c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
★ 1.1k
↓ 36.2k/wk
MIT
JavaScript
Oct 31, 2026
dsh plugin --profile web add dsh-bili-scroll