A DeepSeek Harness settings plugin that jailbreaks every model with per-model prompt swaps, adds a Rules card (Apply / Restore, override editor, rule sets) on the dsh settings page, and re-applies patches after npm upgrades.
DSH integration
Native runtime
Author-claimed
Safety audit
Unaudited
Last verified
2026-09-02
License
MIT
01What can it help you accomplish?
Reconfigure DeepSeek Harness's default copy, permission policy and tool limits per model, with a per-model override prompt (every model can jailbreak; swap prompts per model, default prompt for Chinese models — 小码酱)
A Rules card on the dsh web settings page with grouped patches, Apply / Restore, a session override editor (prompt-inject.md) and multiple rule sets
DeepSeek Harness users (web and desktop) who want to change the harness's default copy, permission policy and tool limits
Keep patches applied across npm upgrades of DeepSeek Harness that overwrite node_modules
Patches re-applied automatically on start, with per-file backups (`<file>.dshpurge.bak`) and a Restore / revert path via the Rules card or `/purge revert`
Operators who upgrade DeepSeek Harness often and want their prompt / permission patches to survive the upgrade
02How to install into DeepSeek Harness
Prerequisites
- DeepSeek Harness (dsh) installed with either a `web` or `default` profile — web and desktop install the same plugin into their profile
- Git, to `git clone` the repo — or use the GitHub `master.zip` URL instead
- Restart the harness after install so the **Rules** card appears on the settings page
Installation steps
- 01
Clone the repo: `git clone https://github.com/YuJunZhiXue/dsh-purge.git && cd dsh-purge`
$ git clone https://github.com/YuJunZhiXue/dsh-purge.git && cd dsh-purge
- 02
Add it to the web profile: `dsh plugin --profile web add .`
$ dsh plugin --profile web add .
- 03
Add it to the desktop profile: `dsh plugin --profile default add .`
$ dsh plugin --profile default add .
- 04
Or install from the GitHub zip: `dsh plugin --profile web add https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.zip`
$ dsh plugin --profile web add https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.zip
- 05
Restart the harness; the **Rules** card shows up on the settings page
Verify the integration
- After restart, the **Rules** card is on the settings page (hard-refresh with Ctrl+F5 if the client bundle is cached)
- Run `/purge status` — it prints `DSH_HOME` and the patch list
- Click **Apply**, then **Restart** when prompted to activate the patches
03DSH integration and capability boundaries
Built as a dsh-plugin: installed via `dsh plugin add`, it patches the installed @deepseek-ai/* packages in place through a Rules card on the dsh web settings page.
Rules card: grouped patches with Apply / Restore
installed @deepseek-ai/* packages (copy / permission / tool-limit targets)→a Rules card on the dsh web settings page with grouped patch status, Apply / Restore, a session override editor and multiple rule sets
rewrites files inside installed @deepseek-ai/* packages and creates the user files `$DSH_HOME/prompt-inject.md` and `$DSH_HOME/rules/`Per-model override prompt (jailbreak / 破甲)
override file `prompt-inject.md` and a per-model prompt→a jailbreak prompt that can be swapped per model; default prompt tuned for Chinese models — 小码酱
Re-apply on start with backup / restore
the @deepseek-ai/* packages that an npm upgrade just overwrote in node_modules→patches re-applied automatically on start; each target is first backed up to `<file>.dshpurge.bak` and can be undone via Restore or `/purge revert`
04Who is it for? When not to use it?
Good for
- DeepSeek Harness users (web and desktop) who want to change the harness's default copy, permission policy and tool limits
- Operators who upgrade DeepSeek Harness often and want their prompt / permission patches to survive the upgrade
Not for
- The plugin is aligned with dsh 0.1.1-rc.2. On other versions, unmatched originals stay pending or skipped, and nothing is rewritten blindly — so on a different dsh version some patches may not apply.
- The plugin rewrites files inside installed @deepseek-ai/* packages and writes user files `$DSH_HOME/prompt-inject.md` and `$DSH_HOME/rules/`. Before the first apply it backs up each target to `<file>.dshpurge.bak`; if no backup exists, only the shim lines written by this plugin are stripped on restore.
05Compatibility, maintenance and safety notes
- The plugin is aligned with dsh 0.1.1-rc.2. On other versions, unmatched originals stay pending or skipped, and nothing is rewritten blindly — so on a different dsh version some patches may not apply.
- The plugin's scope is the rendered copy, defaults and runtime logic inside local @deepseek-ai/* packages, plus override files and rule sets under the harness home. Third-party plugins outside @deepseek-ai are left alone.
- The plugin rewrites files inside installed @deepseek-ai/* packages and writes user files `$DSH_HOME/prompt-inject.md` and `$DSH_HOME/rules/`. Before the first apply it backs up each target to `<file>.dshpurge.bak`; if no backup exists, only the shim lines written by this plugin are stripped on restore.
MIT · README marks Version 1.3.0 and is aligned with dsh 0.1.1-rc.2; the npm package is not published yet (install from GitHub or `dsh plugin add .`)
06Frequently asked questions
How do I install dsh-purge into DeepSeek Harness?
Clone the repo and run `dsh plugin --profile web add .` (or `--profile default` for desktop); or add it from the Web/desktop plugin settings. Restart the harness afterwards so the Rules card appears. You can also use the GitHub master.zip URL.
What does dsh-purge actually change?
It updates the default copy, permission policy, and tool limits in your installed `@deepseek-ai/*` packages and adds a Rules card on the dsh web settings page — grouped patches with Apply / Restore, a session override editor (prompt-inject.md), and multiple rule sets. It does not patch the Harness source tree.
Does the jailbreak survive an npm upgrade of DeepSeek Harness?
Yes. After an npm upgrade overwrites node_modules, dsh-purge re-applies its patches on start. Each target file is backed up to `<file>.dshpurge.bak` before the first apply, and you can undo with Restore or `/purge revert`.
Which DeepSeek Harness version is it aligned with?
The README states it is aligned with dsh 0.1.1-rc.2. On other versions, unmatched originals stay pending or skipped, and nothing is rewritten blindly.
How do I verify the plugin is working?
After restart, the Rules card should be on the settings page (hard-refresh with Ctrl+F5 if the client bundle is cached). Run `/purge status` — it prints DSH_HOME and the patch list. Click Apply, then Restart when prompted.
07Related DSH workflows
dsh-plugin-radar
by adamplatin123
An ecosystem radar for the DeepSeek Harness (dsh) plugin community that auto-discovers thousands of candidate plugins and runs continuous k8s-level validation, publishing the results as a browsable plugin catalog.
picgo-core
by picgo
:zap:The ultimate image uploading engine. Both CLI & API supports.
dsh-infinite-gen-3
by minglink
Armor-breaking plugin for DeepSeek that stabilizes jailbreak behavior ('Infinite Gen 3') — star the repo to support.
helloagents
by hellowind777
Autonomous AI companion that doesn't just analyze problems — it keeps working until the implementation is built and verified.
08Data and sources
**dsh-purge** is a settings plugin for [DeepSeek Harness](https://www.deepseek.com/harness/):
> Aligned with **dsh 0.1.1-rc.2**. On other versions, unmatched originals stay pending or skipped. Nothing is rewritten…
This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-09-02. Found an error? Submit a correction.
Best DeepSeek Harness Plugins
Twelve plugins worth installing first — picked from the whole catalog, across every category.
