Introduction¶
DeepSeek Harness (DSH) adopts the design philosophy of “everything is a plugin.” In AI coding scenarios, developers often face a common problem: code generation tools tend to produce more code, but it is difficult to guarantee that the output remains consistent with the original requirements. The plugin introduced in this article uses SDD (Software Design Document) contract gating to perform deterministic validation before merging or reviewing. It does not rely on LLMs, nor does it auto-approve.
Plugin Positioning¶
This is an admin-security category plugin for DeepSeek Harness, used for spec drift checks with human intervention before code merging. The plugin never allows AI to automatically approve, merge, or edit code, and always maintains deterministic PASS/FAIL judgments. It is maintained by williamchen520, and source code and documentation are available on GitHub.
Core Capabilities¶
The plugin provides a set of commands for managing specifications, compilation checks, and gating decisions:
sdd_init: Createssdd/spec.json,sdd/approval.json, andsdd/exceptions.jsonin the current directory.sdd_hash: Returns the SHA-256 hash of the specification for manual verification.sdd_compile: Compiles the approved specification into thesdd/out/directory.sdd_check: Checks approval status, findings, and artifact freshness.sdd_gate: ReturnsPASSorFAIL, with no auto-approval logic provided.
Output files include:
sdd/out/manifest.json: A deterministic manifest file.sdd/out/checks.json: Check results.sdd/out/coverage.json: Coverage data.sdd/out/report.md: A Markdown-formatted report.
Installation and Activation¶
The plugin is installed into the local DSH Bundle via a directory-based approach, and tools are then invoked from the workspace.
- Clone the repository (illustrative only, not to be executed):
git clone https://github.com/williamchen520/dsh-coding-tool.git
-
Use
install_bundlein the DSH Plugin Manager to install the directory into the local Bundle. -
Run initialization in the workspace:
sdd_init
Typical Usage¶
Following the quick-start workflow provided in the README:
- Initialize the directory structure:
sdd_init
-
Edit
sdd/spec.jsonto define project specifications and rules. -
Obtain the specification hash:
sdd_hash
- Write the returned hash value into
sdd/approval.jsonand fill in the approver and timestamp:
{
"schema_version": 1,
"spec_sha256": "<hash from sdd_hash>",
"approved_by": "human",
"approved_at": "2026-11-20"
}
- Compile the specification:
sdd_compile
- Run checks:
sdd_check
- Retrieve the gating result:
sdd_gate
Rules and Exceptions¶
The current MVP version supports the following rule types:
path.exists: Checks whether a specified path exists.json.unique: Checks for unique keys in JSON.json.required: Checks whether required fields are present in JSON.
Unsupported rule types are handled with a “fail-closed” policy.
Exception configuration (sdd/exceptions.json) example:
{
"schema_version": 1,
"exceptions": [
{
"rule_id": "repo.required",
"target": "LICENSE",
"reason": "vendored fixture",
"expires_on": "2026-12-31"
}
]
}
Target matching is exact; wildcards are not supported. Expired exceptions are also rejected.
Security Boundaries¶
During the MVP phase, the plugin adheres to the following constraints:
- Compilation and check paths do not involve LLMs.
- No shell commands are executed.
- No network requests are made.
- No keys or sensitive information are read.
- No auto-approval is provided.
- Code is not auto-merged.
- No project-specific paths are included.
Use Cases and Cautions¶
This plugin is suitable for AI coding workflows that require strong specification constraints and human review. The plugin runs with the permissions of the current DSH process, so it is recommended to review the source code and license before installation. The current version is 0.1.0, and some features are still under development.
Ecosystem Context¶
The plugin directory in the DSH ecosystem operates independently and has no official affiliation with DeepSeek or High-Flyer. This plugin can be integrated into the community index:
https://raw.githubusercontent.com/williamchen520/dsh-coding-tool/main/market/index.json
Summary¶
This plugin provides a “spec drift firewall” for DeepSeek Harness. Through SDD contracts and a human approval workflow, it performs deterministic validation before merging. It does not depend on LLMs, does not auto-approve, and is well-suited for coding scenarios that require high auditability.
- Plugin directory page: https://www.skillhub.cn/plugins/williamchen520/dsh-coding-tool
- Source repository: https://github.com/williamchen520/dsh-coding-tool