mortyandtimo/dsh-purge-plus
About
DeepSeek Harness 破甲增强版 (enhanced fork): TUN fake-ip dynamic pass-through (patch #38), persona prefix variants, Node 24 compat, idempotent anchors
Other ProjectsMeasured star growth
- in 24h
- 0
- in 7 days
- +10
- in 15 days
- +24
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
dsh-purge (enhanced fork)
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.
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.
This repository is an enhancement fork. Delta over upstream v1.3.5:
- 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. - Fixes patch #22's
timeoutMsanchor, which previously appended another0on every apply. - Fixes patch #38's anchor so the helper is injected exactly once.
- Node.js 24 compatibility:
fsExists()gained a type guard, removing thefs.existsSyncdeprecation warning and blank output rows. - Matches the
prefix/personaPrefixkeys and>-/|-block scalar forms, and adds aweb-fetch-httppath mapping.
Full details in CHANGELOG.md.
Install
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
- Restart the dsh process, otherwise neither the Rules section nor the chat commands load.
- Apply patches:
/purge applyin chat, or Apply in Settings → Rules, ordsh-purge --apply. - Verify:
/purge statusprintsDSH_HOMEand the patch list; the Rules card appears in Settings (Ctrl+F5 if cached). #20/#21needdsh-web-fetch-http, and#28/#29needdsh-liangshen. Skipping them when those plugins are absent is normal — do not retry.
Usage
# CLI
dsh-purge --status | --apply | --revert | --edit
# Chat
/purge status | apply | revert | edit | help
/rules list | use <id> | create <id> | delete <id> | reset
# Model tools
purge_status purge_apply purge_revert
Applied patches load only after a restart. The Settings restart button is the only thing that restarts; nothing restarts automatically.
Revert and uninstall
- Every target file is backed up as
<file>.dshpurge.bakbefore it is modified; Revert or/purge revertrestores from the backup and deletes it. Re-applying is idempotent. prompt-inject.mdis a user file and survives a revert.- Uninstall:
# Revert in Settings first, then
dsh plugin --profile web remove dsh-purge
dsh plugin --profile default remove dsh-purge
Notes
- 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. - No hardcoded drive letters: locations resolve through
$DSH_HOME/DSH_BASE→ a.dshbeside the dsh launcher → the system default~/.dsh. When nothing matches it asks forDSH_BASErather than guessing. - Third-party plugins are out of scope (the Windows no-flash work is a runtime patch; their repositories are not touched).
- After an upgrade, unmatched originals report
pattern_not_foundor stay pending — nothing is rewritten blindly. - License: MIT, see LICENSE.
Local checks
node --check lib/index.js
node --check lib/core.js
node --check client.js
Explore related projects
Loading…