DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Git Manager — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@duke-dsh-plugins/dsh-git-manager

Git Manager

Official DSH bundle plugin for managing Git workspaces in the DSH Web UI—accessible beside the input field’s “Mode” selector (shown only for Git repositories), opening a centered panel matching the Settings panel: status/diff, branch management, merge conflict resolution, commit/fetch/pull/push, wor

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @duke-dsh-plugins/dsh-git-manager@1.1.1
READMECompatibilityVersions

Description

Official DSH bundle plugin for managing Git workspaces in the DSH Web UI—accessible beside the input field’s “Mode” selector (shown only for Git repositories), opening a centered panel matching the Settings panel: status/diff, branch management, merge conflict resolution, commit/fetch/pull/push, worktree management (automatically registered as a DSH workspace after being added), and commit history with branch-line visualization.

Compatibility and provenance

Git Manager is published as @duke-dsh-plugins/dsh-git-manager and currently resolves to version 1.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/25/2026

Versions

1.1.1stable
9/25/2026

Related plugins

Loading related plugins…

Latest
1.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
156.2 kB
Files
9
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
0
Last push
9/25/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

DeepSeek Harness Git 管理插件

中文


为 DeepSeek Harness(DSH) Web UI 打造的 Git 工作区管理插件:不用再切到外部 Git 客户端——输入框工具行的 Git 按钮一键打开与「设置」同规格的居中面板,覆盖日常全部 Git 操作:status / diff、分支管理、合并冲突解决、commit / fetch / pull / push、worktree 管理,以及带分支线图形的提交历史。

功能

功能说明
🔘 仓库感知入口composer 底部「模式」选择器旁的 Git 按钮(分支图标 + 当前分支名),hero 页与会话内都有;仅当前目录是 git 仓库时显示(60s 轮询缓存,非仓库完全不占位)
🪟 设置同规格面板800px 居中弹窗、圆角 24、毛玻璃遮罩;Esc 与遮罩点击均可关闭;DOM 经 Portal 落到 body 层(z-index 1000),不被任何侧栏插件遮挡
📝 变更staged / unstaged / untracked 三组文件,stage / unstage / discard(CJK 文件名完整支持),自绘 unified diff 渲染器,commit(含 amend / 全部暂存并提交)
🌿 分支本地 / 远程列表(upstream、ahead/behind 角标),新建(带起点)/ 切换 / 改名 / 删除(未合并需二次确认)/ 合并,与当前分支对比 diff
🕸 历史分支线图形(git log --all --date-order + Host 侧布局计算 + Client 纯 SVG 渲染,长跨度边自动省略淡化、悬停高亮单条分支走向)+ refs 徽章 + 分页加载;点击提交查看 commit diff,窗口内一键 cherry-pick 到当前分支(冲突自动跳转冲突页,继续/中止全链路支持)
🔀 冲突合并进行中横幅(继续 / 中止)+ 每文件三种解决方式:ours / theirs / 手动编辑(base / ours / theirs 三栏对照 + 可编辑区)
🌳 Worktree列表 / 添加(可带新分支;成功后自动注册为 DSH 工作区,workspace-write 沙盒下直接可写)/ 删除(脏目录需 force 二次确认)/ prune
🎨 主题适配颜色全部走 DSH 设计 token(主按钮与输入框发送按钮同色),明暗主题自动跟随

工作原理

Composer Git 按钮(conversation.input.left,仅仓库显示)
  └─ probe 轮询探测(60s 缓存,非仓库返回 null)
        └─ 点击 → 全屏面板(ReactDOM.createPortal → document.body,z-index 1000)
              └─ Remote RPC(gitManager.*,返回值网关 JSON-safe 校验)
                    └─ Host:git-core.mjs(execFile argv 数组,无 shell 拼接)
                          └─ git 子进程(GIT_TERMINAL_PROMPT=0,凭证挂起免疫)
  • 所有 git 调用走 execFile argv 数组,无 shell 注入;Windows 下隐藏子进程窗口。
  • 危险操作全部 UI 二次确认;force push 只允许 --force-with-lease。
  • 输出有上限保护:diff 超 1.5MB 截断提示、log 默认 200 条 / 页。
  • 仓库路径防护:涉及写文件的操作(未跟踪 discard / 手动解冲突)先校验路径不越出仓库根。

安装

标准安装(推荐)

