dsh-code-review
Manifest valid★ 19DSH Code Review — Provides Codex-style code review, native independent sub-agents, flexible scope selection, and bilingual reports for DeepSeek Harness · Codex-style code review with native independent agents, flexible scope selection, and bilingual reports for DSH
DSH Code Review
Start a review in your conversation. Let an independent agent inspect the code and bring back findings.
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 targets DSH 0.1.6-alpha.2 and loads through dsh.bundle.patch. It 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.
Prerequisites
- A working DeepSeek Harness installation with
dshavailable in PowerShell. - Node.js ≥
22.19.0, npm, and Git. Node.js must also meet your installed DSH version's requirements. - Examples use the
webprofile; replace it with the profile running DSH.
DSH product ecosystem
For a desktop workbench, download DSH Codex Desktop. Existing DeepSeek Harness installations can add plugins as needed by following each project's README. Below are 11 first-party plugins; consult the corresponding desktop release notes and bundled catalog for what that version includes.
| Plugin | What you can do |
|---|---|
| Codex UI | Organize projects and conversations, search tasks, and navigate chat turns |
| Agency Agents | Choose and summon specialists for your task |
| Skills Manager | Find, enable, create, and import local skills |
| Archive Manager | Search, restore, or clean up archived conversations |
| IM Connect | Send tasks and receive replies through messaging platforms |
| Automation | Schedule tasks and review each run |
| BTW | Ask side questions without interrupting the main task |
| Simplify | Use /simplify to improve code within your Git changes |
| PUA | Guide the Agent to try new approaches after failures, investigate causes, and verify results before completion |
| Code Review | Use /review to request an independent Agent code review and receive the report in the current conversation |
| Codex Pet | View conversation notifications and respond to tool approvals and questions through a desktop pet |
Installation
Ask an agent to install it (recommended)
Send this prompt to an agent with local terminal access:
Install the DSH plugin @michengai/dsh-code-review into my local web profile: run dsh plugin --profile web add @michengai/dsh-code-review@latest --registry=https://registry.npmjs.org/, then dsh --profile web --dump-config. Confirm the plugin is loaded and explain how to restart DSH and use /review. Stop and report the cause if any step fails.
Install manually
Run these commands:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
dsh plugin --profile web add @michengai/dsh-code-review@latest --registry=https://registry.npmjs.org/
dsh --profile web --dump-config
Continue only after each step succeeds. Restart the DSH backend you actually use, then enter /review. This is a native plugin, not a SKILL.md bundle; do not copy lib manually.
Usage
| Goal | Input |
|---|---|
| Open scope selection | /review |
| Set a custom focus | /review Check the previous commit for authorization regressions |
| View progress or the latest report | /review-status |
| Cancel selection or an active review | /review-cancel |
Empty input offers four options: base branch, uncommitted changes, a commit, and custom instructions. Uncommitted scope includes staged, unstaged, and untracked files. The base menu lists local branches; the commit menu lists the latest 100 commits. Other refs can be entered as free text.
All text after the command is treated as custom instructions, not CLI flags. --base main, ., and status are passed as ordinary text. The subagent determines and retrieves the context it needs. “Review the entire project” is passed verbatim, but does not mean the program has verified complete file-by-file coverage.
Configuration and reports
| Optional setting | Behavior |
|---|---|
reviewModel | Review model within the same provider; otherwise inherits the current model configuration |
reportDirectory | Absolute report directory; defaults to $DSH_HOME/code-review, or ~/.dsh/code-review when DSH_HOME is unset |
Language follows the host's locale.preference: en / en-* selects English; other values default to Chinese within the current two-language support. Each review captures the locale at its start; the next review reads updated settings. Command catalog descriptions and input hints are resolved when the plugin loads and require a reload to update. Without a saved preference or settings service, Chinese is used; the backend cannot read a language detected only in the browser.
The latest report is saved atomically per conversation. Historical report bodies are not translated. JSON keys, enum values, code, and paths remain unchanged. Unfinished reviews do not resume automatically after shutdown. Status, cancellation, and report storage are DSH plugin features.
FAQ
Is this identical to Codex?
The rubric and short task templates follow the fixed source commit a592c38c16cdd7623dacc9168926ebccedfb67d3. Questions, tools, permissions, and event presentation use native DSH capabilities. This is not a pixel-perfect Codex Desktop clone, and different models may produce different findings.
Can a review change code?
The review instructions request no fixes, but the tool layer is not universally read-only. Execution depends on DSH permissions and its sandbox. The never approval policy rejects operations requiring approval. Corresponding web, image, and further-delegation tools are restricted; third-party aliases are outside the verified mapping.
What if nothing appears after installation?
Check that installation and runtime use the same profile, restart the DSH backend, and confirm dsh --profile web --dump-config includes the plugin. Empty /review requires a host question answerer, and the main model must support the code_review tool. Use /review-status to inspect the record; a request acknowledgement is not review completion.
Why might I still see another language?
Explicitly select Chinese or English in host settings. Model language is controlled by instructions and cannot be guaranteed. Raw external-tool errors, code, and historical reports are not automatically translated.
Development and contributing
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
npm ci --ignore-scripts
npm run check
npm run verify:package
dsh plugin --profile web add .\michengai-dsh-code-review-0.1.3.tgz --ignore-scripts
check covers TypeScript, prompt hashes, short tasks, real AgentLoop regression tests with offline models, and documentation links. verify:package checks bundle loading, peers, and installed-package host integration in an isolated profile. These checks do not replace live model validation.
| Entry | Responsibility |
|---|---|
| src/index.ts | Commands, main-session tool, and report delivery |
| src/selection.ts | Native scope selection |
| src/runtime.ts | Independent reviewer and tool restrictions |
| src/request.ts | Codex short tasks and base-ref resolution |
| src/i18n.ts | Host locale and output language context |
| src/report.ts | Full JSON, extracted JSON, then plain-text fallback |
See the developer navigation for implementation history. To roll back, reinstall a previously retained local package and restart DSH. Conversations and reports are not deleted.
Sources and license
Licensed under Apache License 2.0. See the original Codex rubric, source.json, and NOTICE.
Upstream source: task templates · review execution · scope selection · base branch resolution.
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.11 | — | — |
| 0.1.0 | — | — |
| 0.1.1 | — | — |
| 0.1.2 | — | — |
| 0.1.3 | — | — |
| 0.1.4 | — | — |
| 0.1.12 | — | — |
| 0.1.5 | — | — |
| 0.1.6 | — | — |
| 0.1.7 | — | — |
| 0.1.8 | — | — |
| 0.1.9 | — | — |
| 1.0.4 | — | — |
| 0.1.10 | — | — |
| 0.1.13 | — | — |
| 0.1.14 | — | — |
| 0.1.15 | — | — |
| 0.1.16 | — | — |
| 1.0.0 | — | — |
| 1.0.1 | — | — |
Comments
Loading…
Similar plugins
by acanzaima
以Deepseek Harness、Codex为代表的Agent形态接管了自然语言需求到代码的翻译,dsh-code-review则是为了将开发者人工review这一环节从古法工具中搬进Deepseek Harness,补齐完全AI Agent Coding的最后一环。如果你对要提交的AI Coding产出还不够放心,同时你还在使用古法编程时代的ide或git可视化工具来查看代码变更,那么或许ds
★ 4
↓ 683/wk
JavaScript
Nov 17, 2026
dsh plugin --profile web add @acanzaima/dsh-code-reviewby luomeii
DeepSeek Harness 并行多角色代码评审插件:/review 派出安全/正确性/测试/风格四名只读评审员子代理(可各自指定模型与思考强度),汇总为结构化报告。
★ 1
↓ 72/wk
MIT
JavaScript
Sep 20, 2026
dsh plugin --profile web add dsh-review-squadDeepSeek Harness plugin for Open Code Review: deterministic review scope, rule resolution, and line-level findings for DSH agents.
★ 0
dsh plugin --profile web add @ashllll/dsh-open-code-reviewby Hope-Phenom
DSH 插件:给 `/` 菜单加上 /simplify(不改行为的清理)与 /code-review(多角度找 bug + 独立验证,/review 为别名),适配 DSH 的工具、指令文件布局与 subagent 模型。|A DSH plugin adding /simplify and /code-review (alias /review) to the `/` menu.
★ 0
MIT
JavaScript
Oct 9, 2026
dsh plugin --profile web add @hope_phenom/dsh-plugin-code-qualityby new-Beginner
Codex-like diff review plugin for DeepSeek Harness Web: interactive side-by-side diffs, compact floating dock, and turn-scoped deliverable change tracking.
★ 0
MIT
TypeScript
Sep 14, 2026
dsh plugin --profile web add dsh-diff-review-likecodex阅读代码 · DSH 独立插件:一个独立于普通工作区选择的代码阅读模式:先理解业务,再梳理调用链、精读实现,最后通过具体场景验证理解。
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-code-reading