YuJunZhiXue/dsh-purge ↗★ 3.5k
dsh-purge
提供网络安全红队受控评测、清洗与演练台 适合安全从业人员,在本地对Harness进行安全评测与提示词管控。
同名包的其他仓库
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuJunZhiXue/dsh-purge说明文档
阅读完整 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.
