DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Harness Audit — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-harness-audit

Harness Audit

Audit an agent harness against the harness-evaluation criteria, with machine-enforced evidence validation.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-harness-audit@0.1.0
READMECompatibilityVersions

Compatibility and provenance

Harness Audit is published as dsh-harness-audit and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.1.0stable
8/17/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
95 kB
Files
5
Surface
any
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
97
Last push
8/17/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in agents-orchestration.

Headless@deepseek-ai/dsh-headlessThe dsh one-shot bundle: a direct core Agent/Session runner over dsh-base with no Host, HTTP, or browser layerExperimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profileExperimental Web profile layer for Agent Teams Remote and UI pluginsSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocolSubagent Claude Code@deepseek-ai/dsh-subagent-claude-codeOne-shot Claude Code subagent provider over the official Agent SDK

README

dsh-harness-audit

Audits an agent harness for the failure modes that break agent loops — and refuses any finding whose evidence isn't actually in the code.

Fifteen checks, one throwaway subagent each, and a summary written by code rather than by a model. The plugin is self-contained: installing it installs the criteria too.

What it actually catches

The criteria are failure modes, not style. A sample:

C1A tool call gets no result, so the next request carries a call with no answer and the model service refuses it.
C9An operation times out after its external effect landed, so the retry does it twice — two messages sent, two charges.
C10The user cancels; the subprocess keeps running and the request is still in flight.
C12The model calls the same tool forever, with no cap on rounds or spend.
C14The start of each request keeps changing, so the provider's prefix cache never hits. Nothing errors — it just costs more, every request.

The full set spans state consistency, untrusted input, failure handling, cancellation boundaries, resource limits, and observability.

Use

/harness-audit          # asks which dimensions, with a plain-language menu
/harness-audit C1       # one dimension
/harness-audit C1,C9    # several
/harness-audit p1       # the seven critical ones
/harness-audit all      # all fifteen

The command returns immediately and the audit runs as a background job, so it does not block the session. When it finishes, the agent is woken and reports. Ask for progress at any time with job_output <id>.

Two files land in outputDir (default .harness-audit/), named by local time and the dimensions covered:

report-2026-08-17_095736-C1.md
report-2026-08-17_095736-C1.json

Input that cannot be parsed is refused, never silently reinterpreted — an earlier version accepted only --checks, so --check c2 fell through to a configured default and audited a different dimension without saying so.

Does it work?

Measured against a fixture with known defects — seven deliberate C1 bugs, one config-gated case, and one deliberately correct module as a false-positive probe:

Defects found8 of 8
False positives0 — the correct module was never flagged
Evidence rejections2 of 10 submissions, both corrected on resubmission
Cost205s, 61K in / 24K out for one dimension

The one verdict that differed from the fixture's answer key was the auditor being more right than the sheet: it read the default of the environment variable gating the path and judged it reachable.

npm test --prefix dsh-harness-audit

191 tests. The load-bearing ones assert that every check carries criteria a subagent can judge by, that a check prompt carries only its own criteria, and that no prompt has drifted back to asking for a document that is not installed.

How a run works

  1. Recon — one subagent locates landmarks (agent loop, request assembly, tool execution, …) and reports them through report_landmark.
  2. Fan-out — one throwaway subagent per check, each given exactly one check's criteria and only the landmarks that check depends on. A check whose required landmark was not found is not dispatched; it is recorded as not covered. Running a check with no target is a leading source of false positives.
  3. Summary — pure code. No model writes it: that is how suspected turns into confirmed and how unevidenced claims get in.

Evidence validation

report_finding refuses a submission unless:

  1. the check belongs to this run,
  2. the path is first-party code — not .venv, site-packages, node_modules, …,
  3. the file exists inside the workspace (also the path-traversal gate),
  4. the line exists in that file,
  5. the quoted evidence actually appears within ±3 lines of the cited line, and
  6. a suspected verdict carries a confirmHint.

Rule 5 compares normalised text — trimmed, internal whitespace collapsed — not bytes, so indentation differences don't cause spurious refusals. A refusal is returned to the subagent with the reason, and in practice it re-reads the file and resubmits correctly.

The rejection rate is the metric to watch. Every report states it. A high rate means the subagents are fabricating and the prompts need work. It is never a reason to relax validation.

