DeepSeek Harness 插件

left0ver/dsh-file-review

Star 数 ★ 43 下载量(近 30 天) 3,543 分类 UI 增强 收录于 2026-08-31 npm dsh-file-review

在 Diff 面板中审查 Agent 的文件改动、添加评论以继续修改,并撤销已编辑或新建的文件。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-file-review

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:left0ver/dsh-file-review

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

DSH File Review

无需离开 DeepSeek Harness Web,即可立即审查 Agent 刚刚修改的每个文件。

English · 简体中文

怎么用

效果预览

preview

功能

  1. 本插件支持标准模式、PTC模式、创造模式、暂时不支持极简模式。
  2. 可以通过Diff面板审查 Agent 刚刚修改的每个文件。
  3. 支持撤销操作,目前支持对编辑文件、新增文件等操作进行撤销。暂不支持对删除的文件进行撤销操作。

    因为目前dsh暂时没有提供删除文件的相关tool,因此本插件暂时不支持对删除的文件进行撤销操作。后续若dsh提供了删除文件的tool,本插件会进一步地支持。

  4. 可对变更行添加评论,并让 Agent 根据评论内容继续修改,或者对该变更进行询问。
  5. 审查时支持长文本自动换行,可在“设置 → 插件 → 插件配置 → 文件审查”中开启,默认关闭。
  6. 多语言支持,包括中文和英文。

兼容性声明

顶部徽章是本版本实际测试过的 DSH CLI 版本。插件同时兼容该 DSH 版本的其他预发布版和正式版(例如所有 0.2.0-rc.x 以及 0.2.0),准确范围见 package.json 中的 peerDependencies。

超出该范围时,DSH 会拒绝加载插件。如果仍想使用(风险自负),可以为对应的精确版本授予豁免:

dsh plugin --profile web allow-version dsh-file-review@<plugin-version> --dsh-version <dsh-version> --accept-risk

快速开始

0. 将dsh-file-review添加到pnpm冷静期白名单

找到~/.dsh/profiles/web/pnpm-workspace.yaml,加上

minimumReleaseAgeExclude:
  - dsh-file-review

这是因为较新版的pnpm有冷静期,默认情况下,新发布的包得过了冷静期之后才会被安装。因此要安装最新版本,需要将dsh-file-review加入到名单中。

1. 安装本插件

dsh plugin --profile web add dsh-file-review

2. 启动 DSH Web

dsh web

3. 享受它

从源码安装

git clone https://github.com/left0ver/dsh-file-review.git
cd dsh-file-review
pnpm install
pnpm run build
dsh plugin --profile web add ${PWD}

从GitHub仓库进行安装

dsh plugin --profile web add github:left0ver/dsh-file-review

更新插件

dsh plugin --profile web update dsh-file-review

卸载插件

dsh plugin --profile web remove dsh-file-review

路线图

  • 支持对删除的文件进行撤销操作。

友情链接

LINUX DO — 新的理想型社区

许可证

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。