dsh purge install: first run, rules and verification
Installing dsh purge is not "install and use": put it in the profile, run Apply, restart, and verify state. The name causes confusion; it is not a cache-cleaning tool.
Clarify first: dsh-purge is not a cleaner
dsh-purge is a red-team assessment plugin, not a cache cleaner or uninstaller. It separates model refusal from host-level interception and provides a panel, rules, and rollback (source).
The word purge refers to policy-level handling, not deleting files. If you are looking for cache cleanup, this is the wrong plugin; uninstall and cleanup are different tasks.
Purpose determines installation. Assessment plugins write host policy, so they must go into the profile you actually use and must run Apply; ordinary plugins only need a restart.
Choose a version: source first, then variants
Several same-name or near-name versions exist, such as dsh-purge, dsh-purge-flash, and dsh-purge-community. Similar names do not mean similar behavior.
- Check owner and repository. Same-name plugins from different authors differ in implementation and maintenance.
- Read the plugin description. It states the scenario, profile requirements, and risk boundaries; skip plugins without one.
- Check the last update. A long-dormant version may not support the current core.
- Do not infer from the name. flash is not necessarily faster, and community is not necessarily more complete.
Pick one and do not install several. Several plugins writing policy at once create override-order problems that are hard to diagnose.
Record the version. Write down package name and version before installing; rollback and comparison depend on it.
Three install steps: profile first
The install action is one command; the hard part is the target.
- Confirm the profile: web for the web UI, the desktop profile for the desktop app; dsh plugin --profile web list shows the current state.
- Install: use the Hub or run dsh plugin --profile web add <package>, then confirm the package is listed.
- Install on both clients if needed: web and desktop are separate profiles; install in each.
The typical symptom of a wrong profile is "the panel exists on A but not B." The plugin is not broken; it is in another environment.
Do not Apply immediately after installation. Confirm the package and version first; applying the wrong version creates an extra rollback.
First run: the Apply order
Apply writes rules into the host and triggers a restart; wrong order produces "installed but inactive."
- Open the panel and confirm the state is Installed, not Applied.
- Read the current rules and confirm the assessment scope and authorization boundary.
- Run Apply and wait for the write and restart prompt.
- After restart, open a new session instead of reusing an old one.
- Return to the panel and confirm the state is Active.
A new session is required. Injection happens during session initialization; an old session does not reload and will mislead you.
Do not change rules immediately after Apply. Run a baseline first, confirm behavior, then adjust; otherwise the change and the original issue blur together.
Verify: four states
dsh-purge has more than installed and not installed.
| State | Meaning | Next action |
|---|---|---|
| Installed | In the profile, policy not written | Run Apply |
| Applied | Policy written, waiting for restart | Restart and open a new session |
| Active | Policy loaded in the current session | Start the assessment |
| Pending re-apply | Upgrade or file overwrite | Re-apply; do not edit files |
Installed and Active are separated by Apply and a restart. Seeing the panel is the most common false positive.
Pending re-apply is not a failure. After an upgrade overwrites node_modules, the plugin self-checks during startup; if recovery fails, Apply from the panel rather than editing files.
Common install failures
Four failures cover most install-stage problems.
- Package not listed. Wrong profile, wrong package name, or interrupted install; confirm with list.
- Panel present but state frozen. Apply was not run or was blocked by permissions; read the panel and system logs.
- Apply succeeds but behavior unchanged. No restart or no new session; complete both instead of re-applying.
- State abnormal after upgrade. Files were overwritten and the state is pending re-apply; wait for self-check or re-apply.
The common entry point is panel state plus logs. Read state, then the write and restart records, then suspect the version.
Rollback point: prepare before installing
For assessment plugins, rollback means Restore to official defaults, not uninstall and reinstall.
- Record the pre-install state: profile, plugin list, and core version in one note.
- Confirm Restore is available: seeing the entry means the official default copy is ready.
- Rollback order: Restore, restart, open a new session, verify.
- Recheck after rollback: the plugin can stay while policy returns to default; confirm behavior before deciding to uninstall.
The goal is restoring behavior, not removing traces. Uninstalling the plugin leaves the policy and the issue; Restore targets policy.
Next steps
Confirm purpose, choose a version, follow the Apply order. For daily Apply and Restore usage, read How to use dsh-purge. For rulesets, read Managing dsh-purge rulesets. To separate cleanup from uninstall, read What dsh purge really clears.
Sources: dsh-purge plugin page (YuJunZhiXue), dsh-purge plugin page (mmparko), DeepSeek Harness docs - Plugins and lifecycle, dsh CLI README
FAQ
dsh purge is not a cache-cleaning command; dsh-purge is a red-team assessment plugin that separates model refusal from host interception. It neither cleans cache nor uninstalls anything, which is why no cleaning button appears.
Installing dsh purge only places the plugin in a profile, while Apply writes rules and policy into the host and triggers a restart. Without Apply, the panel exists but behavior does not change.
Desktop and web use different profiles, so dsh purge must be installed and applied in each. One installation will not appear in the other profile.
A pending re-apply state after upgrading dsh purge usually needs no file edits. The plugin self-checks at startup and retries; if the state does not recover, re-apply from the panel instead of overwriting files.
Related Terms
- dsh-purge
- dsh-purge is a community red-team assessment plugin for DeepSeek Harness that separates model refusal from host-level interception and provides Apply, Restore, and a state panel.— dsh-purge plugin page
- Apply
- Apply writes dsh-purge rules and policy into the host and triggers a restart; it must be run after installation or behavior will not change.— dsh-purge plugin page
- Restore
- Restore returns host policy to the official default copy, used to roll back assessment changes; it is not the same as uninstalling the plugin.— dsh-purge plugin page
- profile
- A profile is a named assembly environment in DeepSeek Harness; web and desktop use different profiles, so plugins and patches must be installed and applied separately.— DeepSeek Harness docs
Sources
- dsh-purge plugin page (YuJunZhiXue)· dsh-plugin.org
- dsh-purge plugin page (mmparko)· dsh-plugin.org
- DeepSeek Harness docs - Plugins and lifecycle· deepseek-harness
- dsh CLI README· deepseek-ai