Install DSH Purge
Web and the official desktop EXE are the two maintained hosts. Install both, and Apply each separately.
Requirements
Node.js ≥18 (Windows no-flash needs Node ≥22). This release targets dsh 0.2 (official desktop 0.2.0-rc.2 / official dsh web). Older dsh builds need the matching older plugin from Releases.
1. Add the plugin to a profile
A Web install does not reach the desktop app, and a desktop install does not reach Web. Install both; Apply each separately.
Web (official dsh web)
dsh plugin --profile web add dsh-purge
Desktop (official EXE)
dsh plugin --profile desktop add dsh-purge
If this directory is already a clone, use add . instead of the package name. If the npm registry is blocked, add the archive URL with the same --profile:
# registry blocked — install from the archive dsh plugin --profile web add \ https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.tar.gz
2. Apply — three steps
Adding the plugin to a profile does not patch @deepseek-ai by itself.
Quit and reopen the host
Stop and restart
dsh web, or quit the desktop tray and reopen the app.Open the dock and Apply
On that host, click dsh-purge beside the session title, then Apply on the Clean page. It is not on the host Settings page.
Let it restart
A successful Apply restarts once so patches load. Then start a new chat — that is when the inject enters the session.
⚠ Keep hosts separate
Web controls affect Web only; desktop controls affect the desktop app only. Do not Apply one host from the other.
3. Confirm it installed
- dsh-purge sits beside the session title, with Apply on its Clean page.
/purge statusin chat printsDSH_HOMEand the patch list — the path should be the home you actually run.- Optional packages that are not installed show as skipped and do not block Apply.
/purge status DSH_HOME ~/.dsh ✓ patches applied 21 / 21
Manual install (when the command fails)
Use this when the command fails or dsh is not on PATH. Edit only the profile for the host you run.
Find the right
$DSH_HOMEA real home is named
.dsh, containsprofiles, and hasprofiles/<name>/package.jsonwith"name": "dsh-profile-web"(or-desktop).Place the plugin
Put the full tree at
$DSH_HOME/plugins/dsh-purge(folder nameddsh-purge,package.jsonnamedsh-purge).shellgit clone https://github.com/YuJunZhiXue/dsh-purge.git \ "$DSH_HOME/plugins/dsh-purge"
Edit only that profile's
package.jsonBack it up first. Add
"dsh-purge": "file:../../plugins/dsh-purge"todependencies, and append"dsh-purge"to the end ofdsh.profile.bundles. Keep every existing dependency and bundle.Install in that profile only
shellcd "$DSH_HOME/profiles/web" # or profiles/desktop pnpm install
Quit, reopen, then Apply
Same three steps as above. If the card is missing, you likely edited the other
.dsh— recheck step 1.
Uninstall
Open dsh-purge beside the session title → Clean → Uninstall. It reverts applied patches, restores the original Harness, and restarts the host. Or from a terminal / chat:
dsh-purge --uninstall # or in chat: /purge uninstall
Run DSH Purge on your own Harness
Install into your local DeepSeek Harness, Apply on the Clean page, and start measuring the host layer separately from the model.