Features
A dock beside the session title, two pages — Clean and Drill — and everything needed to apply, measure and revert host-layer policy.
Clean page
Grouped patch status with a live count of what actually applied. Apply, Restore and Uninstall, plus the prompt editor and rule-set list with Enable/Delete on each row.
Drill console
Built into the stable release. On first open you read the notice, wait out a countdown, scroll to the end and check three boxes — then assets, skills and environment unlock for an authorized exercise.
Prompt inject
Edit prompt-inject.md as the session override. Identity comes from the encrypted prompt shipped in the plugin — the text the prompt box shows by default.
Rule sets
Keep multiple AGENTS.md / CLAUDE.md rule sets. Enable writes under $DSH_HOME; Delete removes the row. Activate a set to write prompt-inject.md.
Skill import
Import a zip or folder into the host's official $DSH_HOME/skills/<id>/SKILL.md. DSH owns match, load and /name. Skills stay out of the inject section.
Own servers
One IP or exact hostname per line, saved to $DSH_HOME/net-scope-allow.txt. Keys, passwords, ranges and wildcards are dropped on save.
Reapply on start
After npm overwrites node_modules, DSH Purge checks and reapplies on start. You never hand-edit patched files.
CLI & chat commands
dsh-purge --status/apply/revert and the /purge, /rules, /skills and /rewind commands. See Usage.
Light / Ink themes
Switch the dock between Light and Ink. Patches are grouped; the count only includes items that actually applied.
- Host policy — default copy, permission policy and tool limits
- Prompt resolution — inject file → local md → encrypted default
- Workspace baseline — strict / fallback / always
- Patch #21 — restores the 60s foreground wait default
- Backups — every target copied to
.dshpurge.bak - Idempotent Apply — safe to run again; skips what's in place
It touches only what it must
DSH Purge patches the rendered copy, defaults and runtime logic inside local @deepseek-ai/* packages, plus override files and rule sets under the harness home. It does not patch the Harness source tree, and official npm-global is left alone.
Sealed host-commands / runtime-commands are scrubbed, never injected. After an upgrade, unmatched originals show as skipped and are left unchanged.
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.