DeepSeek Harness
The DeepSeek Harness (dsh) is the agent host DSH Purge evaluates — the layer that sits between you and the model.
DSH Purge targets the DeepSeek Harness, the official agent host that runs models, tools and sessions. The harness is where a request becomes an agentic run: it assembles the system prompt, decides which approvals to ask for, enforces a sandbox, bounds tool execution, and migrates sessions when you rewind. Understanding those layers is the whole point of dsh purge.
Two supported hosts
Official Web (dsh web, profile web) and the official desktop EXE (DeepSeek Harness 0.2.0-rc.2, profile desktop). Install and Apply each separately.
Runtime layers
Prompt rewriting, approval gates, sandbox policy, tool limits and session migration — each applied around the model at runtime.
The runtime layers at a glance
| Layer | What the harness does |
|---|---|
| Prompt rewriting | Builds and edits the system prompt per turn, including workspace baseline sections. |
| Approval gates | Decides which tool calls pause for user approval. |
| Sandbox policy | Constrains filesystem and command execution. |
| Tool limits | Caps things like the foreground wait before a command is promoted to a background job. |
| Session migration | Forks sessions on rewind/undo via session.fork({ atSeq }), archiving the old line. |
Where the harness home lives
DSH Purge never hard-codes a drive letter. It resolves the harness home ($DSH_HOME) in order:
DSH_HOME/DSH_BASEAn explicit environment variable always wins.
.dshbeside the launcherA portable install on any drive.
npm global
npm prefix -g/npm root -g, then nested@deepseek-aipackages.~/.dshThe default home in the user profile.
Web and the desktop app each use their own home. A real home is named .dsh (the official EXE sometimes uses dsh-home), contains profiles, and has at least one profiles/<name>/package.json.
Compatibility
The current plugin line targets dsh 0.2 only (use 1.1.40+). For dsh 0.1.7, pick plugin 1.1.39 or older from Releases. Unmatched patches stay pending or skipped — nothing is rewritten blindly.
Note: the DeepSeek Harness is developed by DeepSeek. DSH Purge is an independent project and is not affiliated with or endorsed by DeepSeek.
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.