DeepSeek Harness Adversarial Review Preset Plugin

Introduction

The core design philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin”. In code review scenarios, standard Agent modes often tend to confirm code correctness, easily overlooking edge cases or accepting code prematurely. Addressing this pain point, ink-dark/dsh-adversarial-review-preset shifts the Agent’s stance from “confirming correctness” to “proving incorrectness”.

What is it

This is a Bundle plugin maintained by Ink-dark. It injects a @deepseek-ai/dsh-agent-preset declaration into the Harness Profile, adding an “Adversarial Review” mode to the Agent preset list. Instead of re-implementing the toolset, this plugin enforces stricter review discipline by altering behavior logic and mounting dedicated skills.

Core Features

The plugin transforms the Agent’s review behavior through strict discipline, primarily including the following:

  1. Stance Shift: Presuppose that the code, tests, or documentation under review are incorrect until personally verified as correct. Conclusions must not contain unverified phrasing such as “should be fine” or “probably”.
  2. Evidence Discipline: Every conclusion must be locatable (file path + line number, or section/clause number of authoritative source text). When citing authoritative text, quote verbatim. Unlocatable intuitions must be listed separately as “hypotheses to be verified”.
  3. Modification Discipline:
    • Do not modify the subject under review during the review process.
    • Modifying tests simply to pass them is strictly prohibited, unless you can precisely cite authoritative clauses proving the test itself is non-compliant.
    • Output a defect report and wait for user confirmation; once confirmed, fix only one issue at a time.
  4. Adversarial Re-evaluation: Actively construct counterarguments for identified defects and attempt to justify them; if the counterargument holds, retract the defect.
  5. Mounted Skills: Automatically mounts skills/adversarial-review (general adversarial review process) and skills/whatwg-spec-adversarial-review (specialized checks for WHATWG specifications).

Installation and Activation

Installation requires that DSH has enabled code working tools (plugin management capabilities).

Install using the plugin manager:

plugin_manager(action: "install_bundle", target: "github:Ink-dark/dsh-adversarial-review-preset")

Installation affects all sessions under the current Profile and requires Full access permissions.

Typical Usage

  1. When creating a new task, select “Adversarial Review” in the Agent preset options.
  2. After installing or upgrading the plugin, it is recommended to run a compatibility check to ensure the preset works correctly:
npm run verify

Use Cases and Notes

  • Compatibility Scope: The plugin declares a strict peerDependencies version range >=0.1.7-rc.2 <=0.2.0-rc.2. If the runtime version exceeds this range, the Bundle may be skipped at startup.
  • Modification Discipline: This plugin enforces strict modification discipline, prohibiting the modification of test code solely to pass tests.
  • License: MIT.

Through such strict review discipline, this plugin helps teams reduce low-level errors and specification violations. Plugin details and source code are available at: https://github.com/Ink-dark/dsh-adversarial-review-preset

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

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

Xiaoye