⚔ Red-team tooling for DeepSeek Harness

DSH Purge — see what the harness does, not just what the model says

DSH Purge (dsh-purge) is a red-team plugin for the official DeepSeek Harness running on your own machine. A harness does plenty before the model ever sees your prompt: it rewrites prompts, gates approvals, sandboxes tools. DSH Purge peels that host layer back, so when something gets blocked you can tell whether the policy did it or the model did.

21runtime patches
v1.1.71dsh 0.2 line
MITopen source
DSH Purge dock showing Clean and Drill pages with the Apply control, beside a terminal running dsh-purge --status

Local · authorized · reversible · host-layer only

Two layers, separated

A harness does more than forward your prompt. DSH Purge isolates host-layer policy from the model, so you can see whether a block came from the policy or from the model itself.

Clean page

Grouped patch status with Apply, Restore and Uninstall, a prompt editor, and multiple rule sets — all from a dock beside the session title.

Drill console

After an authorization gate: assets, skills and local environment for an exercise you are entitled to run — never public or third-party targets.

Fully reversible

Every target is backed up to .dshpurge.bak. Restore copies originals back; Uninstall reverts and removes the plugin.

Architecture diagram: rule library, local rules and workspace policy feed the dsh-purge engine, which patches the host layer while the model layer is measured separately
Why it exists

A host-layer block is not a model refusal

Ask only "will the model answer?" and you end up blaming the model for calls the harness made. The DeepSeek Harness makes a lot of them at runtime: rewriting prompts, gating approvals, enforcing a sandbox, migrating sessions, all of it wrapped around the model.

DSH Purge touches only the local official @deepseek-ai packages on your machine, so you can look at each layer on its own terms — which default policy is too strict, where a refusal really starts, and how the harness holds up during a red-team exercise you're authorized to run.

  • Patches only local official Harness packages and local config
  • No public scanner, no attack kit for third-party sites
  • Keeps official capabilities — no second invented identity
See how it works →

⚠ Authorized, local use only

DSH Purge is for red-team research and robustness evaluation on an official Harness you are entitled to administer. Do not run it against targets without the owner's lawful written authorization, against public online systems, or against production workloads. See the responsible-use policy.

Start here

See the harness for what it is

Install DSH Purge on the Harness you administer, Apply on the Clean page, and start telling the two layers apart.