MichengAI/dsh-code-review 预览 preview

MichengAI/dsh-code-review

Plugin插件 Native原生 ⭐ 5 Apache-2.0 Dev Workflow开发与代码工作流Docs & Writing文档与写作

DSH Code Review — 为 DeepSeek Harness 提供 Codex 风格代码审查、原生独立子 Agent、灵活范围选择和中英文报告 · Codex-style code review with native independent agents, flexible scope selection, and bilingual reports for DSH

Project Overview项目介绍

DSH Code Review is a community code review plugin for DeepSeek Harness, distributed as the npm package @michengai/dsh-code-review and targeted at DSH 0.1.6-alpha.2. The bundle loads through dsh.bundle.patch and depends on the native spawn provider, the userQuestions service, a host-platform question answerer, and a model that supports tool calls. Installation is performed via dsh plugin --profile web add @michengai/dsh-code-review, or from source by running npm ci --ignore-scripts and loading the local tarball with dsh plugin --profile web add .\michengai-dsh-code-review-0.1.3.tgz --ignore-scripts.

Once the user runs /review, the plugin presents a native scope selector for a base branch, uncommitted changes, a specific commit, or custom instructions, then spawns an independent reviewer subagent that reads Git history, relevant source files, callers, and tests without receiving a preloaded repository snapshot. Findings are returned to the main session as prioritized items with file paths and line numbers, in English or Chinese following the host locale, while the original English Codex rubric is preserved. Recovery and cancellation are exposed through /review-status, and the source modules split responsibilities cleanly across commands, selection, runtime, requests, i18n, and report rendering.

Prerequisites are a working DSH installation exposed in PowerShell, Node.js ≥ 22.19.0, npm, and Git, with the profile name adapted to whatever profile actually runs DSH instead of the example web profile. Reviews only return reports, yet the tool layer is not universally read-only: behavior depends on DSH permissions, the active sandbox, and the never approval policy, while corresponding web, image, and further-delegation tools are restricted and third-party aliases fall outside the verified mapping. The project is licensed under Apache-2.0, ships with the original Codex rubric, source.json, and NOTICE files, and references upstream task templates, review execution, scope selection, and branch resolution files from OpenAI Codex commit a592c38c16cdd7623dacc9168926ebccedfb67d3 for traceability.

DSH Code Review 是 DeepSeek Harness 的社区代码审查插件,以 npm 包 @michengai/dsh-code-review 形式分发。它针对 DSH 0.1.6-alpha.2,通过 dsh.bundle.patch 加载,依赖原生 spawn provider、userQuestions 服务以及宿主平台的问答组件,并要求模型支持工具调用。可通过 dsh plugin --profile web add @michengai/dsh-code-review 安装,也支持从源码 npm ci 后用本地 tarball 加载。

用户输入 /review 选择基线分支、未提交改动、某次提交或自定义指令后,插件会启动一个独立子代理,读取 Git 历史、相关源码与调用方及测试,再把带文件路径和行号的分级发现写回当前会话。它面向需要在 DSH 内做正式代码审查的开发者,过程中不会预先快照整个仓库,输出支持中英文切换,并提供 /review-status 恢复与取消。

运行需要 PowerShell 中可用的 dsh、Node.js ≥ 22.19.0、npm 与 Git,使用 web profile 或替换为宿主实际 profile。审查仅产出报告,但工具层并非全局只读,受 DSH 权限与沙箱以及 never 审批策略约束;第三方别名、Web/图像/再委派工具均未覆盖。代码、数据均以 Apache-2.0 开源,并附带来自 OpenAI Codex 的审查模板、源码与 NOTICE 文件。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
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 @michengai/dsh-code-review@latest --registry=https://registry.npmjs.org/

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

READMEREADME

DSH Code Review

DSH Code Review

Start a review in your conversation. Let an independent agent inspect the code and bring back findings.

简体中文 · Developer docs · Changelog · Apache-2.0

License: Apache-2.0 DSH Plugin DSH supported through 0.2.0-rc.2 Node.js

DSH Code Review is a community code review plugin for DeepSeek Harness, packaged as @michengai/dsh-code-review. Enter /review, choose a scope or describe your request, and a native independent subagent inspects Git, source files, callers, and tests before returning a report to the main conversation. No Codex installation is required.

Host compatibility

The current version supports these exact DSH release candidates: 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2, 0.1.5-rc.3, 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, and 0.2.0-rc.2. Alpha builds, 0.0.1 release candidates, and any version not in that list are not supported. Peers name those exact versions with ||; they are not a semver range. It loads through dsh.bundle.patch and requires the native spawn provider, the userQuestions service, a question answerer for your platform, and a model that supports tool calls.

Install the package from npm or build from source. Offline host and package integration checks have passed; review quality, language adherence, and interaction across platforms still need live validation.

What you can do

  • Choose a scope: compare against a base branch, review uncommitted changes, select a commit, or provide custom instructions.
  • Let the reviewer gather evidence: an independent context reads Git, relevant code, and tests without receiving a preloaded repository snapshot.
  • Read results in the main conversation: receive prioritized findings with file paths and line numbers. Plain-text model responses are preserved.
  • Use English or Chinese reports: a separate language context follows the host preference while preserving the original English Codex rubric.
  • Check status or cancel: recover the latest report or cancel scope selection and an active review.

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

← 上一个 Prev dsh-termux 下一个 Next dsh-proxy-pro →