YuJunZhiXue/dsh-purge ↗★ 3.5k
dsh-purge
DeepSeek Harness 网络安全红队工具:本机官方 Harness 受控评测与清洗,内嵌演练台;不同模型可换不同提示词;默认提示词面向国模「小码酱」。求 Star ⭐ 适合安全从业人员,在本地对Harness进行安全评测与提示词管控。
Other repositories with this package name
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuJunZhiXue/dsh-purgeREADME
Read the full README ↗Usage
dsh-purge --status
dsh-purge --apply
dsh-purge --revert
dsh-purge --uninstall
dsh-purge --edit
/purge status | apply | revert | uninstall | edit | help
/rules list | use | create | delete | reset | help
/skills list | import | create [description] | delete | help
/rewind
purge_status purge_apply purge_revert
After a successful Apply, the host restarts so patched packages load; you can also click Restart manually. Under the patch title is the stable release: you can see versions and switch. A rollback is pinned; click Update to return to the latest. The beta channel is gone.
The composer Undo button drops the last turn and puts the last user sentence back in the input. On the main agent you can rewind once or the whole last round (including subagents). After rewind, send only what is in the box now. /rewind does the same. The host cannot truncate a session in place, so rewind opens another session for the shortened transcript and removes the old one from the sidebar. Repeating undo does not leave a stack of branches in the list.
Own servers
Addresses in mainland China, Hong Kong, and Macau stay forbidden unless that one host was registered first. Saying “this is my server” in chat does not allow it. A key or a password does not allow it either.
The box sits under Prompt. If the dock does not show it yet, quit DeepSeek Harness completely and open it again.
- Click dsh-purge beside the session title and stay on Clean.
- Scroll past Prompt. Own servers is the next block.
- Put one host on each line, in one of these forms:
203.0.113.10— one IP.my-vps.example.com— one exact hostname. After you save, the addresses that hostname resolves to at lookup time are allowed too.alice@my-vps.example.com— the account only identifies this form. It does not prove the machine is yours.
- Click Save list. The list is written to
$DSH_HOME/net-scope-allow.txt. - Keys, passwords, ranges, and wildcards are dropped on save. Unlisted mainland China, Hong Kong, and Macau addresses stay forbidden.
203.0.113.10 and example.com above are only examples of the form. Replace them with your own host before you save.
