dsh-file-review

uitested: passnpmMIT

Review agent file changes in a Diff panel, add comments for follow-up edits, and undo edited or newly created files.

下载量 / Downloads
4,030
依赖体积 / node_modules
36.27 MB
测试时间 / Tested
2026-11-06
DSH 版本 / Version
0.2.2-rc.1

Install

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

Sandbox test results

StageResult
1 install✓
2 list✓
3 mount✓
4 boot—

Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).

README

<div align="center">

DSH File Review

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

![Adapted DSH CLI version](package.json)

![npm version](https://www.npmjs.com/package/dsh-file-review)

![npm downloads](https://www.npmjs.com/package/dsh-file-review)

![GitHub repository](https://github.com/left0ver/dsh-file-review)

![MIT License](LICENSE)

![dsh.so install](https://www.dsh.so/artifact/dsh-file-review/)

[English](README.md) · 简体中文

</div>

怎么用

<p align="center">

<strong>💬 Chat &nbsp;→&nbsp; ✨ Generate &nbsp;→&nbsp; 📄 Click a changed file &nbsp;→&nbsp; 🔍 Review</strong>

</p>

效果预览

功能

1. 本插件支持标准模式、PTC模式、创造模式、暂时不支持极简模式。

2. 可以通过Diff面板审查 Agent 刚刚修改的每个文件。

3. 安装后默认启用 DSH 的 apply_patch 工具,支持审查文本文件的新增、编辑、删除和移动,并可撤销及重新应用这些操作。

> 删除和移动文件的审查需要通过 apply_patch 执行;插件会保存删除前的内容和文件权限。

4. 可对变更行添加评论,并让 Agent 根据评论内容继续修改,或者对该变更进行询问。

5. 审查时支持长文本自动换行,可在“设置 → 插件 → 插件配置 → 文件审查”中开启,默认关闭。

6. 多语言支持,包括中文和英文。

兼容性声明

顶部徽章是本版本实际测试过的 DSH CLI 版本。本版本支持从 0.2.2-rc.1 到 0.2.2 正式版,需要 Node.js 24.9 或更新版本。准确的 DSH 范围见 [package.json](package.json) 中的 engines.dsh,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](LICENSE)

Rendered from the README published on npm. Formatted only, not edited.

Versions

Published on npm::29,最后更新 2026-11-06

Links

GitHub · Homepage · npm

Same category