dsh_review
在终端中运行以下命令:
dsh plugin install CodeIdeal/dsh_review
将以下提示词粘贴到 DeepSeek Harness 对话框中:
运行 dsh plugin install CodeIdeal/dsh_review 即可将 dsh_review 插件安装到当前 DSH profile,源码地址 https://github.com/CodeIdeal/dsh_review。
插件介绍
Asking an agent inside DSH to review your code used to mean crafting the right git diff command and hoping the prompt was precise enough. dsh_review collapses that into a single /review interactive menu in the DSH Web input box: pick uncommitted changes, a specific commit, a local or remote branch, or type custom review requirements, and the plugin translates your choice into a well-structured review task queued for the current agent. The agent then re-reads the diff, inspects the code, and returns findings with severity, exact location, evidence, impact, and a fix suggestion for each issue.
Beyond the menu, the plugin registers a structured review tool that accepts target, targetKind, base, task, spec, and focus parameters, letting the agent perform targeted reviews outside the chat flow and receive an executable diff command along with clear instructions. The commit menu dynamically lists up to the 100 most recent commits, the branch menu covers both local and remote branches, and the uncommitted-changes mode compares against HEAD across staged, unstaged, and untracked files-no hand-written git commands required.
Best for developers who review code frequently inside DSH and want a lightweight, repeatable /review step without leaving the web input box or switching to a separate CLI tool.
使用场景
- 提交前快速审查当前工作区改动,覆盖 staged、unstaged 和 untracked 文件
- 针对某个 commit 或 branch 进行定向审查,由 agent 以 parent 为基准读取 diff 并输出结论
- 用自然语言描述审查背景与重点关注项,让 agent 结合上下文给出带严重度和证据的报告
适合人员
- 在 DSH Web 中频繁进行代码审查、希望免去手写 git 命令的开发者
- 需要结构化审查输出(严重度、位置、证据、修复建议)以纳入团队流程的团队
- 希望用 /review 菜单或结构化 review 工具驱动多步工作流的自动化场景