What is DSH Purge?

DSH Purge — the tool most people simply call dsh purge — is a cybersecurity red-team plugin for the official DeepSeek Harness already installed on your machine.

Modern AI harnesses are not a thin wrapper around a model. The DeepSeek Harness rewrites prompts, enforces approval gates, applies a sandbox policy, caps tool execution, and migrates sessions — all at runtime. When you evaluate an AI system's safety and robustness, those host-layer controls sit between you and the model.

DSH Purge separates those two layers on your own install. It patches only the local official @deepseek-ai packages and local config so you can study the host layer and the model layer independently — for controlled evaluation, and for seeing which default policy is too tight.

In one sentence

dsh-purge is a local, reversible, open-source red-team plugin that makes the DeepSeek Harness's own policy layer observable and testable on a Harness you administer.

What it gives you

You getWhat it does
dsh-purge dockA button beside the session title opens a right-hand dock with two pages: Clean and Drill.
CleanGrouped patch status, Apply / Restore / Uninstall, a prompt editor, and multiple rule sets.
DrillAfter an authorization gate: assets, skills and the local environment — for a host you manage, an offline target, or a written authorized exercise.
Host policyDefault copy, permission policy and tool limits. Official capabilities stay; no second invented identity.
On startChecks and reapplies after npm overwrites node_modules — you never hand-edit patched files.

What it is not

  • Not a public scanner. It does not scan, probe or send traffic to third-party hosts or the public internet.
  • Not an attack kit. The repository ships no malware, unauthorized-exploit scripts, or payloads aimed at outside systems.
  • Not affiliated with DeepSeek. "Official" refers only to the official Harness package being the evaluation target — not any endorsement.
  • Not for remote targets. Apply, inject, revert and uninstall stay in local files and local processes on a Harness you administer.

Who it's for

Security researchers, red teams and AI-safety engineers who need to tell a host-layer policy decision apart from a model decision while evaluating a DeepSeek Harness install they own or are authorized to administer. If you have ever asked "is this refusal the model, or the harness?", dsh purge is built to answer exactly that.

cybersecurityred teamAI harnesslocal onlyreversibleMIT
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.