Community plugin

williamchen520 / dsh-coding-tool

Human-in-the-loop SDD contract gate for DeepSeek Harness

  • JavaScript
  • MIT
  • 0 stars
  • Nov 20, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-coding-tool is a DSH plugin published from the williamchen520/dsh-coding-tool repository.

  • Listing statusManifest verified
  • Manifest checkedNov 20, 2026
  • Packagedsh-coding-tool
  • Package version0.1.0
  • Source commita88bf66
  • Repository createdNov 20, 2026

Capabilities and topics

dsh-pluginsddcontracthuman-in-the-loop
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

SDD Contract Gate

Human-in-the-loop spec → contract → check → approval gate for DeepSeek Harness.

Status: MVP (0.1.0). This plugin never approves, merges, or edits code.

Why

Most "AI coding" tools optimize for producing more code. This plugin optimizes for a smaller, auditable question:

Does the repository still match the spec a human approved?

It is generic: no SciPal paths, no project-specific names, no LLM in the compile/check path.

Tools

ToolPurpose
sdd_initCreate sdd/spec.json, sdd/approval.json, sdd/exceptions.json
sdd_hashReturn the canonical SHA-256 of the spec for human approval
sdd_compileCompile an approved spec into sdd/out/
sdd_checkCheck approval, findings, and generated-artifact freshness
sdd_gateReturn PASS / FAIL; never auto-approves or merges

Quick start

1. sdd_init
2. edit sdd/spec.json
3. sdd_hash
4. put the returned hash into sdd/approval.json
   and set approved_by / approved_at
5. sdd_compile
6. sdd_check
7. sdd_gate

approval.json must look like:

{
  "schema_version": 1,
  "spec_sha256": "<hash from sdd_hash>",
  "approved_by": "human",
  "approved_at": "2026-11-20"
}

Blank approval is rejected. The plugin does not provide an "approve" tool.

Spec example

{
  "schema_version": 1,
  "project": "my-app",
  "rules": [
    {
      "id": "repo.required",
      "kind": "path.exists",
      "severity": "blocking",
      "paths": ["README.md"]
    },
    {
      "id": "api.routes.unique",
      "kind": "json.unique",
      "severity": "blocking",
      "file": "architecture.json",
      "pointer": "api.endpoints",
      "key": "route"
    }
  ]
}

Supported rules (MVP)

path.exists
json.unique
json.required

Unsupported rule kinds fail closed. More adapters are intentionally not added until the core is stable.

Exceptions

{
  "schema_version": 1,
  "exceptions": [
    {
      "rule_id": "repo.required",
      "target": "LICENSE",
      "reason": "vendored fixture",
      "expires_on": "2026-12-31"
    }
  ]
}

Targets are exact; wildcards and expired exceptions fail.

Output

sdd/out/manifest.json
sdd/out/checks.json
sdd/out/coverage.json
sdd/out/report.md

manifest.json is deterministic: same spec + same repository -> same bytes.

Battle-tested in a real system

This plugin was extracted from SciPal, an auditable biomedical RAG platform, then generalized so it no longer contains SciPal paths, specs, or data.

Reference implementation:

The plugin is independent and MIT-licensed; SciPal's public code snapshot is AGPL.

Safety boundary

no LLM in compile/check
no shell command execution in MVP
no network
no secret reading
no auto-approval
no auto-merge
no project-specific paths

Development

node --test test/*.test.js

For a local DSH bundle, install the directory through the DSH Plugin Manager (install_bundle with this absolute package directory). Then call sdd_init from the workspace.

Marketplace

See MARKETPLACE.md for the listing copy, short description, and launch notes.

Add the index source in DSH:

https://raw.githubusercontent.com/williamchen520/dsh-coding-tool/main/market/index.json

License

MIT. The public SciPal snapshot is AGPL; this plugin is independent and contains no SciPal code or data.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/williamchen520/dsh-coding-tool)
dsh-coding-tool — DSH Plugin