DeepSeek Harness Plugin

Jasper-Alaric/dsh-a-hallucination

Category AGI Architecture Exploration Added 2026-11-26

Runtime evidence discipline for DeepSeek Harness that does not rely on the model agreeing with itself. A bounded anti-hallucination contract is injected as one short system-prompt section, and four checks run outside the model: a ledger written only by real tool dispatches, so an entry cannot be fabricated; a provenance gate that records (and in the strict profile refuses) a call whose path, URL, id, account, or amount has no origin in the session; a risk gate that holds destructive, outward-facing, or paid tools, plus shell commands that delete, publish, or send, for confirmation; and an injection shield that marks web, file, MCP, and A2A output as data rather than instructions, counting instruction-like fragments it finds. Before sending an answer the model calls answer_verify with one claim per assertion, each citing a ledger id and the exact quoted excerpt; the verifier compares quotes against the stored result, so a fabricated number fails even when a tool call did happen. Time-sensitive claims (price, incumbent, version, current) must cite evidence inside an age limit. Every verdict reports the verification level it applied (light, standard, strict) and the output form the answer should take (direct, annotate, or abstain with what is missing), plus running metrics such as verification counts, pass rate and quote rate, and the Settings panel shows those same counts in plain language. Three profiles cover the tradeoff: observe only records, inspect also blocks and annotates, adjudicate additionally refuses untraceable targets, and the Settings panel labels the three of them 静观 (observe), 明察 (inspect) and 断案 (adjudicate). Ships a plain-language Settings panel with a collapsible technical section, durable profile selection, and a read-only ledger_view tool. No embedding service, no vector database, no network calls, no runtime dependencies.

Install

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

dsh plugin --profile web add github:Jasper-Alaric/dsh-a-hallucination

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.