dsh-compound: Recording and Recalling Verified Project Experience in DeepSeek Harness

Introduction

When troubleshooting projects with DeepSeek Harness (DSH), similar issues often reappear weeks later. Details such as how a bug was fixed, what was verified, and under what conditions the fix applies tend to remain buried in chat logs. Switching conversations or personnel often necessitates redoing the entire investigative process. While generic memory plugins or vector databases can store fragments, they are not tightly bound to “this repository, this file, this verification instance,” nor are they convenient for review and version control.

Below is an introduction to the community plugin dsh-compound (Maintainer: Nocteve, Category: Memory). It provides a lightweight Compound Engineering adaptation for DSH: organizing resolved and verified critical issues into in-project Markdown experiences. It supports Chinese text retrieval and prompts for re-verification when relevant code files change. The design philosophy draws inspiration from Every’s Compound Engineering; the scope of the port and licensing information can be found in THIRD_PARTY_NOTICES.md within the repository. This is an unofficial community project. SkillHub Directory: https://www.skillhub.cn/plugins/Nocteve/dsh-compound. Source Code: https://github.com/Nocteve/dsh-compound.

What is this

dsh-compound is a DSH standard bundle plugin (current package version 0.1.0, MIT License). Its core approach is: once a critical issue is resolved and passes checks, the root cause, applicable conditions, and verification results are written into a reusable record. Later, users can recall a small number of candidates based on symptoms, components, or keywords, and then judge whether they still apply by comparing them against the current code. Records are stored in the current project’s docs/solutions/dsh-compound/ directory as standard Markdown files, which are diffable, editable, and deletable. It relies on Node’s built-in libraries for operation and requires no database, embedding services, or background processes.

The plugin runs with the permissions of the current DSH process; please review the source code and license before installation. Records are local files, and the helper does not upload them. When the model reads records, the content enters the current conversation; data handling depends on your configured model service.

Core Features

The first version provides two Skills registered via DSH’s ctx.skills. They are typically selected by the model during conversation; there is no forced injection per turn, and capture does not automatically archive experiences after every task concludes.

dsh-compound-capture

Writes experiences worth keeping into the project directory based on your request. If a similar record exists, it performs a content summary check before updating to avoid redundant stacking. It should only save desensitized and genuinely valuable conclusions, excluding credentials or raw private logs.

dsh-compound-recall

Searches project experiences by symptoms, components, and keywords, supporting Chinese text matching. During recall, it performs a change check against the relevant files registered in the record, reporting whether they are unchanged, changed, missing, or undetermined. A file remaining unchanged does not imply the experience is still correct; similarly, a retrieval score does not represent credibility. The verification commands and results within the records are reports provided by the recorder; the tool does not execute them, nor does it prove the problem is solved for you.

File Change Check

Records the SHA-256 of relevant files. Upon recall, it compares against the current workspace status to provide a change state, reminding you to re-verify applicable conditions after code changes.

Storage and Boundaries

Each workspace only reads its own docs/solutions/dsh-compound/ and does not search the user’s home directory or other projects. Path checks reject symbolic links and limit the size of records and evidence files (a reliability measure, not sandbox isolation). Errors will occur if evidence is too large, located outside the workspace, or non-existent. Specific limits are detailed in the repository’s docs/record-format.md.

Installation and Activation

Requires Node.js 22.19+ and an installed DeepSeek Harness. The README documents the test environment as Windows, Node 22.19.0, Harness 0.2.0-rc.2; further boundary details can be found in docs/validation.md.

This package has not been published to npm. Do not install it directly using a package name, to avoid installing an unrelated package with the same name. You need to obtain a .tgz file or the local plugin directory first (the process for generating the archive from source via npm test and npm pack --ignore-scripts is described in the README on GitHub).

After installing to a specific profile, you must close and restart that profile. dsh-compound-capture and dsh-compound-recall should appear in the skills list. The following uses the profile name web as an example; please replace the path with your actual location:

dsh plugin --profile web add 'C:\Downloads\dsh-compound-0.1.0.tgz'

You can also link directly to a downloaded or local source code directory:

dsh plugin --profile web add 'C:\Projects\dsh-compound'

This package has no installation scripts, build steps, or Claude CLI dependencies.

Typical Usage

After an issue has been fixed and relevant checks have indeed passed, instruct the Harness, for example:

Use dsh-compound-capture to record the reusable experience from this issue, retaining the root cause, applicable conditions, and actual verification results. If the experience already exists, update it; if it is not worth writing, do not write it.

When recalling during new tasks or related troubleshooting, for example:

Use dsh-compound-recall to check if this project has solutions for similar issues. Verify against the current code before using, and point out which conditions need re-verification.

The model may also choose to use recall during troubleshooting or planning; whether it proactively selects this depends on model behavior.

When troubleshooting installation or script issues, you can directly call the bundled helper (manual execution is usually unnecessary):

node bin/compound.mjs recall --workspace 'E:\my-project' --query 'Windows 进程退出' --limit 5
node bin/compound.mjs inspect --workspace 'E:\my-project' --id 'worker-exit'
node bin/compound.mjs capture --workspace 'E:\my-project' --input 'E:\my-project\draft.json'

Draft fields and output meanings are detailed in docs/record-format.md. examples/verified-solution.json is a clearly marked synthetic structure example; it does not correspond to real verification and cannot be imported directly as a genuine experience.

Use Cases and Notes

Suitable for: DSH users who wish to accumulate “verified” troubleshooting conclusions within a single repository, recall them using Chinese keywords, and manage Markdown experiences within CI/review workflows.

Not suitable as: A fully automatic project memory, multi-agent orchestration, or a complete migration of Compound Engineering replacing code review. The README explicitly states that there are currently no plans for full CE migration, review, multi-agent orchestration, or automatic memory. Future priorities include collecting cases of installation failures, duplicate records, false recalls, missed recalls, and stale experiences to decide on further extensions.

To uninstall the skill:

dsh plugin --profile web remove dsh-compound

Existing experience files within the project are retained after uninstallation. To delete a record, simply delete the corresponding Markdown file. If substantive conclusions are modified, you should re-verify and update via capture to avoid inconsistencies between the body text and machine metadata.

Conclusion

dsh-compound collects issues that have been “fixed once and verified” into the project directory. Using the capture and recall Skills combined with file SHA change prompts, it enables DSH to check local experiences first and then make decisions against current code in similar tasks. The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; SkillHub is an independent community directory and has no official affiliation with DeepSeek or High-Flyer.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye