nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HimLeoing/dsh-purge
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Version 1.6.1 · targets DSH 0.2.2-rc.3
Prompt injection plus engine-level patches for DeepSeek Harness. Install, open Settings → Purge, press Apply once, and the host restarts into the patched state.
Original author: 小杨 (@YuJunZhiXue), MIT, see LICENSE. Maintained independently by @HimLeoing since 1.6.0.
dsh-purge does two things when DeepSeek Harness boots:
node_modules, so they take effect on the next start.There are 79 patches, grouped into prompt / code / tools / 0.2.x compatibility. A patch whose anchor no longer matches is reported as skipped, never force-written; rollback patches (which undo what an older version of this plugin wrote) always skip on a clean host — that is their job.
On 0.2.2-rc.3 the result is 59 of 59 applied (the permanently-skipped rows are gone from the table now).
| DSH version | Use |
|---|---|
| 0.2.2-rc.3 | this release (1.6.1) |
| 0.2.2-rc.1 / 0.2.1 line | 1.5.x |
| 0.1.7 and older | upstream tags up to 1.1.39 |
Official dsh web and the official desktop build only. Community Desktop is not supported.
# straight from GitHub, pinned to a tag (recommended)
dsh plugin --profile web add "github:HimLeoing/dsh-purge#v1.6.1"
# or via tarball
dsh plugin --profile web add "https://github.com/HimLeoing/dsh-purge/archive/refs/tags/v1.6.1.tar.gz"
Then open Settings → Purge and press Apply. A successful apply restarts the host itself and reopens the page with a fresh token.
Git-sourced plugins run a build step on install, which pnpm blocks by default. If the install is interrupted, append to
$DSH_HOME/profiles/web/pnpm-workspace.yaml:allowBuilds: dsh-purge: true
Settings → Purge has four actions:
| Button | What it does |
|---|---|
| Apply | Writes the patches, installs the prompt, then restarts the host |
| Revert | Restores the host files to their pre-patch contents |
| Uninstall | Removes the plugin and the traces it left |
| Save | Saves the prompt box only; no patches |
node_modules: the next Apply rewrites by anchor.The plugin registers a red-team preset (19 plugins) into the mode dropdown and drops an environment script at $DSH_HOME/redteam/setup.sh.
$DSH_HOME/.agent-presets/redteam/agent.cordis.yml$DSH_HOME/redteam/preset-declare.json (ok / phase / broken)maxDepth: 1)If that file says registered-broken, the broken field names the plugin that failed and why — fix the preset accordingly.
lib/core.js patch table and every anchor (the only file to touch for patches)
lib/index.js host plugin: HTTP routes, prompt injection, apply/revert
lib/web.js restart helper entry (web surface)
lib/restart-web.js detached helper: wait for the port, start the new host, capture the URL
lib/desktop.js desktop surface adapter
lib/redteam/ red-team mode: preset, scoring rules, report replay
client.js settings UI (single-file bundle)
presets/redteam/ red-team preset template (copied to $DSH_HOME on install)
docs/ docs and banner
test/gate.mjs patch-table self-check (71 cases)
A patch is { id, name, file, rel, replacements: [{pattern, replace}], markers }. A pattern that no longer matches skips the whole patch; a marker that matches means it is already applied. Run node test/gate.mjs after editing.
node test/gate.mjs # patch table + apply logic (71 cases)
node --check client.js # settings bundle syntax
MIT. The upstream copyright notice is kept in LICENSE and NOTICE.md.
Changelog: CHANGELOG.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent、prompt-engineering。