the-qian/dsh-commit-review

一个DSH插件:为Web GUI增加/commit与/review两个斜杠命令

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds two new slash commands to the DSH web GUI: /commit and /review. The commands are modeled after the same-named built-in commands from Claude Code, turning two common developer workflows into a simple one-command trigger. You can install the plugin directly from this public GitHub repository using the official DSH command line interface with a single installation command, and no additional build steps or extra dependency installations are required after installation to get it working.

The /commit command runs an initial pre-check on your current working directory to confirm you are in a valid Git repository with uncommitted changes available. If the pre-check passes, it guides the DSH agent to analyze the changes, follow Conventional Commits rules to generate a valid commit message, and then actually run the git commit command to save the changes. It has built-in Git safety rules that prevent it from modifying your Git config or force pushing any changes. The /review command lets you run a code review focused on different priorities like security, performance, or code style, and only outputs a graded review report without changing any project files.

This plugin is pure JavaScript that runs entirely on the host side, and has zero external dependencies beyond the two core DSH services it consumes: commands and subprocess. It does not expose any additional services to the DSH framework, so it does not require an isolated realm within DSH. Command registration and unregistration is automatically handled when the plugin is loaded or unloaded via the DSH plugin lifecycle system. It works correctly on both Windows and POSIX-compliant systems, and is released under the permissive MIT open source license, so anyone can use, modify, or redistribute it freely.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,为 DSH 的 Web GUI 添加了 /commit 和 /review 两个斜杠命令,对标 Claude Code 内置的同名命令,将分析变更生成符合规范的提交、代码审查这两个常见开发流程,标准化为一条命令即可触发的工作流。它支持通过 DSH CLI 从 GitHub 一键安装,无需额外构建步骤。

/commit 命令会自动预检当前工作区,确认是 Git 仓库且有变更后,引导模型分析差异、遵循 Conventional Commits 规范生成提交信息并实际执行 git 提交,内置 Git 安全协议,不会修改配置或强制提交。/review 命令则支持按不同优先级对未提交变更进行分级审查,仅输出报告不修改代码。适合日常开发中需要规范提交流程、做代码审查的开发人员使用。

本插件是纯 Host 侧 JavaScript 代码,零额外依赖,只依赖 DSH 内置的 commands 和 subprocess 两个服务,不发布其他服务,因此不需要隔离域。插件生命周期随 DSH 插件装卸自动完成命令的注册和反注册,支持 Windows 和 POSIX 系统,遵循 MIT 开源许可协议,可免费使用和修改。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add https://github.com/the-qian/dsh-commit-review.git

把 the-qian/dsh-commit-review 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-commit-review

DSH version License Host side No build step

一个 DSH(DeepSeek Harness) 插件:为 Web GUI 增加 /commit 与 /review 两个斜杠命令,对标 Claude Code 内置的同名命令,把「分析变更 → 生成 Conventional Commits 提交」和「代码审查」变成一条命令即可触发的标准工作流。

  • ✅ 官方 dsh 插件形态(dsh.bundle.patch),通过 dsh plugin add 一键安装
  • ✅ 纯 Host 侧、零依赖、无构建步骤(lib/index.js 即最终产物)
  • ✅ 预检失败(非 git 仓库 / 工作区干净 / git 未安装)直接返回卡片提示,不浪费一轮模型
  • ✅ 提交与审查由模型用自身工具执行,天然走 DSH 的沙箱与审批策略
  • ✅ 注册随插件行生命周期自动装卸(ctx.effect 包裹)

安装

方式一:从 GitHub 安装(推荐)

dsh plugin --profile web add https://github.com/the-qian/dsh-commit-review.git

本包没有 prepare 构建脚本,pnpm 不会要求 allowBuilds,安装即可用。

方式二:本地路径安装

git clone https://github.com/the-qian/dsh-commit-review.git
dsh plugin --profile web add D:\path\to\dsh-commit-review

安装完成后重启 profile(bundle 层在 boot 时装配):

dsh web

重启后在输入框输入 /,即可在命令面板看到 commit 和 review。包名与仓库名均为 dsh-commit-review(与 cordis.patch.yml 中的行引用保持一致)。

命令

/commit [message guidance]

分析当前 git 变更并真正创建提交(不只是给出建议)。可选参数会成为提交消息的引导,例如:

/commit
/commit fix the login bug

处理流程:

  1. 预检:git status --porcelain=v1 --branch + 暂存/未暂存 diff 统计(经 subprocess 直接调用 git,无 bash 依赖,20s 超时保护)
  2. 预检通过后,将完整工作流注入模型:
    • 检查真实 diff 与最近提交风格(git log)
    • 选定 Conventional Commits 类型/范围(feat/fix/docs/style/refactor/perf/test/build/ci/chore/revert,破坏性变更用 ! 或 BREAKING CHANGE footer)
    • 逻辑分组暂存(永不提交 .env、凭据、私钥等密钥)
    • 生成祈使句、一般现在时、≤72 字符的主题行
    • 执行 git commit 并用 git log -1 --stat 验证后报告哈希与消息
  3. 内置 git 安全协议:不改 config、不 force、不跳过 hooks、hooks 失败时修复后新建提交(不 amend)

/review [security|performance|simplicity|style|i18n|with-context|guidance]

审查当前未提交的变更(暂存 + 未暂存),在对话中输出按严重度分级的 markdown 审查报告,只审查、不修改任何文件:

/review                  # 通用审查
/review security         # 安全优先
/review performance      # 性能优先
/review simplicity       # 简洁性优先
/review style            # 代码风格优先
/review i18n             # 国际化优先
/review with-context     # 结合全仓库上下文审查

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev gitcontribute 下一个 Next dsh-tts →