Usage & CLI

Drive DSH Purge from the terminal or from chat. Everything is reversible and scoped to your local Harness.

Command-line

terminal
dsh-purge --status
dsh-purge --apply
dsh-purge --revert
dsh-purge --uninstall
dsh-purge --edit

Chat commands

chat
/purge  status | apply | revert | uninstall | edit | help
/rules  list | use <id> | create <id> | delete <id> | reset | help
/skills list | import <zip-or-folder> | create <id> [desc] | delete <id> | help
/rewind

Tool-style calls purge_status, purge_apply and purge_revert are also available.

CommandWhat it does
/purge statusPrint DSH_HOME and the patch list.
/purge applyBack up, replace matched files, override the shim, inject the prompt; restart once.
/purge revertCopy backups back and delete them; keep prompt-inject.md.
/rules use <id>Activate a rule set, writing prompt-inject.md.
/skills importImport a zip or folder into $DSH_HOME/skills/<id>/SKILL.md.
/rewindFork the session at the current turn, archiving the old line.

Rewind & undo

The composer's Undo once and Undo last round follow official DSH session.fork({ atSeq }): the withdrawn turn is cut off, a new session keeps the earlier context, the old session is archived, and the line returns to the input so send again re-injects. /rewind does the same.

Response-speed tuning

DSH runs Bash calls one at a time. Patch #21 restores the official 60-second foreground wait default so one slow command cannot hold up later calls. For a shorter wait in dsh web on macOS/Linux, add to $DSH_HOME/profiles/web/cordis.patch.yml:

yaml
- id: bash-sandbox
  config:
    timeoutMs: 10000

A per-call timeoutMs overrides the default; run_in_background: true returns a job id immediately. For routine tasks you can opt into Low reasoning for new sessions:

yaml
- id: agent-default-model
  config:
    provider: deepseek-official
    model: deepseek-flash
    reasoningEffort: low

Restart dsh web to load the profile. Defaults apply to newly created sessions; keep High when the task needs deeper reasoning.

Local checks

Validate the plugin's modules before Apply:

shell
node --check lib/index.js
node --check lib/core.js
node --check lib/web.js
node --check client.js
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.