Skip to content

DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐️ 如要二开,请查看署名要求部分

JavaScript

Rename public name from dsh-purge to dsh-purge-safety.

AspenYoYo20b116b37e90
diff --git a/README.md b/README.md
index de6c3b1..6e0352b 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
<p align="center">
- <img src="docs/banner.svg" alt="dsh-purge" width="720">
+ <img src="docs/banner.svg" alt="dsh-purge-safety" width="720">
</p>
-<h1 align="center">⚔️ DeepSeek Harness cybersecurity red-team tool (dsh-purge)</h1>
+<h1 align="center">⚔️ DeepSeek Harness cybersecurity red-team tool (dsh-purge-safety)</h1>
<p align="center"><strong>Version 1.1.71</strong></p>
@@ -36,19 +36,19 @@
## What this is
-**dsh-purge** is a cybersecurity red-team plugin for the official [DeepSeek Harness](https://www.deepseek.com/harness/) already installed on your machine. Official **Web** (`dsh web`) and the official **desktop EXE** are both supported. Install and Apply them separately.
+**dsh-purge-safety** is a cybersecurity red-team plugin for the official [DeepSeek Harness](https://www.deepseek.com/harness/) already installed on your machine. Official **Web** (`dsh web`) and the official **desktop EXE** are both supported. Install and Apply them separately.
Harness does more than forward a prompt. It rewrites prompts, approval gates, sandbox policy, and session migration at runtime. Asking only “will the model answer” treats a host-layer block as a model refusal. This plugin separates those two layers on your own install, for controlled evaluation and for seeing which default policy is too tight.
| You get | What it does |
|---|---|
-| **dsh-purge dock** | A button beside the session title opens the right dock. Two pages: Clean and Drill |
+| **dsh-purge-safety dock** | A button beside the session title opens the right dock. Two pages: Clean and Drill |
| **Clean** | Grouped patch status, Apply / Restore / Uninstall, prompt editor, multiple rule sets |
| **Drill** | Built into the stable release. After authorization: assets, skills, and the local environment. Only for a host you manage, an offline target, or a written authorized exercise |
| **Host policy** | Default copy, permission policy, and tool limits. Official capabilities stay. No second invented identity |
| **On start** | Checks and reapplies. After npm overwrites `node_modules`, you do not hand-edit files |
-No hardcoded drive letters. It looks at `$DSH_HOME`, `.dsh` next to the dsh launcher, then `~/.dsh`. It does not patch the Harness source tree. **Apply** on the **Clean** page of **dsh-purge** is what writes the changes. Identity comes from the encrypted prompt shipped in the plugin, the text the prompt box shows by default. The host prompt file is not read.
+No hardcoded drive letters. It looks at `$DSH_HOME`, `.dsh` next to the dsh launcher, then `~/.dsh`. It does not patch the Harness source tree. **Apply** on the **Clean** page of **dsh-purge-safety** is what writes the changes. Identity comes from the encrypted prompt shipped in the plugin, the text the prompt box shows by default. The host prompt file is not read.
It only touches the official `@deepseek-ai` packages and local config on the user's machine. It is not a public scanner and not an attack kit for third-party sites. The repo does not ship malware, unauthorized-exploit scripts, or payloads aimed at the public internet.
@@ -119,15 +119,15 @@ Web and the official desktop EXE are the two maintained hosts. Install and patch
| What you run | Profile | Command |
|---|---|---|
-| Official `dsh web` | `web` | `dsh plugin --profile web add dsh-purge` |
-| Official desktop EXE | `desktop` | `dsh plugin --profile desktop add dsh-purge` |
+| Official `dsh web` | `web` | `dsh plugin --profile web add dsh-purge-safety` |
+| Official desktop EXE | `desktop` | `dsh plugin --profile desktop add dsh-purge-safety` |
If this directory is already a clone, use `add .` instead of the package name. If `dsh` is not on PATH, use [Manual install](#manual). Registry blocked: add `https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz` with the same `--profile`.
For the desktop client you can also click the button (`dsh://` deep link):
<p align="center">
- <a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.71&repo=AspenYoYo%2Fdsh-purge-safety&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fgithub.com%2FAspenYoYo%2Fdsh-purge-safety%2Farchive%2Frefs%2Fheads%2Fmain.tar.gz"><strong>Install in desktop client</strong></a>
+ <a href="dsh://plugin/install?id=dsh-purge-safety&name=dsh-purge-safety&version=1.1.71&repo=AspenYoYo%2Fdsh-purge-safety&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fgithub.com%2FAspenYoYo%2Fdsh-purge-safety%2Farchive%2Frefs%2Fheads%2Fmain.tar.gz"><strong>Install in desktop client</strong></a>
</p>
### After the command: three steps
@@ -135,14 +135,14 @@ For the desktop client you can also click the button (`dsh://` deep link):
Adding the plugin to a profile does **not** patch `@deepseek-ai` by itself.
1. **Quit and reopen** the host you installed into — stop and restart `dsh web`, or quit the desktop tray and reopen that app.
-2. On **that host**, click **dsh-purge** beside the session title, then **Apply** on the **Clean** page. It is not on the host Settings page.
+2. On **that host**, click **dsh-purge-safety** beside the session title, then **Apply** on the **Clean** page. It is not on the host Settings page.
3. A successful **Apply** restarts once so patches load. It does not restart if it did not finish.
Web controls affect Web only; desktop controls affect the desktop app only. Do not Apply one host from the other.
### How to tell it installed
-- **dsh-purge** sits beside the session title, with **Apply** on its Clean page.
+- **dsh-purge-safety** sits beside the session title, with **Apply** on its Clean page.
- `/purge status` in chat prints `DSH_HOME` and the patch list — the path should be the home you actually run.
- Optional packages that are not installed (liangshen) show as skipped and do not block Apply.
@@ -155,19 +155,19 @@ Paste the block below to a local assistant. It should only run the install comma
<!-- AI-AGENT-START -->
-Install the DeepSeek Harness plugin `dsh-purge` into the Web profile only. Do not scan the whole disk, do not read or edit other files, do not apply settings, and do not restart the app. Do not install into the desktop profile.
+Install the DeepSeek Harness plugin `dsh-purge-safety` into the Web profile only. Do not scan the whole disk, do not read or edit other files, do not apply settings, and do not restart the app. Do not install into the desktop profile.
**Web (official `dsh web`)**
If `dsh` is not on PATH, tell the user and stop.
```sh
-dsh plugin --profile web add dsh-purge
+dsh plugin --profile web add dsh-purge-safety
```
If this directory is already a clone, use `dsh plugin --profile web add .`. If the npm registry is blocked, use `dsh plugin --profile web add https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz`.
-After the command finishes, tell the user to fully quit and restart `dsh web`, then open **dsh-purge** beside the session title and **Apply** on **Clean**. Then stop.
+After the command finishes, tell the user to fully quit and restart `dsh web`, then open **dsh-purge-safety** beside the session title and **Apply** on **Clean**. Then stop.
<!-- AI-AGENT-END -->
@@ -199,32 +199,32 @@ $cands += @("$env:APPDATA\DeepSeek Harness\dsh-home", "$env:LOCALAPPDATA\DeepSee
$cands | Select-Object -Unique | Where-Object { $_ -and (Test-Path (Join-Path $_ "profiles")) }
```
-**2. Put the plugin at `$DSH_HOME/plugins/dsh-purge`** (folder must be named `dsh-purge`, with a `package.json` whose `"name"` is `dsh-purge`).
+**2. Put the plugin at `$DSH_HOME/plugins/dsh-purge-safety`** (folder must be named `dsh-purge-safety`, with a `package.json` whose `"name"` is `dsh-purge-safety`).
```sh
-git clone https://github.com/AspenYoYo/dsh-purge-safety.git "$DSH_HOME/plugins/dsh-purge"
+git clone https://github.com/AspenYoYo/dsh-purge-safety.git "$DSH_HOME/plugins/dsh-purge-safety"
```
-Without git: download [main.tar.gz](https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz), extract, rename `dsh-purge-safety-main` → `dsh-purge`, and place it under `plugins`. If you already have a clone, copy the whole tree — not a few `.js` files.
+Without git: download [main.tar.gz](https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz), extract, rename `dsh-purge-safety-main` → `dsh-purge-safety`, and place it under `plugins`. If you already have a clone, copy the whole tree — not a few `.js` files.
**3. Edit only that profile's `package.json` — back it up first.** Web → `$DSH_HOME/profiles/web/package.json`; desktop → `$DSH_HOME/profiles/desktop/package.json`. Add **only two things**, keeping every existing dependency and bundle:
-1. In `dependencies`, add `"dsh-purge": "file:../../plugins/dsh-purge"`
-2. At the **end** of `dsh.profile.bundles`, append `"dsh-purge"` (skip if already there)
+1. In `dependencies`, add `"dsh-purge-safety": "file:../../plugins/dsh-purge-safety"`
+2. At the **end** of `dsh.profile.bundles`, append `"dsh-purge-safety"` (skip if already there)
```json
{
"name": "dsh-profile-web",
"private": true,
"dependencies": {
- "dsh-purge": "file:../../plugins/dsh-purge"
+ "dsh-purge-safety": "file:../../plugins/dsh-purge-safety"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
- "dsh-purge"
+ "dsh-purge-safety"
],
"patchReload": "live"
}
@@ -232,7 +232,7 @@ Without git: download [main.tar.gz](https://github.com/AspenYoYo/dsh-purge-safet
}
```
-Keep JSON valid (comma before the new item, none after the last). Do not switch `file:../../plugins/dsh-purge` to an absolute path, do not touch `patchReload` or other plugins, and do not list `"dsh-purge"` twice. On desktop, if there is no `dsh-web-app` row, do not add one.
+Keep JSON valid (comma before the new item, none after the last). Do not switch `file:../../plugins/dsh-purge-safety` to an absolute path, do not touch `patchReload` or other plugins, and do not list `"dsh-purge-safety"` twice. On desktop, if there is no `dsh-web-app` row, do not add one.
**4. Run `pnpm install` in that profile only** (`cd` into the profile dir, not the repo root or `$DSH_HOME`):
@@ -241,7 +241,7 @@ cd "$DSH_HOME/profiles/web" # or profiles/desktop
pnpm install
```
-Success: `profiles/<web|desktop>/node_modules/dsh-purge/package.json` exists. If `pnpm` is missing, use the Node / pnpm shipped with official `dsh`; on `Could not resolve`, re-check the `file:` path; on a JSON error, fix commas or restore the backup.
+Success: `profiles/<web|desktop>/node_modules/dsh-purge-safety/package.json` exists. If `pnpm` is missing, use the Node / pnpm shipped with official `dsh`; on `Could not resolve`, re-check the `file:` path; on a JSON error, fix commas or restore the backup.
**5. Fully quit that host, reopen it, then Apply** — same three steps as above. The card appears beside the session title; click **Apply** (or `/purge apply`) on that host only. If the card is missing, you likely edited the other `.dsh` — go back to step 1.
@@ -249,11 +249,11 @@ Success: `profiles/<web|desktop>/node_modules/dsh-purge/package.json` exists. If
### Uninstall
-**dsh-purge** beside the session title → **Clean** → **Uninstall**. Confirm the dialog: it reverts any applied patches, restores the original Harness, and restarts the current host.
+**dsh-purge-safety** beside the session title → **Clean** → **Uninstall**. Confirm the dialog: it reverts any applied patches, restores the original Harness, and restarts the current host.
```sh
# or from a terminal / chat
-dsh-purge --uninstall
+dsh-purge-safety --uninstall
# /purge uninstall
```
@@ -261,8 +261,8 @@ Plugin config lives in `cordis.patch.yml` (`postPrompt` is empty by default):
```yaml
- insert:
- - id: dsh-purge
- name: 'dsh-purge'
+ - id: dsh-purge-safety
+ name: 'dsh-purge-safety'
config:
enabled: true
autoApplyOnStart: true
@@ -277,7 +277,7 @@ Plugin config lives in `cordis.patch.yml` (`postPrompt` is empty by default):
## Preview
-**dsh-purge** sits beside the session title. It opens a right-hand dock with two pages: **Clean** and **Drill**. Switch **Light / Ink**. Patches are grouped; the count only includes items that actually applied. Rule sets sit in a list above the editor, with Enable and Delete on each row.
+**dsh-purge-safety** sits beside the session title. It opens a right-hand dock with two pages: **Clean** and **Drill**. Switch **Light / Ink**. Patches are grouped; the count only includes items that actually applied. Rule sets sit in a list above the editor, with Enable and Delete on each row.
The first time you open Drill you read the notice, wait out the countdown, scroll to the end, and check three boxes. Clean does not need that step. Drill is only for a host you manage, an offline target, or an exercise that already has written authorization.
@@ -305,7 +305,7 @@ On the Clean page, under Prompt. One host per line, then Save list. Steps are in
| Area | What it shows |
|---|---|
-| dsh-purge | button beside the session title; opens or collapses the dock |
+| dsh-purge-safety | button beside the session title; opens or collapses the dock |
| Clean | the old Rules page: patches, prompt, rule sets, skills |
| Drill | assets, skills, and environment after authorization. The tab says Unauthorized until then |
| Patches | grouped status, Apply, Restore, or Uninstall |
@@ -327,11 +327,11 @@ Runtime files live under `$DSH_HOME`: `prompt-inject.md`, `rules/`, `skills/`, `
## Usage
```sh
-dsh-purge --status
-dsh-purge --apply
-dsh-purge --revert
-dsh-purge --uninstall
-dsh-purge --edit
+dsh-purge-safety --status
+dsh-purge-safety --apply
+dsh-purge-safety --revert
+dsh-purge-safety --uninstall
+dsh-purge-safety --edit
/purge status | apply | revert | uninstall | edit | help
/rules list | use <id> | create <id> | delete <id> | reset | help
@@ -349,7 +349,7 @@ If the **same task works in standard but fails in minimal or PTC**, preset `run_
### Response speed
-DSH runs Bash calls in a tool batch one at a time. Older dsh-purge releases raised the default foreground wait from 60 seconds to 10 minutes, so one slow command could hold up later calls for that long. Patch #21 now restores marked plugin values to the official 60-second default. Unmarked timeouts and other custom values are preserved; an unmarked 10-minute value cannot reliably be distinguished from a user setting.
+DSH runs Bash calls in a tool batch one at a time. Older dsh-purge-safety releases raised the default foreground wait from 60 seconds to 10 minutes, so one slow command could hold up later calls for that long. Patch #21 now restores marked plugin values to the official 60-second default. Unmarked timeouts and other custom values are preserved; an unmarked 10-minute value cannot reliably be distinguished from a user setting.
For a shorter wait in `dsh web` on macOS/Linux, add this entry to `$DSH_HOME/profiles/web/cordis.patch.yml` (normally `~/.dsh/profiles/web/cordis.patch.yml`). Edit an existing entry with the same id instead of adding a duplicate. This profile layer is applied after the bundled configuration, so future plugin applies keep the override.
@@ -379,7 +379,7 @@ Addresses in mainland China, Hong Kong, and Macau stay forbidden unless that one
The box sits under Prompt. If the dock does not show it yet, quit DeepSeek Harness completely and open it again.
-1. Click **dsh-purge** beside the session title and stay on **Clean**.
+1. Click **dsh-purge-safety** beside the session title and stay on **Clean**.
2. Scroll past **Prompt**. **Own servers** is the next block.
3. Put one host on each line, in one of these forms:
- `203.0.113.10` — one IP.
@@ -429,7 +429,7 @@ flowchart TD
A["Restart or new session"] --> B["Inject the plugin's encrypted default. No save click, and no host prompt file"]
```
-Prompt injection and ruleset decision at every turn. The three inputs on the left are what you control in the dsh-purge panel; the dotted edges show which decision each one drives:
+Prompt injection and ruleset decision at every turn. The three inputs on the left are what you control in the dsh-purge-safety panel; the dotted edges show which decision each one drives:
```mermaid
flowchart TD
@@ -510,7 +510,7 @@ What changed, and the zip, are on [Releases](https://github.com/AspenYoYo/dsh-pu
- Scope is rendered copy, defaults, and runtime logic inside local `@deepseek-ai/*` packages, plus override files and rule sets under the harness home.
- After an upgrade, unmatched originals show as skipped. Apply still completes, and those files are left unchanged.
- Third-party plugin *source repos* outside `@deepseek-ai` are left alone (CMD silence may **best-effort** patch installed doctor / market / liangshen / mnemon at runtime).
-- Install the npm package `dsh-purge`: `dsh plugin --profile web add dsh-purge` or `dsh plugin --profile desktop add dsh-purge`. From this repo, `add .`. If the registry is blocked, add the main.tar.gz URL instead.
+- Install the npm package `dsh-purge-safety`: `dsh plugin --profile web add dsh-purge-safety` or `dsh plugin --profile desktop add dsh-purge-safety`. From this repo, `add .`. If the registry is blocked, add the main.tar.gz URL instead.
---
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 80a909b..5508dc3 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,8 +1,8 @@
<p align="center">
- <img src="docs/banner.svg" alt="dsh-purge" width="720">
+ <img src="docs/banner.svg" alt="dsh-purge-safety" width="720">
</p>
-<h1 align="center">⚔️ DeepSeek Harness 网络安全红队工具(dsh-purge)</h1>
+<h1 align="center">⚔️ DeepSeek Harness 网络安全红队工具(dsh-purge-safety)</h1>
<p align="center"><strong>Version 1.1.71</strong></p>
@@ -36,21 +36,21 @@
## 介绍
-**dsh-purge** 是装在本机官方 [DeepSeek Harness](https://www.deepseek.com/harness/) 上的网络安全红队评测插件。官方 **Web**(`dsh web`)和官方 **桌面端**(EXE)都支持,两边分开装、分开应用。
+**dsh-purge-safety** 是装在本机官方 [DeepSeek Harness](https://www.deepseek.com/harness/) 上的网络安全红队评测插件。官方 **Web**(`dsh web`)和官方 **桌面端**(EXE)都支持,两边分开装、分开应用。
Harness 不只是把问题交给模型。它还会在运行时改提示词、审批门、沙箱和会话格式。只看「模型答不答」,会把宿主拦截误当成模型拒绝。这个插件在你自己的安装里把这两层分开,用来做受控评测,也用来看默认策略该不该收紧。
| 你会用到 | 它做什么 |
| ---------------- | ----------------------------------------------- |
-| **dsh-purge 侧栏** | 会话标题旁的按钮打开右侧栏。里面两页:清洗、演练台 |
+| **dsh-purge-safety 侧栏** | 会话标题旁的按钮打开右侧栏。里面两页:清洗、演练台 |
| **清洗** | 分组查看补丁,应用、还原、卸载;编辑提示词和多套规则 |
| **演练台** | 正式版内置。授权后查看资产、技能和本机环境。只用于你有权管理的本机、离线靶标或已书面授权的演练 |
| **宿主策略** | 调整默认文案、权限策略和工具上限。官方能力保留,不另写一套身份 |
| **启动时** | 自动再检查并应用。npm 升级盖掉 `node_modules` 之后不用手改文件 |
-不写死盘符。按 `$DSH_HOME`、dsh 启动器旁边的 `.dsh`,再退回 `~/.dsh`。不改 Harness 源码仓库,在 **dsh-purge** 的「清洗」里点「应用」才写入。身份来自插件里的加密提示词,也就是提示词框默认显示的那一份。不读取宿主磁盘上的提示词文件。
+不写死盘符。按 `$DSH_HOME`、dsh 启动器旁边的 `.dsh`,再退回 `~/.dsh`。不改 Harness 源码仓库,在 **dsh-purge-safety** 的「清洗」里点「应用」才写入。身份来自插件里的加密提示词,也就是提示词框默认显示的那一份。不读取宿主磁盘上的提示词文件。
本插件只处理使用者本机已安装的官方 `@deepseek-ai` 包和本机配置。它不是公网扫描器,也不是针对第三方站点的攻击套件。仓库内不含木马、未授权渗透脚本或对外攻击载荷。
@@ -78,7 +78,7 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
**【零容忍严正申明】**:本项目坚决反对并严禁任何形式的违法犯罪行为!本项目开发者绝不支持、不鼓励、不协助任何未授权网络攻击、漏洞利用、数据窃取、非法侵入计算机信息系统或生成违法违禁内容的活动。**任何将本项目用于违法犯罪的行为,均与开发者无关,由行为人依法独立承担全部法律责任。**
-1. **本仓库不含违法内容**:`dsh-purge` 发布的代码、文档、补丁与默认提示词**不是**木马、后门、未授权渗透工具、勒索软件、撞库脚本,也**不是**针对公网或第三方系统的攻击载荷。项目本身不提供违法内容,也不教唆、组织、协助实施违法犯罪。
+1. **本仓库不含违法内容**:`dsh-purge-safety` 发布的代码、文档、补丁与默认提示词**不是**木马、后门、未授权渗透工具、勒索软件、撞库脚本,也**不是**针对公网或第三方系统的攻击载荷。项目本身不提供违法内容,也不教唆、组织、协助实施违法犯罪。
2. **只作用于本机官方 Harness**:安全评测补丁、提示词注入全部发生在使用者**本机已安装的官方 DeepSeek Harness**(`@deepseek-ai` 包、本机 profile / `$DSH_HOME`)上。对象是使用者自己的官方本地软件,**不是**他人的网站、服务器、账号或信息系统。
3. **评测补丁不对外网目标联网**:应用补丁、写入注入、回滚、卸载均在本机文件与本机进程内完成,**不对任何公网主机、未授权系统进行扫描、探测、入侵或攻击发包**。不得把本项目当作跳板去打外网。插件若开启「检测更新」,仅可能访问本插件自己的 GitHub 仓库以核对版本,**与对第三方系统的网络攻击无关**,也不能被解释为授权对外渗透。
4. **合法受控范围限定**:本项目定位为使用者在**自己有权管理的本机官方 Harness**上,进行红队科研与鲁棒性评测的辅助工具。**严禁在未经所有者合法书面授权的目标、公网在线系统或生产业务上运行本项目**。一切测试必须限制在**本机已授权安装的官方 Harness、离线本地合成靶标、授权网络安全演练靶场及合规实验室受控环境**中进行。
@@ -121,15 +121,15 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
| 你正在用 | profile | 命令 |
|---|---|---|
-| 官方 `dsh web` | `web` | `dsh plugin --profile web add dsh-purge` |
-| 官方桌面 EXE | `desktop` | `dsh plugin --profile desktop add dsh-purge` |
+| 官方 `dsh web` | `web` | `dsh plugin --profile web add dsh-purge-safety` |
+| 官方桌面 EXE | `desktop` | `dsh plugin --profile desktop add dsh-purge-safety` |
当前目录已经是本仓库时,把包名换成 `add .`。`dsh` 不在 PATH 时走 [手动安装](#manual)。registry 上不去:同一个 `--profile`,把目标换成 `https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz`。
桌面客户端也可以点按钮(`dsh://` 唤起):
<p align="center">
- <a href="dsh://plugin/install?id=dsh-purge&name=dsh-purge&version=1.1.71&repo=AspenYoYo%2Fdsh-purge-safety&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fgithub.com%2FAspenYoYo%2Fdsh-purge-safety%2Farchive%2Frefs%2Fheads%2Fmain.tar.gz"><strong>唤起客户端一键安装</strong></a>
+ <a href="dsh://plugin/install?id=dsh-purge-safety&name=dsh-purge-safety&version=1.1.71&repo=AspenYoYo%2Fdsh-purge-safety&permissions=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA%E8%AF%8D%E6%B3%A8%E5%85%A5%2C%E6%9C%AC%E6%9C%BA%E8%A1%A5%E4%B8%81%2C%E8%AE%BE%E7%BD%AE%E9%A1%B5&downloadUrl=https%3A%2F%2Fgithub.com%2FAspenYoYo%2Fdsh-purge-safety%2Farchive%2Frefs%2Fheads%2Fmain.tar.gz"><strong>唤起客户端一键安装</strong></a>
</p>
### 装完都要做这三步
@@ -137,14 +137,14 @@ Harness 不只是把问题交给模型。它还会在运行时改提示词、审
只把插件写进 profile **还不会**改 `@deepseek-ai`。
1. **退出并重新打开**刚装的那个宿主:Web 关掉 `dsh web` 再开;桌面端退出托盘再打开对应 exe。
-2. 在**这个宿主**点会话标题旁的 **dsh-purge**,在 **清洗** 页点 **「应用」**。宿主的设置页里没有这个条目。
+2. 在**这个宿主**点会话标题旁的 **dsh-purge-safety**,在 **清洗** 页点 **「应用」**。宿主的设置页里没有这个条目。
3. 「应用」成功后会自动重启一次,让补丁进入当前进程。没做完不会重启。
Web 的控件只动 Web,桌面端的只动桌面应用。不要在一个宿主里点另一个宿主的应用。
### 怎样算装上了
-- 会话标题旁有 **dsh-purge**,点开后在「清洗」里能点「应用」。
+- 会话标题旁有 **dsh-purge-safety**,点开后在「清洗」里能点「应用」。
- 聊天里 `/purge status` 能打出 `DSH_HOME` 和补丁列表,路径应是你正在用的那一份。
- 没装的可选包(例如梁神)显示跳过,不挡住应用完成。
@@ -157,19 +157,19 @@ Web 的控件只动 Web,桌面端的只动桌面应用。不要在一个宿主
<!-- AI-AGENT-START -->
-安装 DeepSeek Harness 插件 `dsh-purge`,只装到 Web profile。不要全盘搜索,不要读或改其它文件,不要应用设置,也不要重启应用。不要装到桌面 profile。
+安装 DeepSeek Harness 插件 `dsh-purge-safety`,只装到 Web profile。不要全盘搜索,不要读或改其它文件,不要应用设置,也不要重启应用。不要装到桌面 profile。
**Web 端(官方 `dsh web`)**
`dsh` 不在 PATH 就告诉用户后停止。
```sh
-dsh plugin --profile web add dsh-purge
+dsh plugin --profile web add dsh-purge-safety
```
当前目录已是本仓库时改用 `dsh plugin --profile web add .`。npm registry 上不去再用 `dsh plugin --profile web add https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz`。
-命令结束后,提醒用户:完全退出并重启 `dsh web`,再点会话标题旁的 **dsh-purge**,在「清洗」里点「应用」。然后停止。
+命令结束后,提醒用户:完全退出并重启 `dsh web`,再点会话标题旁的 **dsh-purge-safety**,在「清洗」里点「应用」。然后停止。
<!-- AI-AGENT-END -->
@@ -201,32 +201,32 @@ $cands += @("$env:APPDATA\DeepSeek Harness\dsh-home", "$env:LOCALAPPDATA\DeepSee
$cands | Select-Object -Unique | Where-Object { $_ -and (Test-Path (Join-Path $_ "profiles")) }
```
-**2. 把插件放到 `$DSH_HOME/plugins/dsh-purge`**(目录名必须是 `dsh-purge`,其 `package.json` 里 `"name"` 也必须是 `dsh-purge`)。
+**2. 把插件放到 `$DSH_HOME/plugins/dsh-purge-safety`**(目录名必须是 `dsh-purge-safety`,其 `package.json` 里 `"name"` 也必须是 `dsh-purge-safety`)。
```sh
-git clone https://github.com/AspenYoYo/dsh-purge-safety.git "$DSH_HOME/plugins/dsh-purge"
+git clone https://github.com/AspenYoYo/dsh-purge-safety.git "$DSH_HOME/plugins/dsh-purge-safety"
```
-没有 git:下载 [main.tar.gz](https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz),解压后把 `dsh-purge-safety-main` 改名为 `dsh-purge`,整夹放到 `plugins` 下。已有本仓库副本就复制整个目录,不要只拷几个 `.js`。
+没有 git:下载 [main.tar.gz](https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz),解压后把 `dsh-purge-safety-main` 改名为 `dsh-purge-safety`,整夹放到 `plugins` 下。已有本仓库副本就复制整个目录,不要只拷几个 `.js`。
**3. 只改对应 profile 的 `package.json`,先备份。** Web → `$DSH_HOME/profiles/web/package.json`;桌面 → `$DSH_HOME/profiles/desktop/package.json`。**只追加两处**,原有依赖和 bundle 全部留着:
-1. `dependencies` 增加 `"dsh-purge": "file:../../plugins/dsh-purge"`
-2. `dsh.profile.bundles` **末尾**追加 `"dsh-purge"`(已有就不要再加)
+1. `dependencies` 增加 `"dsh-purge-safety": "file:../../plugins/dsh-purge-safety"`
+2. `dsh.profile.bundles` **末尾**追加 `"dsh-purge-safety"`(已有就不要再加)
```json
{
"name": "dsh-profile-web",
"private": true,
"dependencies": {
- "dsh-purge": "file:../../plugins/dsh-purge"
+ "dsh-purge-safety": "file:../../plugins/dsh-purge-safety"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
- "dsh-purge"
+ "dsh-purge-safety"
],
"patchReload": "live"
}
@@ -234,7 +234,7 @@ git clone https://github.com/AspenYoYo/dsh-purge-safety.git "$DSH_HOME/plugins/d
}
```
-JSON 要合法(新增项前面有逗号,最后一项后面没有多余逗号)。`file:../../plugins/dsh-purge` 不要改成绝对路径,`patchReload`、其它插件、版本号都不要动,`"dsh-purge"` 不要写两次。桌面端没有 `dsh-web-app` 就不要硬加。
+JSON 要合法(新增项前面有逗号,最后一项后面没有多余逗号)。`file:../../plugins/dsh-purge-safety` 不要改成绝对路径,`patchReload`、其它插件、版本号都不要动,`"dsh-purge-safety"` 不要写两次。桌面端没有 `dsh-web-app` 就不要硬加。
**4. 只在刚改的那个 profile 目录装依赖**(`cd` 进 profile 目录,不要在仓库根或 `$DSH_HOME` 根):
@@ -243,7 +243,7 @@ cd "$DSH_HOME/profiles/web" # 或 profiles/desktop
pnpm install
```
-成功标志:出现 `profiles/<web|desktop>/node_modules/dsh-purge/package.json`。找不到 `pnpm` 就用官方 `dsh` 自带的 Node / pnpm;报 `Could not resolve` 就检查 `file:` 路径;JSON 解析失败就修逗号或还原备份。
+成功标志:出现 `profiles/<web|desktop>/node_modules/dsh-purge-safety/package.json`。找不到 `pnpm` 就用官方 `dsh` 自带的 Node / pnpm;报 `Could not resolve` 就检查 `file:` 路径;JSON 解析失败就修逗号或还原备份。
**5. 完全退出该宿主,再启动,再点「应用」** —— 和上面三步一样。按钮会出现在会话标题旁,只在这个宿主点「应用」(或 `/purge apply`)。没出现多半是改错了另一份 `.dsh`,回到第 1 步核对。
@@ -251,11 +251,11 @@ pnpm install
### 卸载
-会话标题旁的 **dsh-purge** →「清洗」→「卸载」。弹窗确认:会先还原已应用的补丁,还原回原版 Harness,再重启当前宿主。
+会话标题旁的 **dsh-purge-safety** →「清洗」→「卸载」。弹窗确认:会先还原已应用的补丁,还原回原版 Harness,再重启当前宿主。
```sh
# 也可以用命令行 / 聊天
-dsh-purge --uninstall
+dsh-purge-safety --uninstall
# /purge uninstall
```
@@ -263,8 +263,8 @@ dsh-purge --uninstall
```yaml
- insert:
- - id: dsh-purge
- name: 'dsh-purge'
+ - id: dsh-purge-safety
+ name: 'dsh-purge-safety'
config:
enabled: true
autoApplyOnStart: true
@@ -279,7 +279,7 @@ dsh-purge --uninstall
## 界面预览
-会话标题旁有 **dsh-purge**。点开是右侧栏,两页:**清洗** 和 **演练台**。白 / 墨可切换。补丁按组展开,进度只计真正已应用的项。规则集在上方列表启用或删除,下方编辑正文。
+会话标题旁有 **dsh-purge-safety**。点开是右侧栏,两页:**清洗** 和 **演练台**。白 / 墨可切换。补丁按组展开,进度只计真正已应用的项。规则集在上方列表启用或删除,下方编辑正文。
第一次进演练台要先读声明、等倒计时、滚到文末并勾选三项。清洗不需要这一步。演练台只用于你有权管理的本机、离线靶标,或已经书面授权的演练环境。
@@ -312,7 +312,7 @@ dsh-purge --uninstall
| 区域 | 说明 |
| --------- | ---------------------------------------------------------------------------------------------------------- |
-| dsh-purge | 会话标题旁的按钮,打开或收起右侧栏 |
+| dsh-purge-safety | 会话标题旁的按钮,打开或收起右侧栏 |
| 清洗 | 原来的规则设定:补丁、提示词、规则集、Skill |
| 演练台 | 授权后的资产、技能与环境页。未授权时按钮标「未授权」 |
| 补丁 | 分组查看状态,应用、还原或卸载 |
@@ -336,11 +336,11 @@ dsh-purge --uninstall
```sh
# CLI
-dsh-purge --status
-dsh-purge --apply
-dsh-purge --revert
-dsh-purge --uninstall
-dsh-purge --edit
+dsh-purge-safety --status
+dsh-purge-safety --apply
+dsh-purge-safety --revert
+dsh-purge-safety --uninstall
+dsh-purge-safety --edit
# 聊天
/purge status | apply | revert | uninstall | edit | help
@@ -360,7 +360,7 @@ purge_status purge_apply purge_revert
### 响应速度
-DSH 会按顺序执行同一批中的 Bash 调用。旧版 dsh-purge 把默认前台等待从 60 秒提高到了 10 分钟,一条慢命令会让后续调用一起等待。补丁 #21 现在把带插件标记的旧值恢复为官方的 60 秒。无标记的等待时间和其他自定义值会保留;无标记的 10 分钟无法可靠地区分是插件旧值还是用户设置。
+DSH 会按顺序执行同一批中的 Bash 调用。旧版 dsh-purge-safety 把默认前台等待从 60 秒提高到了 10 分钟,一条慢命令会让后续调用一起等待。补丁 #21 现在把带插件标记的旧值恢复为官方的 60 秒。无标记的等待时间和其他自定义值会保留;无标记的 10 分钟无法可靠地区分是插件旧值还是用户设置。
在 macOS/Linux 的 `dsh web` 中,如需更快返回工具结果,可在 `$DSH_HOME/profiles/web/cordis.patch.yml`(通常是 `~/.dsh/profiles/web/cordis.patch.yml`)添加下面的条目。已有相同 id 时修改原条目,不要重复添加。这个 profile 覆盖层在内置配置之后加载,后续应用插件会保留它。
@@ -390,7 +390,7 @@ DSH 会按顺序执行同一批中的 Bash 调用。旧版 dsh-purge 把默认
这一栏在提示词下面。若侧栏里还没有它,先完全退出 DeepSeek Harness,再重新打开。
-1. 点会话标题旁的 **dsh-purge**,停在 **清洗**。
+1. 点会话标题旁的 **dsh-purge-safety**,停在 **清洗**。
2. 往下滚过 **提示词**,下面就是 **自己的服务器**。
3. 每行只写一台,用下面三种写法之一:
- `203.0.113.10`:一个 IP。
@@ -440,7 +440,7 @@ flowchart TD
-每一轮的提示词注入与规则集决策。左边三个输入就是你在 dsh-purge 面板里控制的东西,虚线表示它们各自驱动哪一步判定:
+每一轮的提示词注入与规则集决策。左边三个输入就是你在 dsh-purge-safety 面板里控制的东西,虚线表示它们各自驱动哪一步判定:
```mermaid
flowchart TD
@@ -521,6 +521,6 @@ flowchart LR
- 改动范围是本机 `@deepseek-ai/*` 包里的渲染文案、默认策略和执行逻辑,以及用户目录下的覆盖文件与规则集。
- 升级后原文对不上会显示跳过,这次应用仍算完成,不会乱改。
- 不改动非 `@deepseek-ai` 的第三方插件源仓库(启动时的 CMD 无感会**尽力**修补已装的 doctor / market / 梁神 / mnemon,属运行时补丁)。
-- 安装走 npm 包名 `dsh-purge`:`dsh plugin --profile web add dsh-purge` 或 `dsh plugin --profile desktop add dsh-purge`。当前目录已是本仓库时 `add .`。registry 上不去再加 main.tar.gz。
+- 安装走 npm 包名 `dsh-purge-safety`:`dsh plugin --profile web add dsh-purge-safety` 或 `dsh plugin --profile desktop add dsh-purge-safety`。当前目录已是本仓库时 `add .`。registry 上不去再加 main.tar.gz。
---
diff --git a/package.json b/package.json
index ccd0712..5f4eae8 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "dsh-purge",
+ "name": "dsh-purge-safety",
"version": "1.1.71",
"description": "DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分",
"type": "module",
@@ -16,7 +16,7 @@
"./package.json": "./package.json"
},
"bin": {
- "dsh-purge": "bin/dsh-purge.js"
+ "dsh-purge-safety": "bin/dsh-purge.js"
},
"files": [
"lib",
@@ -55,11 +55,11 @@
],
"repository": {
"type": "git",
- "url": "git+https://github.com/YuJunZhiXue/dsh-purge.git"
+ "url": "git+https://github.com/AspenYoYo/dsh-purge-safety.git"
},
- "homepage": "https://github.com/YuJunZhiXue/dsh-purge#readme",
+ "homepage": "https://github.com/AspenYoYo/dsh-purge-safety#readme",
"bugs": {
- "url": "https://github.com/YuJunZhiXue/dsh-purge/issues"
+ "url": "https://github.com/AspenYoYo/dsh-purge-safety/issues"
},
"dsh": {
"bundle": {
@@ -77,9 +77,9 @@
},
"install": {
"preferred": "tarball",
- "tarball": "https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.tar.gz",
- "zip": "https://github.com/YuJunZhiXue/dsh-purge/archive/refs/heads/master.zip",
- "git": "https://github.com/YuJunZhiXue/dsh-purge.git"
+ "tarball": "https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.tar.gz",
+ "zip": "https://github.com/AspenYoYo/dsh-purge-safety/archive/refs/heads/main.zip",
+ "git": "https://github.com/AspenYoYo/dsh-purge-safety.git"
}
},
"publishConfig": {