Skip to content
Back to search

dsh-purge-plus

DeepSeek Harness 破甲增强版 (enhanced fork): TUN fake-ip dynamic pass-through (patch #38), persona prefix variants, Node 24 compat, idempotent anchors

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked yesterday
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/mortyandtimo--dsh-purge-plus/badge.svg)](/listings/mortyandtimo--dsh-purge-plus)

HTML

<a href="/listings/mortyandtimo--dsh-purge-plus"><img src="/api/listings/mortyandtimo--dsh-purge-plus/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

After installing you must **fully quit and restart** DeepSeek Harness before the Rules section appears; the `@deepseek-ai` packages are only changed once you press Apply.

# Web profile
dsh plugin --profile web add github:mortyandtimo/dsh-purge-plus

# Desktop profile
dsh plugin --profile default add github:mortyandtimo/dsh-purge-plus

From a local checkout instead:

git clone https://github.com/mortyandtimo/dsh-purge-plus.git
cd dsh-purge-plus
dsh plugin --profile web add .

Or hand this whole README to a local coding agent and let it install, apply, and restart on its own.

After installing

1. Restart the dsh process, otherwise neither the Rules section nor the chat commands load. 2. Apply patches: `/purge apply` in chat, or Apply in Settings → Rules, or `dsh-purge --apply`. 3. Verify: `/purge status` prints `DSH_HOME` and the patch list; the Rules card appears in Settings (Ctrl+F5 if cached). 4. `#20` / `#21` need `dsh-web-fetch-http`, and `#28` / `#29` need `dsh-liangshen`. Skipping them when those plugins are absent is normal — do not retry.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 92 lines
  1. <p align="center">
  2. <img src="docs/banner.svg" alt="dsh-purge" width="640">
  3. </p>
  4. # dsh-purge (enhanced fork)
  5. A DeepSeek Harness jailbreak/settings plugin. It rewrites the default identity, permission policy, and tool limits inside the locally installed `@deepseek-ai/*` packages, and adds a **Rules** section in Settings for inspecting patches in groups, applying/reverting them, and keeping multiple `AGENTS.md` / `CLAUDE.md` rule sets. It re-checks and re-applies on startup, so an `npm` upgrade that overwrites `node_modules` needs no manual re-run.
  6. Aligned with **dsh 0.1.2-rc.1**, Node.js ≥18. On other versions, unmatched originals show as pending or skipped; nothing is rewritten blindly.
  7. This repository is an enhancement fork. Delta over upstream `v1.3.5`:
  8. - **New patch #38** — dynamic TUN fake-ip pass-through. When Clash / mihomo takes over DNS in fake-ip mode, upstream rejects every hostname as an SSRF target (`resolves to a non-public IP address`); this patch admits pool addresses behind a sentry probe and restores rejection as soon as the tunnel goes away, with no hardcoded allowlist.
  9. - Fixes patch #22's `timeoutMs` anchor, which previously appended another `0` on every apply.
  10. - Fixes patch #38's anchor so the helper is injected exactly once.
  11. - Node.js 24 compatibility: `fsExists()` gained a type guard, removing the `fs.existsSync` deprecation warning and blank output rows.
  12. - Matches the `prefix` / `personaPrefix` keys and `>-` / `|-` block scalar forms, and adds a `web-fetch-http` path mapping.
  13. Full details in [CHANGELOG.md](CHANGELOG.md).
  14. ## Install
  15. After installing you must **fully quit and restart** DeepSeek Harness before the Rules section appears; the `@deepseek-ai` packages are only changed once you press Apply.
  16. ```sh
  17. # Web profile
  18. dsh plugin --profile web add github:mortyandtimo/dsh-purge-plus
  19. # Desktop profile
  20. dsh plugin --profile default add github:mortyandtimo/dsh-purge-plus
  21. ```
  22. From a local checkout instead:
  23. ```sh
  24. git clone https://github.com/mortyandtimo/dsh-purge-plus.git
  25. cd dsh-purge-plus
  26. dsh plugin --profile web add .
  27. ```
  28. Or hand this whole README to a local coding agent and let it install, apply, and restart on its own.
  29. ### After installing
  30. 1. Restart the dsh process, otherwise neither the Rules section nor the chat commands load.
  31. 2. Apply patches: `/purge apply` in chat, or Apply in Settings → Rules, or `dsh-purge --apply`.
  32. 3. Verify: `/purge status` prints `DSH_HOME` and the patch list; the Rules card appears in Settings (Ctrl+F5 if cached).
  33. 4. `#20` / `#21` need `dsh-web-fetch-http`, and `#28` / `#29` need `dsh-liangshen`. Skipping them when those plugins are absent is normal — do not retry.
  34. ## Usage
  35. ```sh
  36. # CLI
  37. dsh-purge --status | --apply | --revert | --edit
  38. # Chat
  39. /purge status | apply | revert | edit | help
  40. /rules list | use <id> | create <id> | delete <id> | reset
  41. # Model tools
  42. purge_status purge_apply purge_revert
  43. ```
  44. Applied patches load only after a restart. The Settings restart button is the only thing that restarts; nothing restarts automatically.
  45. ## Revert and uninstall
  46. - Every target file is backed up as `<file>.dshpurge.bak` before it is modified; Revert or `/purge revert` restores from the backup and deletes it. Re-applying is idempotent.
  47. - `prompt-inject.md` is a user file and survives a revert.
  48. - Uninstall:
  49. ```sh
  50. # Revert in Settings first, then
  51. dsh plugin --profile web remove dsh-purge
  52. dsh plugin --profile default remove dsh-purge
  53. ```
  54. ## Notes
  55. - Changes are limited to rendering copy, default policy, and execution logic inside the local `@deepseek-ai/*` packages, plus the override file and rule sets under `$DSH_HOME`. The Harness source repository is never modified.
  56. - No hardcoded drive letters: locations resolve through `$DSH_HOME` / `DSH_BASE` → a `.dsh` beside the dsh launcher → the system default `~/.dsh`. When nothing matches it asks for `DSH_BASE` rather than guessing.
  57. - Third-party plugins are out of scope (the Windows no-flash work is a runtime patch; their repositories are not touched).
  58. - After an upgrade, unmatched originals report `pattern_not_found` or stay pending — nothing is rewritten blindly.
  59. - License: MIT, see [LICENSE](LICENSE).
  60. ## Local checks
  61. ```sh
  62. node --check lib/index.js
  63. node --check lib/core.js
  64. node --check client.js
  65. ```

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.