DeepSeek Harness Plugin

zjukop3/dsh-vertical-kit#dsh-document-check

Category Docs & Rendering Added 2026-11-23

One agent tool, 31 document checks: the model verifies a document it produced against a genre's structural rules before delivering it, and gets findings with rule ids and line numbers instead of a document a person has to re-read. The 31 checks existed only as HTTP endpoints — a person had to remember to POST, and an agent had no reason to; a tool is the layer a model can see and decide to call, which is what makes "check it before you hand it over" something that can actually happen. One tool rather than 31, because twenty-seven definitions crowd the prompt and a model cannot tell adr_check from spec_doc_check in its first ten minutes: the genre choice stays in the document it just wrote. It carries no rules of its own, calls each check's exported linter directly, runs locally with no network, no model calls and no port, and answers in 59 ms for all 31 checks measured on 2026-11-23. At most 25 findings per call, with truncation stated, because a checker that dumps two hundred findings into the context gets switched off. Structural only: it says an ADR has a consequences section, never that the consequence is acceptable. The HTTP routes the sibling checks register have no DSH access check, so a web page open in your browser could call them.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:zjukop3/dsh-vertical-kit#path:/packages/dsh-document-check

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.