Scope enforcement exists for the same reason. A first run against a Python project located all 23 landmarks inside .venv/site-packages/, auditing the vendored framework rather than the project. Asking was not enough; the tools now refuse those paths, and the same run costs 147s instead of 698s.

Install

dsh plugin --profile web add dsh-harness-audit

Distribution is via npm or pnpm pack. A GitHub install works too, but pulls source rather than build output: pnpm must run this package's prepare script, which the user has to authorise in their profile's pnpm-workspace.yaml. That authorisation lets this package's code run on their machine outside any agent sandbox, so pin the commit:

dsh plugin --profile web add github:you/repo#<commit-sha>

Without the sha the install resolves to whatever the default branch points at at install time, so two people running the same command on different days get different code. The prebuilt paths avoid the question entirely.

Development

pnpm dsh --profile web --patch ./dsh-harness-audit/cordis.yml

Four things that cost time when they are wrong:

  • web is an alias for --profile web and rejects --patch alongside it. Use --profile web.
  • The name in cordis.yml must be an installed package name or an absolute file:// URL. Node's ESM loader accepts only file:, data: and node: schemes — a bare F:/… fails with Received protocol 'f:', and a git URL cannot work here at all. Git URLs belong in dsh plugin add, not in a patch row.
  • Running dsh from a source checkout requires that checkout to be built (npm run build:lib:host at minimum), or the boot fails in typert-loader before any plugin loads. A built install — what real users have — is fine.
  • pnpm install here needs --ignore-workspace when the package sits inside another pnpm workspace's tree; without it pnpm installs the outer workspace and ignores this package entirely.

Configuration

FieldDefaultMeaning
checks[]Check ids to run. Empty means "ask", never "audit everything".
priorityFloor2Run checks at or below this priority (1 = P1 only). An explicitly named check runs regardless.
concurrency3Checks in flight at once. 1 is supported and is the cheapest way to debug.
subagentProviderspawnSubagent provider name.
maxTokensPerCheck120000Advisory. See the limitations below.
outputDir.harness-auditWorkspace-relative report directory.
announceOnStarttruePost a one-line notice when a run starts, so a fresh session has something to attach the job UI to.
backgroundtrueRun as a job. false blocks the command until the audit finishes.
useLsptrueTry LSP navigation, degrading to text search.
crossCheckAnalysisfalseReserved; not yet emitted.
languageautoOutput language. auto follows the harness locale, then the host locale, then English.
excludePathsdependency dirsDirectory names refused as out of scope. [] audits a vendored framework deliberately.

Known limitations

  • maxTokensPerCheck is advisory. The subagent seam has no whole-run token cap — AgentOptions.maxTokens bounds a single response, not a run — so the budget is stated to the subagent and recorded, and the report gives the observed cost. It is not enforced.
  • crossCheckAnalysis is not implemented. When built, its output must be a separate section marked as model inference that did not pass validation.
  • LSP availability is per-extension. The seam exposes no capability query, so availability is observed by running a query and routing on the thrown LspError. The probe runs after recon, using the detected primary language, and speaks only for that language.
  • Token attribution needs a local subagent provider. Cost is folded from the child's session events; a remote provider publishes no local child session, so its usage reads as zero.
  • A run in a brand-new session shows nothing until the first turn. Command dispatch produces no turn, and the conversation's UI slots are session-scoped, so the job indicator has nowhere to attach until something else starts one. announceOnStart exists to start one.

Design notes

The criteria live in src/criteria.ts, not in a skill. An earlier version shipped a bundled harness-evaluation skill that subagents loaded at run time. That indirection is gone so that installing the plugin installs everything. The trade is recorded in that file's header: changing a criterion is now a code change and a release, and a project can no longer override the criteria by shipping its own skill of the same name.

Each check's criteria are handed to its subagent verbatim, and only its own. The plugin's name, group and picker glosses are navigation copy; no subagent is shown them, and they must never stand in for the criteria.

Audit children are not tool-scoped. An earlier version passed toolFilter: { allow: [...] }, built from names resolved in the plugin's own scope. Model-facing tools live on the agent plane, so the list collapsed to one entry and tools.restrict() removed everything else — recon came back with unknown tool "read". There is no supported way to enumerate a child's scope before it exists, and guessing is worse than not scoping.