本插件是标准 DSH bundle:package.json 声明 dsh.bundle.patch,包内自带 cordis.patch.yml,用官方 dsh plugin 命令安装:

# npm(推荐)
dsh plugin --profile web add @duke-dsh-plugins/dsh-git-manager

# 或从 GitHub Release tarball 安装
dsh plugin --profile web add https://github.com/MoonlitDropOfBlood/dsh-git-manager/releases/download/v1.0.0/duke-dsh-plugins-dsh-git-manager-1.0.0.tgz

# 本地开发:pnpm 软链到本仓库,改代码即生效(无需重新复制)
dsh plugin --profile web add /path/to/dsh-git-manager

重启 DSH 后:当前工作区是 git 仓库时,输入框「模式」选择器旁出现 Git 按钮。

dsh plugin add 把插件装成 profile 的 npm 依赖并追加到 dsh.profile.bundles,启动时 DSH 自动应用包内的 cordis.patch.yml 挂载插件。卸载:dsh plugin --profile web remove dsh-git-manager。

兼容性

宿主要求 DSH ^0.1.0-rc.7(package.json 顶层 engines.dsh + dsh.engines.dsh 双位置声明,dshmarket 卡片的「宿主要求」/「适配本机 DSH 版本」筛选即读此值)。Typert strict codec 采用 schema + create() 双形态,已用 DSH 全部 21 个 typert-loader 版本(0.1.0-rc.6 … 0.1.7-rc.2)逐一校验 manifest 通过——0.1.6-alpha.2 起 DSH 改用 codec.create(). 工厂,只写 schema 会在 0.1.7 上导致 $mount 抛 has no create() factory、入口按钮不出现。

使用

  1. 打开面板:当前工作区是 git 仓库时,点击输入框工具行的 Git 按钮(分支图标 + 分支名)。
  2. 变更:勾选文件 stage / unstage;点击文件看 diff;底部输入提交信息 commit(可 amend、可一键全部暂存并提交)。
  3. 分支:顶部 Fetch / Pull / Push(ahead/behind 角标同步状态);分支列表里切换、新建、改名、合并、删除。
  4. 历史:分支线 + 提交列表;点击提交展开该 commit 的文件级 diff。
  5. 冲突:合并冲突时出现在此 Tab——逐文件选 ours / theirs,或手动编辑后保存标记已解决;全部解决后「继续合并」。
  6. Worktree:添加 worktree(可同时开新分支);添加成功后自动注册为 DSH 工作区,直接在侧栏打开开会话即可让 agent 在沙盒内读写。
  7. 关闭:Esc 或点击遮罩。

目录结构

dsh-git-manager/
├── index.js              # Host 半:GitManagerService(TypertRemoteService 子类,类插件)
├── client.js             # Client 半:__ModuleLoader__ bundle(composer 入口按钮 + 弹窗面板)
├── typert.host.js        # Typert Host manifest:gitManager 全方法的 wire schema
├── git-core.mjs          # 零依赖:runGit 封装 + 全部查询/变更函数 + 解析器
├── git-graph.mjs         # 零依赖:computeGraph 分支线布局(纯函数)
├── cordis.patch.yml      # dsh bundle patch(挂载行)
├── scripts/self-test.mjs # 独立自测:解析器 fixture + 临时仓库 live 集成(不依赖 DSH 进程)
├── .github/workflows/    # GitHub Actions 发布(tag → npm OIDC + GitHub Release)
├── AGENTS.md             # 面向 AI agent 的开发指南(含踩坑)
└── LICENSE               # MIT

开发

npm run check           # 语法检查全部 JS
npm test                # 自测(解析器 fixture + 临时仓库 live 集成,61 项)
dsh plugin --profile web add /path/to/dsh-git-manager   # 安装/重装到本机 DSH profile

改插件后必须重启 DSH 才生效。详见 AGENTS.md——记录了 DSH 正式插件三件套机制、网关 JSON-safe 返回值、主题 token 映射等完整踩坑。

发布

打 v* 标签推到 GitHub:.github/workflows/release.yml 自动跑测试、构建 tgz、发布 GitHub Release,并通过 OIDC Trusted Publishing 发布到 npm(已存在的版本自动跳过,可安全重放)。

License

本项目遵循 MIT License。

本项目是基于 DeepSeek Harness 构建的社区插件,并非 DeepSeek 官方产品。