DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
G

dsh-git-diff

Git Diff

DeepSeek Harness Web UI 中作为右侧边栏标签页显示 Git 更改和逐文件差异

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:XYZ1024-alt/dsh-git-diff#aceba1587b7f9e572b5b98f184ed6ce2072c78fa
README兼容性版本

兼容性与来源证明

Git Diff 以 dsh-git-diff 发布,当前版本为 2.0.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/25

版本

2.0.0stable
2026/10/25

相关插件

正在加载相关插件…

最新版
2.0.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/10/25
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Experimental Inspector@deepseek-ai/dsh-experimental-inspector用于 Host 调试和 Client Runtime 检查的实验性跨 realm CDP hub

README

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.0 with the web profile.
  • git on PATH in 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 status currently reports as changed, and only inside the repository root.

Development

pnpm install
pnpm check   # typecheck (Host and client separately), Biome, build lib/
PathRole
src/contract.tsZod schemas for the wire responses, shared by both halves
src/routes.tsRoute paths
src/host/Host plugin: Session to working directory, git through ctx.subprocess, file reads through ctx.fs
src/client/index.tsBrowser plugin entry: tab type, guide entry, tab body registration
src/client/GitChangesBody.tsxTab body: branch header, change list, per-path diff loading
src/client/split-diff.tsSide-by-side row model: local patches from diff, paired old/new lines, folded gaps
src/client/SplitDiff.tsxTwo-column diff renderer
src/client/api.tsBrowser adapter over the Host routes, parsed with the shared contract
src/client/locales.tsEnglish and Chinese dictionaries
scripts/build.mjsesbuild: 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

MIT