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)

shell
dsh plugin --profile web add dsh-purge

Desktop (official EXE)

shell
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:

shell
# 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.

  1. Quit and reopen the host

    Stop and restart dsh web, or quit the desktop tray and reopen the app.

  2. 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.

  3. 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 status in chat prints DSH_HOME and 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.
chat
/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.

  1. Find the right $DSH_HOME

    A real home is named .dsh, contains profiles, and has profiles/<name>/package.json with "name": "dsh-profile-web" (or -desktop).

  2. Place the plugin

    Put the full tree at $DSH_HOME/plugins/dsh-purge (folder named dsh-purge, package.json name dsh-purge).

    shell
    git clone https://github.com/YuJunZhiXue/dsh-purge.git \
      "$DSH_HOME/plugins/dsh-purge"
  3. Edit only that profile's package.json

    Back it up first. Add "dsh-purge": "file:../../plugins/dsh-purge" to dependencies, and append "dsh-purge" to the end of dsh.profile.bundles. Keep every existing dependency and bundle.

  4. Install in that profile only

    shell
    cd "$DSH_HOME/profiles/web"   # or profiles/desktop
    pnpm install
  5. 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:

shell
dsh-purge --uninstall
# or in chat: /purge uninstall
Get started

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.