Back to directory

dsh-reviewer-bot

In a curated listMaintenance: Maintained

chaojixinren/dsh-reviewer-bot

原生 DSH 跨平台代码评审机器人插件(cordis.patch.yml + dsh plugin --profile web add @dshrb/bundle)

View on GitHub
$ dsh plugin --profile web add @dshrb/bundle

13

stars

2

forks

TypeScript

Language

MIT

License

2026-08-15

Created

2026-08-21

Last push

MIT DeepSeek Harness plugin that turns pull-request comments into DSH review runs — multi-forge, pluggable rule packages, local replay, and a trust gate that stops `@dsr fix` from writing on its own.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-11-25

License

MIT

01What can it help you accomplish?

  • Run PR reviews from inside your own DSH profile instead of a separate CI container

    A review produced by the DSH agent in that profile, triggered from a pull-request comment

    Teams that already run DSH and want review work to share the same context as their other plugins

  • Review a pull request from a comment with five commands, each at its own minimum trust level

    `@dsr review`, `@dsr explain <path>`, `@dsr diagnose`, `@dsr fix` and `@dsr rules`, each at its own minimum trust level

    Reviewers and repo maintainers on GitHub, GitLab or Gitea

  • Iterate on rules and review runs locally instead of pushing a PR and waiting for CI

    `dshrb review --local` and `dshrb replay <run-id>` against the same review pipeline

    Rule-package authors and anyone debugging why a review came out a certain way

02How to install into DeepSeek Harness

Prerequisites

  • Node.js 22.19+, 24+ or 26 with pnpm 11.x — the engine floor is aligned with upstream DSH
  • A DSH profile to install into: the ecosystem path adds the bundle to a profile you already use and shares its `ctx`
  • A forge (GitHub, GitLab or Gitea) plus a forge token and a DeepSeek API key — both stay out of the agent workspace, but a review needs them

Installation steps

  1. 01

    Install into an existing profile: `dsh plugin --profile web add @dshrb/bundle`, replacing `web` with your own profile name

    $ dsh plugin --profile web add @dshrb/bundle

  2. 02

    Or take the GitHub Action path: put `uses: dshrb/reviewer-action@v0.1.1` in a workflow — the minimal config is `examples/review.yml`, the comment triggers are in `examples/commands.yml`

  3. 03

    Or run the daemon as a resident webhook service for large, multi-repo or private deployments; `docs/08-deployment-modes.md` compares the modes

Verify the integration

Not specified by the author

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH bundle: `bundle/` declares a `dsh.bundle`, so `dsh plugin --profile <name> add @dshrb/bundle` attaches the bot to a profile you already run — it grows on Cordis extension points and shares that profile's `ctx` instead of being called as an external Docker worker.

  • PR comment commands

    A comment whose first line starts with `@dsr` — `review`, `explain <path>`, `diagnose`, `fix` or `rules`→A review, a per-file explanation, a CI failure diagnosis, a code change with checks run, or the active rule list

    only the first line is parsed, so a quoted command further down the comment does nothing
  • Four-level trust gate

    The acting user's permission plus the repository configuration→A command runs only at its minimum trust level; `@dsr fix` needs trusted-write and `allow-write` at the same time

    `@dsr fix` grants no write access by itself`.github/**`, `package.json` scripts and binaries are permanent `ctx.tools.guard()` red lines
  • Pluggable rule packages

    Rule packages published and installed on their own→The active rule set for a review, resolved from the package registry

    a rule change is a package install, not a prompt edit
  • Multi-forge review pipeline

    A pull or merge request from GitHub, GitLab or Gitea, or a local diff→The same eight-stage review pipeline across all four targets

  • Local replay

    `dshrb review --local`, or a run id for `dshrb replay <run-id>`→The same review run reproduced locally, without pushing a PR and waiting for CI

    the README calls this an iteration command, not a separate installation mode

04Who is it for? When not to use it?

Good for

  • Teams that already run DSH and want review work to share the same context as their other plugins
  • Reviewers and repo maintainers on GitHub, GitLab or Gitea
  • Rule-package authors and anyone debugging why a review came out a certain way

Not for

  • Commands are only read from the first line of a PR comment; anything below it is ignored on purpose, so quoting someone else's review does not fire a new run.
  • `@dsr fix` grants no write access by itself — it needs the actor's permission and the repository config to agree (trusted-write plus `allow-write`), and `.github/**`, `package.json` scripts and binaries stay permanent `ctx.tools.guard()` red lines.
  • A run needs a forge token and a DeepSeek API key. Both are kept out of the agent workspace at every trust level, but nothing gets reviewed without them.

05Compatibility, maintenance and safety notes

  • Commands are only read from the first line of a PR comment; anything below it is ignored on purpose, so quoting someone else's review does not fire a new run.
  • `@dsr fix` grants no write access by itself — it needs the actor's permission and the repository config to agree (trusted-write plus `allow-write`), and `.github/**`, `package.json` scripts and binaries stay permanent `ctx.tools.guard()` red lines.
  • A run needs a forge token and a DeepSeek API key. Both are kept out of the agent workspace at every trust level, but nothing gets reviewed without them.
  • Building and checking the repo needs Node 22.19+ / 24+ / 26 with pnpm 11.x — the same engine floor as upstream DSH.
2026-08-152026-08-21v0.1.5

MIT (README: not an official DeepSeek project) · last push 2026-08-21, latest release v0.1.5; the repo ships a docs/ design set including a trust model and threat list

06Frequently asked questions

How do I install dsh-reviewer-bot into DeepSeek Harness?

Add the bundle to an existing profile with `dsh plugin --profile web add @dshrb/bundle`, swapping `web` for your profile name, so the bot shares that profile's `ctx` with your other plugins. If you would rather not touch a profile, the README also documents a GitHub Action (`uses: dshrb/reviewer-action@v0.1.1`) and a resident webhook daemon.

Which commands can a reviewer use, and where must they be written?

`@dsr review` re-runs the review, `@dsr explain <path>` explains one file's change, `@dsr diagnose` reads a failing CI run, `@dsr fix` changes code and runs the checks, and `@dsr rules` prints the active rules. All of them have to sit on the first line of the comment — anything below is ignored so that quoting another review does not trigger a run.

Can `@dsr fix` change code on its own?

Not on its own authority: it only runs when the actor's permission and the repository configuration both allow it, which means trusted-write plus `allow-write`. The other commands never exceed trusted-read, and `.github/**`, `package.json` scripts and binary files are permanent `ctx.tools.guard()` red lines.

Do I need a Docker worker or a separate CI job?

Not on the DSH path — the bot grows on Cordis extension points and runs inside your profile, with Docker as an optional isolation backend. The GitHub Action and daemon modes exist for teams that would rather not install into a profile.

Where do the tokens live?

The security section states that the forge token and the DeepSeek API key never enter the agent workspace at any trust level, that repo content, diffs, comments, CI logs and model output are all treated as untrusted data, and that validation commands are passed as JSON argv arrays and never go through a shell.

08Data and sources

  • Author-claimedgithub.com90e1906b3e00…

    原生 [DeepSeek Harness](https://dshfind.com/zh/plugins/deepseek-ai/deepseek-harness) 插件形态的代码评审机器人。跨代码平台,规则可插拔,可本地重放。

  • Author-claimedgithub.com90e1906b3e00…

    我们直接长在 Cordis 扩展点上:

  • Author-claimedgithub.com90e1906b3e00…

    bundle/ dsh.bundle 声明,供 dsh plugin --profile <name> add

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-25. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.