dsh-purge-safe: A DSH plugin that separates host policy from model refusal in DeepSeek Harness
callmegulab/dsh-purge-safe
A red-team prompt-swapping DSH plugin that adds a dock beside the session title to apply, restore, and switch per-model prompts on your own DeepSeek Harness install.
dsh-purge-safe is a DSH plugin that runs against the official DeepSeek Harness already installed on your machine for controlled red-team evaluation. It targets a common misjudgment: Harness rewrites prompts, approval gates, sandbox policy, and session migration at runtime, so asking only whether the model answers can mistake a host-layer block for a model refusal. The plugin separates those two layers so you can see which default policy is too tight, and it swaps prompts per model, with a default prompt aimed at the domestic model 鸢码 plus a bundled skill library and knowledge base. A button beside the session title opens the right dock, where Clean handles apply, restore, and rule-set editing, and Drill runs after authorization.
How to Install
dsh plugin --profile web add github:callmegulab/dsh-purge-safeReplace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.
- Category
- Skills & Agents
- Platform
- DSH Plugin
- Author
- callmegulab
- Distribution
- Plugin
dsh-purge-safe Key Features
dsh-purge-safe Repo Summary
What Does It Do?
It is a DSH plugin for DeepSeek Harness that swaps prompts per model and separates host-layer policy from model refusal on an already-installed official DSH. It solves the problem of treating a host-layer block as a model refusal: Harness rewrites prompts, approval gates, sandbox policy, and session migration at runtime, so asking only whether the model will answer misses the real cause. The plugin exposes both layers on your own install for controlled evaluation, and ships a default prompt aimed at the domestic model 鸢码 along with a skill library and knowledge base.
Core Features
- Dock panel: a button beside the session title opens a right-side dock with two pages, Clean and Drill.
- Clean page: grouped patch status plus Apply, Restore, Uninstall, a prompt editor, and multiple rule sets.
- Drill page: after authorization, runs drills against assets and the local environment, with the skill library and knowledge base included in the stable release.
- Host policy handling: manages default copy, permission policy, and tool limits while keeping official capabilities and avoiding a second invented identity.
- Startup check and reapply: verifies and reapplies on every start, so an npm overwrite of node_modules needs no hand-editing.
- Path discovery: checks $DSH_HOME, a .dsh folder next to the dsh launcher, then ~/.dsh, with no hardcoded drive letters and no patching of the Harness source tree.
How to Use This Plugin?
After enabling it in DSH, click the button beside the session title to open the right dock and start on the Clean page to review grouped patch status. The Apply action on the Clean page is what actually writes changes; identity comes from the encrypted prompt shipped inside the plugin, the text the prompt box shows by default, and the host prompt file is not read. To switch models, replace the matching rule set in the prompt editor; to revert, use Restore or Uninstall on the same page. The Drill page requires authorization first, then runs against assets and the local environment. The plugin only touches official packages and local config on your machine, is not a public scanner, and ships no malware or attack payloads.
How to Troubleshoot This Plugin?
If changes stop taking effect after a start, npm has usually overwritten node_modules; the plugin checks and reapplies on the next start, so no manual file editing is needed. If it cannot locate the DSH install, confirm per the official instructions whether $DSH_HOME, the .dsh folder beside the launcher, or .dsh in the user directory exists. If the model still does not respond, determine whether host policy or the model itself is blocking, then adjust the matching rule set on the Clean page.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: callmegulab/dsh-purge-safe. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
