dsh-code-review: On-demand Review of Uncommitted Changes in DeepSeek Harness

Introduction

When writing code or modifying files in DeepSeek Harness (DSH), the agent in the main conversation is often already working with context. If you ask the same conversation to “incidentally code review” as well, the review comments are prone to getting entangled with implementation steps, and it hinders your ability to decide whether to adopt them separately. The community plugin dsh-code-review (maintained by SeanTolstoyevski, GitHub repo SeanTolstoyevski/dsh-code-review) is positioned to trigger an independent review via /review within a Harness session. A reviewer model audits uncommitted workspace changes, and the report appears as a card in the conversation—by default, it does not inform the main agent, does not enter its context, and does not automatically modify code.

What is this

In one sentence: On-demand code review for DeepSeek Harness. In terms of classification, it often falls under “Model Reasoning”: the review itself is performed by a configured reviewer model. The package name is @local/dsh-code-review, the version in current materials is 1.5.0, and the license is MIT; it is a pure JavaScript bundle with no additional npm dependencies.

Core Features

Review Command and Scope

Enter /review in the target conversation to run on all uncommitted changes relative to HEAD by default. The built-in mode is cr (focusing on changed lines). The optional arc mode performs an architecture-oriented review based on the “shape” of the changes. You can also define custom modes under modes in the settings file (roles, finding fields, severity vocabulary, run presets, etc.).

The command supports various arguments, such as limiting files to those changed in this session, specifying modes and models, ignoring paths, adding focus messages, etc. The reviewer does not read the session transcript; the focus message is the only custom text you write to the reviewer.

Two Built-in Modes and Extensible Modes

Mode ID Meaning (Original Text)
cr reviews the changed lines
arc reviews the shape of the change

Unresolved mode=, reasoningEffort=, etc., will be rejected before calling the model, and available names will be listed.

Review Results Available Even if Interrupted

The reviewer records each finding immediately after it is finalized. If the stream is interrupted, times out, is cancelled, or the model does not finish running, the recorded content will still be delivered and marked as incomplete, rather than losing the entire report.

Isolation from the Main Agent (Default)

By default: the main agent is unaware that the review occurred, the review content does not enter its context, and it does not automatically modify code due to the review. Exception: when projectAccess is enabled, the reviewer reads the project via Harness’s built-in tools. Harness counts this access as the main agent having touched the relevant files, which may affect subsequent instruction files—the review report itself still does not enter the agent.

Report Card and Evidence Verification

A card appears in the conversation: the title follows the mode, the summary and verdict chips display according to the mode’s vocabulary, and each finding is blocked according to the fields declared by that mode. Copy report copies the entire Markdown; Copy copies a single finding. Each finding cites the code lines that prove it and is verified against the diff and the files the reviewer actually read; claims that cannot be substantiated are listed as withheld with reasons, rather than being published directly. The card only displays and allows copying; there are no controls that send content back to the agent.

If the session’s first message has not yet been sent, Harness does not draw the transcript, and /review will not start a new turn. The card appears above the composer first, and moves into the transcript after the conversation starts, displaying the result of the latest /review in that session (including errors).

Installation and Activation

The plugin is a bundle for the DeepSeek Harness profile. It is installed without compilation or pulling dependencies.

  1. Install via the bundle installer in a conversation, or use the Web UI’s plugin manager to paste the repository URL. The installation target in the materials is:
plugin_manager
action: install_bundle
target: github:SeanTolstoyevski/dsh-code-review

If installing from a local directory, replace target with the absolute path to that directory (equivalent to installing after cloning; this article does not cover the clone steps).

  1. Restart dsh web. After replacing the package, modules must be regenerated to load JavaScript; the first startup writes DSH_HOME/code-review/config.json (containing all settings and defaults for the two built-in modes).

  2. Refresh the page (the client-side half fetches once per page).

  3. Enter /review in the conversation that needs to be reviewed.

Installation and execution occur under the permissions of the local DSH process; before installing, please check the repository source code and MIT license yourself to ensure compliance with your security and compliance requirements.

Typical Usage

Full command format (original text):

/review [full|session] [mode=<id>] [provider=<id>] [model=<id>] [reasoningEffort=<id>]
        [language=<code>] [gitRev=<rev>] [source=auto|git|session] [ignored=<pattern,…>]
        [ignoreDefaults=<bool>] [respectGitIgnore=<bool>] [focus message]

Common examples:

Example Effect
/review All uncommitted changes relative to HEAD, cr mode
/review mode=arc Same changeset, architecture-oriented arc mode
/review session Only files written or edited in this session
/review ignored=fixtures/,!dist/ Ignore fixtures/, but still review dist/
/review reasoningEffort=max Use the provider’s highest thinking tier
/review session Thoroughly review the a/b/c.go file. Text after arguments is the focus message

For more detailed modes, configuration keys, ignore rules, execution flow, and finding semantics, refer to the chapters in docs/reference.md within the repository (Modes, Configuration, Ignored paths, How a run works, Findings, The card, Limits, etc.).

Use Cases and Notes

Who it is for: Developers who are already using Harness to modify code in DSH Web, want to get an independent, copyable review report in the same interface, and prefer not to let the main agent be “distracted” by the review results by default.

Notes:

  • The review depends on the reviewer provider/model you configured; invalid names will fail before running the model and prompt resolvable items.
  • The plugin runs with the current dsh process permissions; projectAccess changes how the reviewer reads the project and indirectly affects instruction files. Please read the configuration documentation before enabling it.
  • The community directory skillhub.cn plugin page has no official affiliation with DeepSeek or High-Flyer. The DSH ecosystem emphasizes “everything is a plugin.” The facts in this article are based on the GitHub README and package metadata.

Conclusion

Following the steps above, you can use /review in a Harness session to perform on-demand reviews of uncommitted changes, read evidence-gated reports in the card, and decide for yourself whether to modify the code. Repository and documentation: GitHub — SeanTolstoyevski/dsh-code-review; Directory Index: skillhub.cn/plugins/SeanTolstoyevski/dsh-code-review.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye