Introduction¶
When running agents in DeepSeek Harness (DSH), the working state is often placed in the mutable session layer (e.g., state maintained by plugins like LoopX): you can continue working, but “what exactly happened at that time” may not be preserved, and it is hard to prove retrospectively. If you need to audit or verify disputes in your own environment, you need an append-only, verifiable signature trail, rather than being able to change logs later without raising suspicions.
Below is an introduction to the community plugin dsh-evidence-plugin (maintainer vicfei, category admin-security). It ports the evidence ledger from dsh-super-agent v1.5 to the official DeepSeek Harness: writing a hash chain record for every session state transition, and optionally persisting it to a git repository you self-manage.
What is this¶
The positioning of dsh-evidence-plugin is: a ledger for every session transition entering a hash chain, append-only, where trust comes from the verifiability of the chain, not verbal statements. The plugin page on SkillHub is vicfei/dsh-evidence-plugin, and the source code is on GitHub. The current package version is 0.1.0, and the license is MIT.
It complements the mutable working state layer: the mutable layer carries ongoing work, while the evidence layer makes it harder to silently tamper with or deny what has happened locally.
Core Mechanism & Storage Structure¶
By default, the ledger uses two types of files under the evidence git repository (specified by the configuration item repo):
evidence/ledger.jsonl One line of JSON per transition: { id, ts, kind, payload, prevHash, entryHash }
evidence/head The last entryHash (used to detect tail truncation)
Hashing rules (original README text):
entryHash = sha256(kind ⟟ payload ⟟ prevHash), genesis's prevHash is 64 zeros.
The semantics can be summarized as:
- If any line is changed, the subsequent
prevHashchain will break. - If someone deletes several lines at the tail without updating
evidence/head, the head anchor will not match.
The design goal is to avoid “silent partial tampering”: either the chain is intact and verifiable, or inconsistencies can be detected during verification.
Installation & Configuration¶
Installation¶
Install from the plugin marketplace, or execute in the DSH environment (command from README):
dsh plugin add dsh-evidence-plugin
Runtime requirements (from package.json engines): Node ^22.22.3 or >=24.0.0. Peer dependency ranges for DSH are @deepseek-ai/dsh >=0.2.0-rc.2 <0.3.0-0 and @deepseek-ai/cordis ^4.0.0.
Configuration Options¶
| Option | Meaning | Default Value |
|---|---|---|
repo |
Absolute path to the evidence git repository | Empty disables it |
commitEvery |
Suggested cadence for automatic commit cleanups | 50 |
After configuring repo, the plugin has a place to persist evidence/ledger.jsonl and evidence/head, and can coordinate git commit pacing ( commitEvery is a suggestive cadence; by default, every 50 related operations trigger a cleanup routine, specific implementation depends on the code).
Typical Usage Logic¶
The README does not provide a step-by-step tutorial with specific session events, but the usage logic is clear and can be implemented in the following order:
- Install the plugin and restart, or load the bundle according to the DSH process (via
dsh.bundleinjectingcordis.patch.yml). - In the plugin configuration, set
repoto a local absolute path, pointing to a git repository dedicated to evidence storage (empty path means the ledger is not written to disk). - Run Harness sessions normally, allowing transitions to occur naturally; observe whether
evidence/ledger.jsonllines are appended underrepo, and whetherevidence/headis updated with the lastentryHash. - When verification is needed, recompute
entryHashline by line starting from genesis (prevHashof 64 zeros), and compare with theprevHashandentryHashin the file; also check ifheadequals the last line’sentryHash.
The community directory SkillHub has no official affiliation with DeepSeek/Quant; the plugin list is an independent ecosystem site, and it is still recommended to view the source code and license yourself before installing.
Applicable Scenarios & Notes¶
Who is this suitable for
- Teams or individuals who need to preserve the trajectory of agent session transitions on their own machines and in their own git repositories.
- Scenarios that care about admin-security capabilities, where the working state is mutable but history is verifiable.
- Developers who are already using or will use the evidence ledger semantics of
dsh-super-agentand want to extend the same model on the official Harness.
Important Notes
- The plugin reads and writes to your configured
repopath with the permissions of the current DSH process; choosing the wrong path may result in writing to unintended directories. - When
repois not configured, the functionality is disabled, and no on-chain evidence files will be generated. - Verifiability of the chain does not equate to “content credibility”:
payloadstill depends on upstream events and session logic; the plugin guarantees tamper-proof signals at the level of appending and hash chain consistency. - Installing and enabling is equivalent to loading a third-party Cordis patch in Harness; before production use, it is recommended to read
cordis.patch.ymland thelibimplementation, and confirm compatibility with the current DSH version.
Conclusion¶
dsh-evidence-plugin brings the hash chain evidence ledger from dsh-super-agent into DeepSeek Harness: every session transition gets an additional verifiable record that can be chained, optionally landing in your git repository. If you are building an auditable agent runtime environment, you can start by configuring repo and verifying ledger.jsonl / head.
- Directory page: https://www.skillhub.cn/plugins/vicfei/dsh-evidence-plugin
- GitHub: https://github.com/vicfei/dsh-evidence-plugin