← 返回列表
D

dsh-code-review

v0.1.0 · 0 天前发布

代码审查模式 (Code Review Mode) agent preset for the dsh web GUI: a read-only code-review agent — reviews correctness, bugs, security, performance, style and test coverage, and outputs a structured review report with severity ranking and file/line locations. Th

dshdsh-plugindeepseek-harnesscode-reviewagent-presetcordis

README

dsh-code-review

DSH Web GUI 的代码审查模式 agent preset 插件(host-only:启动时同步预设 + 系统提示通告)。

快速开始

powershell
cd packages/dsh-code-review
pnpm install
pnpm run build

挂载(二选一)——在插件目录内运行,file:$PWD 自动展开为当前绝对路径:


dsh plugin --profile web add file:$PWD # 方式一:本地源码(开发)
dsh plugin --profile web add dsh-code-review # 方式二:npm 安装(发布后)

安装后重启 dsh web 进程,新建会话的预设选择器出现「代码审查模式」即生效。

能力

| 项目 | 说明 |
| --- | --- |
| 同步预设 | 启动时把 presets/code-review 同步到 ~/.dsh/.agent-presets/code-review(幂等;升级插件自动更新) |
| 选择即用 | 新建会话选「代码审查模式」→ 只读代码审查 Agent |
| 审查范围 | 正确性、缺陷、安全、性能、规范与测试覆盖、设计坏味道 |
| 输出格式 | 严重程度分级(critical / high / medium / low / nit)+ 文件定位(路径 + 行号)+ 具体修复建议 |
| 只读约束 | 默认只读:read/grep/glob 与只读 shell 命令;不修改文件、不运行变更命令、不提交(除非用户明确要求) |

原理一句话

该模式是一个只读代码审查 Agent 预设:基于官方 Standard 预设的完整工具面
(s

查看完整 README →

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
Apache-2.0
npm
dsh-code-review
Repo
https://gitee.com/past-events-sifenruwu/deepseek-harness-electron.git
Engines
{"node":"^22.19.0 || >=24.0.0"}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}