Conventional-commit enforcement, changelog generation, PR summaries and branch pushes through the plain git CLI.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yangyongzhen/dsh-git-workflow
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 Git 工作流插件:规范提交(Conventional Commits)、自动 changelog、PR 描述生成、分支推送——纯 git CLI,兼容 GitCode / GitHub / 任何 git 远端,无需平台 API 或 token。
安装
dsh plugin --profile <name> add dsh-git-workflow
# 或从本地 checkout 安装
cd ~/dsh-git-workflow && dsh plugin --profile <name> add .
配置
- id: git-workflow
config:
enabled: true
workdir: '' # 可选;默认会话工作目录
conventional: true # 强制 Conventional Commits 规范
defaultBranch: main
工具(对话中自动调用,无需命令)
| 工具 | 作用 |
|---|---|
git_status |
分支 / 与上游领先落后 / 已暂存·未暂存·未跟踪文件 / 最近提交 |
git_commit |
校验 Conventional Commits 格式(`feat |
git_changelog |
生成按类型分组的 Markdown 变更日志;from 默认最近 tag |
git_pr_summary |
生成 PR 标题建议 + 描述模板(提交列表 / diff 统计 / 破坏性变更) |
git_push |
git push -u <remote> <branch> 推送并设置上游 |
示例对话:
我:帮我把这次改动提交了
Agent:git_status → 发现 3 个文件变更 → git_commit message="feat: add login flow"
我:生成一个 PR 描述
Agent:git_pr_summary base=main → 输出可直接粘贴的 Markdown
开发
pnpm install && pnpm build
node test/git-workflow.test.mjs # 临时仓库端到端:状态/规范提交/changelog/PR/推送
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-git-graph★ 10379
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★ 132
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★ 50
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★ 46
Adds a Worktree view to DSH Web UI that groups Sessions by Git worktree while keeping DSH as the source of truth.
DamonKoy/dsh-web-ui#dsh-git-graph★ 31
Git branch selector and Git graph in the conversation header of the dsh web GUI.
Lenonss/DSH_VsCodeMode★ 31
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.