Codex-style Git panel for DeepSeek Harness: a header button opens a menu with commit, push, branch switching and creation, and repository initialization; shows the current branch and the total additions and deletions of uncommitted files.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/LingYingNX/dsh-codex-parity/releases/latest/download/dsh-codex-parity.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:LingYingNX/dsh-codex-parity
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
This plugin publishes its README in Chinese only.
为 DeepSeek Harness (DSH Desktop) 加一个 Codex 风格的 Git 面板。
插件只做一件事:在会话头部的工作区 pill 左侧加一个独立的 Git 按钮,点开是一个轻量菜单。
| 项目 | 说明 |
|---|---|
| 入口 | 会话头部工作区 pill 左侧的「Git」按钮(图标 + 文字,独立于右侧按钮组) |
| 汇总 | 菜单顶部显示当前分支与总增减:main +154 -117 |
| 菜单项 | 提交 / 推送 / 切换分支 / 初始化 Git(初始化在最下) |
| 提交 | 弹窗填写 commit message,git add -A 后提交 |
| 推送 | 推送当前分支;没有 upstream 时提示先手动建立 |
| 切换分支 | 搜索并切换本地分支,当前分支标记勾号,并显示未提交文件数 |
| 创建并切换 | 输入新分支名,以当前分支为基点创建并切换 |
| 初始化 Git | 目录还不是仓库时可用;已是仓库时按钮置灰 |
非 Git 仓库时,提交 / 推送 / 切换分支置灰,只有初始化可用。
字体统一使用思源黑体 Light(回退到思源黑体常规族,再回退系统无衬线),面板整体字号为基准的 1.2 倍。
安装
dsh plugin --profile desktop add <插件目录>\release\dsh-codex-parity.tgz
卸载:
dsh plugin --profile desktop remove dsh-codex-parity
架构
两半,零依赖、无构建步骤:
| 文件 | 职责 |
|---|---|
dist/formal-host.mjs |
Git RPC:ping、gitState、gitCommit、gitPush、gitBranchSwitch、gitBranchCreate、gitInit |
dist/formal-client.cjs |
Git 按钮、菜单、分支与提交弹窗、操作 toast |
工作目录来自会话 header 记录的 cwd;所有 Git 操作都在该目录真实执行。
客户端注册两个槽位:shell.overlay(操作 toast)与 conversation.session.header.utilities(Git 入口按钮)。该槽 kind: list 且升序渲染,原生工作区 pill(open-in-app)占 order: -10;Git 按钮用 order: -20 注册,因此落在它紧左侧、独立成组。按钮的 DOM 由宿主渲染持有,插件不做 DOM 注入也不轮询。
菜单与弹窗是挂在 document.body 上的浮层,靠内联 position:fixed 定位;插件样式表在每次挂载浮层时重新断言,宿主清理后无需重启即可恢复。
开发
npm test # 离线测试
node scripts/pack.mjs # 重新打包 release tarball
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-git-graph★ 10696
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★ 131
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★ 65
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★ 41
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★ 36
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.