dsh-purge
支持所有模型破甲并可自定义不同提示词 适合需要绕过模型安全限制、针对特定国模进行深度定制对话的用户。
同名包的其他仓库
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chs-1108/dsh-purge说明文档
阅读完整 README ↗Usage
Chat commands
/purge status | apply | revert | uninstall | edit | help
/rules list | use | create | delete | reset | help
/skills list | import | create [description] | delete | help
/rewind
CLI
dsh-purge --status # state, DSH_HOME, per-patch table
dsh-purge --apply # apply every patch (prompt + code + shim + override)
dsh-purge --revert # restore originals
dsh-purge --uninstall # revert if needed, then remove the plugin
dsh-purge --edit # open prompt-inject.md in $EDITOR
dsh-purge --help
Tools exposed to the model
| Tool | Purpose |
|---|---|
purge_status | Read patch state, DSH_HOME, injection source |
purge_apply | Apply all patches |
purge_revert | Restore originals |
Where things live in the dock
| Area | What it shows |
|---|---|
| dsh-purge | Button beside the session title; opens or collapses the dock |
| Clean | Patches, prompt editor, rule sets, skills, own servers |
| Drill | Assets, skills, environment — says Unauthorized until the gate is passed |
| Patches | Grouped status plus Apply / Restore / Uninstall |
| Prompt | Edits prompt-inject.md, the per-session override |
| Own servers | One IP or exact hostname per line → $DSH_HOME/net-scope-allow.txt |
| Rule sets | Multiple AGENTS.md / CLAUDE.md; Enable writes, Delete removes |
| Skills | Import a zip/folder into this host's $DSH_HOME/skills//SKILL.md |
Configuration
Plugin config lives in the profile's cordis.patch.yml (or the copy bundled in cordis.patch.yml at the repo root). Defaults:
- insert:
- id: dsh-purge
name: 'dsh-purge'
inject: [systemPrompt, tools]
config:
enabled: true
autoApplyOnStart: false # apply patches when the host boots
autoUpdateOnStart: false # check this repo for a newer version on boot
autoRevertOnMissing: false # revert when the host files disappear
injectOnce: false # inject only on the first turn
stripMnemon: true # drop mnemon sections from the assembly
verbose: false # verbose logging to the console
postPrompt: "" # extra section appended to the prompt
postPromptOrder: 5100
autoRetry: true # retry a failed turn
retryMax: 3
autoContinue: false # auto-send a continue message
continueMax: 3
continueText: "继续"
capabilityProtocol: true # teach the model to find skills / MCP itself
hooksDenyBypass: true # neutralise hooks that block tool calls
| Key | Default | Notes |
|---|---|---|
enabled | true | Master switch; false leaves the host untouched |
autoApplyOnStart | false | Turn on only if you want boot-time patching |
autoUpdateOnStart | false | Contacts this repo to compare versions |
stripMnemon | true | Removes third-party mnemon sections from the assembly |
capabilityProtocol | true | Adds the skill / MCP discovery section |
hooksDenyBypass | true | Stops third-party hooks from silently denying tool calls |
Diagnostics are off by default. Set DSH_PURGE_DEBUG=1 (or verbose: true) to write a log to %TEMP%/.dsh-cache.log ($TMPDIR/.dsh-cache.log).