ZXEB/dsh-purge

DeepSeek Harness 本地运行时适配与提示词管理插件(dsh-purge),支持官方 Web 与桌面端,已适配至 dsh 0.2.2-rc.5。

What it solves

dsh-purge addresses a common confusion when running DeepSeek Harness locally: when the model "refuses" to answer, the cause is often not the model itself but the harness's host layer (prompt rewriting, approval gates, sandbox policies, session migration). This plugin separates those layers so you can run controlled robustness and red-team evaluations entirely on your own installed harness without altering the model files.

How it works

The plugin interacts only with the host layer of the official DeepSeek Harness on your machine. It applies a set of reversible patches that rewrite prompts, inject a custom prompt (from your own file or an embedded encrypted default), and manage policy files such as rule sets, skills, and an allowed-server whitelist. Every modified file is backed up with a .bak suffix before replacement. You apply patches through the sidebar "清洗" page or via CLI commands like dsh-purge --apply; you can revert with dsh-purge --revert. The "演练台" (drill bench) page requires an explicit authorization workflow before you can use test assets and skills. All actions stay local — no network scanning or traffic to public hosts.

Who it’s for

Security researchers, red-team operators, and robust-testing practitioners who run an official DeepSeek Harness locally and want to examine how host-layer configuration affects model behavior in a controlled, authorized environment. The README stresses that it must only be used on machines and targets you manage or have written authorization to test, and it blocks access to mainland China, Hong Kong, and Macau networks unless the exact IP or hostname is pre-registered.

Highlights

  • Sidebar UI with two pages: "清洗" for patch status and configuration, "演练台" for authorized drill assets.
  • Idempotent patching: repeated apply is safe; every file is backed up before modification.
  • Custom prompt injection: either an embedded encrypted default or your own prompt-inject.md.
  • Multi-rule sets (AGENTS.md / CLAUDE.md) that can be enabled and written into $DSH_HOME.
  • Skill import from archives or folders, loaded by the harness itself.
  • "Rewind" feature to take back and re-edit the last sent round in a conversation.
  • Auto retry and auto continue options for evaluation runs.
  • CLI and in-chat commands (/purge, /rules, /skills, /rewind).

Related

  • Project
  • Project
  • Project
  • Project