Back to directory

dsh-auto-review

Curated pickMaintenance: Active

perrylink/dsh-auto-review

Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns structured allow/deny verdicts with reasons, fail-closed by default, fully auditable from the session log (approval/asked -> autoReview/verdict -> approval/decided).

View on GitHubHomepage
$ dsh plugin --profile web add dsh-auto-review

148

stars

2

forks

TypeScript

Language

Apache-2.0

License

2026-08-13

Created

2026-09-08

Last push

Apache-2.0 DeepSeek Harness plugin that puts a second model on the `approval/request` answerer chain: a read-only reviewer subagent returns structured `{ decision, reason, riskLevel }` verdicts, fail-closed by default, with deny reasons fed back to the model and a full session-log audit trail.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-08-25

License

Apache-2.0

01What can it help you accomplish?

  • Gate DeepSeek Harness tool approvals with a second-model reviewer

    Structured allow/deny verdicts `{ decision, reason, riskLevel }` injected back into the denied tool result, fail-closed by default

    Teams running DeepSeek Harness who want human-grade safety on sandbox-breaking actions without a human clicking approve

  • Reconstruct and audit every approval decision from the session log

    A replayable decision chain `approval/asked → autoReview/verdict → approval/decided` plus log-only `autoReview/*` events

    Security and compliance reviewers who need an immutable record of why each action was allowed or denied

  • Give the agent self-correcting denials

    The reviewer's reason is fed back into the denied tool result (callId-linked) so the model adapts instead of retrying blindly

    Agent operators who want fewer blind retries and clearer, policy-driven rejections

02How to install into DeepSeek Harness

Prerequisites

  • DeepSeek Harness `0.1.1-rc.2` (dependencies pinned to `0.1.1-rc.2`; peers `>=0.1.0-rc.8 <0.2.0`)
  • Node `^22.19.0 || >=24.0.0`

Installation steps

  1. 01

    Install from npm: `dsh plugin --profile web add dsh-auto-review`

    $ dsh plugin --profile web add dsh-auto-review

  2. 02

    Alternatively install the latest `main` from git: `dsh plugin --profile web add "github:PerryLink/dsh-auto-review#main"`

    $ dsh plugin --profile web add "github:PerryLink/dsh-auto-review#main"

  3. 03

    Restart DeepSeek Harness to load the plugin

Verify the integration

  • Confirm the auto-review row is present: `dsh --profile web --dump-config | grep -A4 'id: auto-review'`

Rollback

  • Uninstall with `dsh plugin --profile web remove dsh-auto-review`, or remove the row from the profile patch.

03DSH integration and capability boundaries

DSH integrationNative runtime

Adds a read-only reviewer subagent to DeepSeek Harness's `approval/request` answerer chain that returns structured allow/deny verdicts, fail-closed by default.

  • Second-model approval answerer

    An `approval/request` for a tool whose policy is `ai`allow (allowed-once) or deny (rejected) with a reason; the human flow is never short-circuited

    Claims only `ai`-policy requests and delegates everything else via `next()`
  • Read-only reviewer subagent

    The streamed tool-call arguments (sensitive values redacted), the request reason, and your risk rulesA structured verdict `{ decision, reason, riskLevel }`

    Runs as a one-shot fork with a `read`/`glob`/`grep` tool allow-list; cannot write, edit, run bash, fetch the network, or delegate
  • Deny-reason injection

    A deny, fallback, or `never` verdictThe reviewer's verdict reason injected into the denied tool result, callId-linked

    Forces models to see auditable `[auto-review]` / `[auto-review-fallback]` / `[auto-review-never]` markers
  • Full audit trail

    Every approval decisionLog-only `autoReview/verdict` + `autoReview/rejection` session events the session log can reconstruct

    Optionally emits an invariant companion enforcing marker ⟺ event
  • Session command & Web review panel

    `/auto-review on|off|status|approve [n]`Durable per-session override, per-turn budgets, cumulative statistics, recent verdicts, one-shot approve

    `on`/`off` writes a durable `autoReview/state` override (the fold survives restart and resume)

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

Good for

  • Teams running DeepSeek Harness who want human-grade safety on sandbox-breaking actions without a human clicking approve
  • Security and compliance reviewers who need an immutable record of why each action was allowed or denied
  • Agent operators who want fewer blind retries and clearer, policy-driven rejections

Not for

  • The reviewer is strictly read-only — its `toolFilter` allow-list (`read`/`glob`/`grep`) cannot write, edit, run bash, fetch the network, or delegate. Treat its verdicts as advisory policy, not a security kernel; prefer `human`/`never` rules for irreversible operations.
  • Sensitive arguments are redacted by key name (`token`, `password`, `api_key`, `Authorization`, credentials, private keys …) before reaching the reviewer prompt. Do not AI-review tools whose argument values you cannot afford to show a model.

05Compatibility, maintenance and safety notes

  • The reviewer is strictly read-only — its `toolFilter` allow-list (`read`/`glob`/`grep`) cannot write, edit, run bash, fetch the network, or delegate. Treat its verdicts as advisory policy, not a security kernel; prefer `human`/`never` rules for irreversible operations.
  • Nothing is stored on disk; the report ring buffer is in-memory and bounded, and the plugin makes no network requests of its own.
  • Sensitive arguments are redacted by key name (`token`, `password`, `api_key`, `Authorization`, credentials, private keys …) before reaching the reviewer prompt. Do not AI-review tools whose argument values you cannot afford to show a model.
  • The plugin requires the `session:append`, `approval:answer`, `subagent:spawn`, `command:register`, and `tools:observe` permissions.
2026-08-132026-08-23v0.6.0

Apache-2.0 · actively maintained (latest release v0.6.0, 2026-08-23)

06Frequently asked questions

How do I install DSH Auto Review into DeepSeek Harness?

Add it to your web profile with `dsh plugin --profile web add dsh-auto-review` (or `dsh plugin --profile web add "github:PerryLink/dsh-auto-review#main"` for the latest `main`). Restart DeepSeek Harness, then confirm the row loaded with `dsh --profile web --dump-config | grep -A4 'id: auto-review'`.

Does the reviewer actually run bash or edit files?

No. The reviewer is a read-only one-shot fork with a `read`/`glob`/`grep` tool allow-list — it cannot write, edit, run bash, fetch the network, or delegate. Its verdicts are advisory policy, not a security kernel.

What happens if the reviewer crashes, times out, or returns a bad schema?

Every abnormal path resolves through `fallbackPolicy`, which defaults to `rejected` (fail closed). The rejection feeds an auditable reason back to the model, so a malfunction never silently grants an action.

Can I audit why a tool call was allowed or denied?

Yes. Every decision reconstructs from the session log: `approval/asked → autoReview/verdict → approval/decided`. The plugin emits log-only `autoReview/*` events you can replay, plus an optional invariant companion that enforces marker ⟺ event.

How do I tune which tools the reviewer sees?

All tunables are Schemastery `Config` fields set in cordis.yml — per-tool policies (`ai`/`human`/`never`), regex risk rules, reviewer model/timeout, circuit breaker, and more. Out of the box it AI-reviews `bash` and `write`; every other tool delegates to the human chain.

08Data and sources

  • Author-claimedgithub.comfb1031196c00…

    **Second-model AI approval for DeepSeek Harness — a read-only reviewer subagent decides allow/deny on the approval chain…

  • Author-claimedgithub.comfb1031196c00…

    `dsh-auto-review` puts a second model on the `approval/request` answerer chain:

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-08-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.