dsh-review: Turning Code Review into an Orchestrable DSH Tool

Preface

After letting an agent modify code in DSH, a common next step is to “ask someone to take a look at the diff.” If you have to hand-write a long review prompt every time, or you can only bind one vendor’s model, the workflow becomes hard to reuse. Turning review into a host-native tool, letting configuration decide which CLI coding agents or DSH subagents to use, running them in parallel, and merging results into one report is closer to “tooling” rather than “switching to another API.”

Below we introduce the community plugin dsh-review (maintainer: yutingzhao1991), categorized as workflow; see SkillHub for the directory page, and GitHub for source and documentation.

What is this

dsh-review is a DeepSeek Harness (DSH) host plugin: it exposes a generic review tool to agents, dispatches code review to configured reviewers (CLI coding agents or DSH subagents), runs them in parallel, and merges their outputs into a single report in the order selected. The plugin describes itself as: Let your dsh freely invoke any agent or model to review.

The plugin does not bundle model keys or endpoints; models and credentials stay in your DSH configuration, and the plugin only uses what is already present there. The current package version is 2.0.2 (see the repo’s package.json), licensed under MIT, and declares a dependency on DSH ^0.2.1-rc.2 (engines.dsh). If the host is below the requirement, it will refuse installation or activation instead of failing mid-review.

Core Features

Two types of reviewers

Type Runs as Reads repo itself Depends on
cli Coding-agent CLI you already trust Depends on preset (e.g., codex reads the repo) Corresponding CLI installed
subagent DSH subagent Yes, with tools Subagent service (default spawn)

CLI presets include codex, claude, gemini, opencode, cursor, and you can also use custom to define your own command template. The plugin deliberately does not provide reviewers that “only send the diff to a bare model”; a reviewer that can open the repo is more valuable than one that only sees the handed diff.

Multiple reviewers, one report

Multiple reviewers can run in parallel; in the report each gets an independent section, in the order they were selected in configuration.

Review modes

You can name a mode with strength and prompt (e.g., quick, balanced, deep) and bind it to a reviewer list, so you don’t retype review instructions every time. A mode includes fields strength (light / standard / deep), prompt, reviewers, and an optional policy field when (always / complex / never); when is only injected into the system prompt when injectPolicy: true is set and is not a hard gate.

GUI configuration

On the web configuration page you can check reviewers, with other items collapsed under advanced settings; changes are auto-saved about half a second after you stop typing, with a status line at the top, and a Save now button remains for manual retries.

Async jobs

Review often takes minutes: review() waits briefly and then returns a job id. You can use job_output to read results, job_kill to stop, or wait for the host to notify completion.

Reviewers are explicitly enabled: if no reviewer is enabled, calling review() without passing reviewers will fail with an explanation, rather than silently running all presets.

Installation and Activation

The official README requires placing the repo in a fixed directory and installing it via a profile (replace web with your profile name):

git clone git@github.com:yutingzhao1991/dsh-review.git ~/code/github/dsh-review
dsh plugin --profile web add ~/code/github/dsh-review

You can also have an agent pass this absolute path via plugin_manager → install_bundle. Restart the host after installation; to update, run git pull and restart in the same way.

Requires DSH 0.2.1 or newer.

CLI executable lookup order

The plugin looks in order: executable (PATH name or path) → ~/.local/bin, ~/.bun/bin, /opt/homebrew/bin, /usr/local/bin → the current profile’s dependencies (node_modules/.bin/<name>, etc.). It’s recommended to install CLIs as direct dependencies of the profile (dsh plugin --profile <name> add <package>), to avoid hardcoding absolute paths in patches that break after dependency reinstalls.

For configuration troubleshooting, run a self-check that does not start a real review and does not require a git repo:

review({ doctor: true })

Typical usage

In agent or tool calls:

review()                                          // Use enabled reviewers, review uncommitted changes
review({ reviewers: ["codex", "deep-dive"] })     // Specify reviewers for this call
review({ mode: "deep" })                          // Use deep mode and its bound reviewers
review({ base: "main" })                          // Compare workspace against a branch
review({ commit: "abc1234" })                     // Single commit
review({ instructions: "only concurrency and error handling" })

Configuration example (YAML snippet, equivalent to the GUI):

- id: review
  name: dsh-review
  config:
    agents:
      - preset: codex
        model: gpt-5.6-sol
      - preset: claude
    reviewers:
      - id: deep-dive
        kind: subagent
        provider: spawn
        agentProvider: bailian
        agentModel: deepseek-v4.1-flash
    defaultMode: balanced
    modes:
      balanced:
        strength: standard
        reviewers: [ codex ]
      deep:
        strength: deep
        reviewers: [ codex, deep-dive ]

Notes: provider refers to the subagent service implementation (default spawn), not a model vendor; subagents inherit the parent session model by default unless agentModel is set (or a provider + model is selected together in the GUI). Starting with DSH 0.2.1, persona and tool restrictions should be configured in an Agent Preset and selected via agentPreset; legacy persona / toolFilter will produce migration warnings. Subagents have a default wall-clock cap of 30 minutes (timeoutMs), and the whole run is still bounded by hardTimeoutMs.

Common configuration keys (excerpt):

Key Default Meaning
defaultReviewers None Used when a call omits reviewers; empty means not enabled
defaultMode None Mode used when a call omits mode
language auto Report language zh / en / auto

If no modes are configured, the plugin adds no extra constraints; you can still explain review requirements in the conversation yourself.

Use cases and cautions

Suitable for developers already orchestrating dev agents in DSH who want to standardize “look at the diff” as a review() call and combine perspectives from multiple CLIs or subagents. Not suitable for scenarios expecting the plugin to ship accounts or a unified cloud review service.

Before installing and running, note: the plugin executes with the permissions of the current DSH host process and will invoke the CLIs and subagents you configured; you should read the LICENSE and repo implementation under a premise of trusting the maintainer and source. The community directory SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer; in the ecosystem, DSH follows “everything is a plugin,” and this plugin is one workflow-class community contribution (GitHub public star counts are per the directory page).

Closing

dsh-review turns code review from “locked to one model” into “configurable reviewers + reusable modes + merged reports,” while keys and vendor capabilities remain under DSH’s main configuration. To try it, enter from the directory page or read the README on GitHub directly (including the Chinese README):

  • Directory page: https://www.skillhub.cn/plugins/yutingzhao1991/dsh-review
  • Repo: https://github.com/yutingzhao1991/dsh-review
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye