[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110928":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},110928,"dsh-purge1.7.3-","yu994419160\u002Fdsh-purge1.7.3-","yu994419160","DeepSeek Harness 破甲：让所有模型都能破甲，不同模型可换不同提示词；默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开，请查看署名要求部分","",null,"JavaScript",360,5015,53,0,11,105,297,47,100,"Apache License 2.0",false,"master",true,[],"2026-10-23 03:51:04","2026-11-23 20:01:08","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fbanner.svg\" alt=\"dsh-purge\" width=\"720\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">⚔️ DeepSeek Harness cybersecurity red-team tool (dsh-purge)\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cstrong>Version 1.1.73\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cem>DeepSeek Harness jailbreak: every model, swap prompts per model. Default prompt for 小码酱. Please star ⭐ If you build on this, see Attribution required.\u003C\u002Fem>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Fstargazers\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FYuJunZhiXue\u002Fdsh-purge?logo=github&label=Stars\" alt=\"GitHub stars\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Fblob\u002Fmaster\u002FLICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue?style=flat\" alt=\"Apache-2.0\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fawesome-dsh-plugin.com\">\u003Cimg src=\"https:\u002F\u002Fawesome-dsh-plugin.com\u002Fbadge.svg\" alt=\"awesome · DSH plugin\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdeepseek.stream\u002Fplugins\u002Fdsh-purge\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FHub-dsh--purge-1a73e8\" alt=\"DeepSeek Harness Hub\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.deepseek.com\u002Fharness\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdsh-0.2.0--rc.2%20%2F%200.2.1--rc.2-blue\" alt=\"DSH\">\u003C\u002Fa>\n  \u003Cbr>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNode.js-%3E%3D18-339933?logo=node.js&logoColor=fff\" alt=\"Node.js\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FJavaScript-F7DF1E?logo=javascript&logoColor=000\" alt=\"JavaScript\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fdsh-plugin.org\u002Fplugins\u002Fyujunzhixue\u002Fdsh-purge\">\u003Cimg src=\"https:\u002F\u002Fdsh-plugin.org\u002Fbadges\u002Flisted.svg\" alt=\"Listed on dsh-plugin.org\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"README.md\">English\u003C\u002Fa> | \u003Ca href=\"README.zh-CN.md\">中文\u003C\u002Fa>\n\u003C\u002Fp>\n\n## A note from the author\n\nPeople have been selling this open-source work in the open. After that, the author was asked to come in and talk. No need to spell out the rest. Read between the lines.\n\nFrom now on the **public internet is closed**. Attack tasks only allow lab targets: localhost \u002F private nets, known ranges, and the one host you registered. A public IP or some random domain does not pass.\n\n**The original build may not be resold.** Charging for it, skinning it, or hawking it in groups is not allowed. Forks are fine, but **you must attribute** and name the source: [YuJunZhiXue\u002Fdsh-purge](https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge). Hide the source or pass it off as your own, and you are on the other side.\n\nThe author's personal channel: [t.me\u002FLLM_PoJia](https:\u002F\u002Ft.me\u002FLLM_PoJia). Notes and updates show up there.\n\n## Contents\n\n- [A note from the author](#a-note-from-the-author)\n- [What this is](#what-this-is)\n- [Attribution required](#attribution-required)\n- [License](#license)\n- [Supported hosts](#supported-hosts)\n- [Install](#install)\n- [Preview](#preview)\n- [Usage](#usage)\n- [Own servers](#own-servers)\n- [How it works](#how-it-works)\n- [Restore](#restore)\n- [Releases](#releases)\n\n---\n\n## What this is\n\n**dsh-purge** is a cybersecurity red-team plugin for the official [DeepSeek Harness](https:\u002F\u002Fwww.deepseek.com\u002Fharness\u002F) already installed on your machine. **1.1.73** targets **DSH 0.2.1-rc.2** (0.2.0 still works). Official **Web** (`dsh web`) and the official **desktop EXE** are both supported. Install and Apply them separately.\n\nHarness 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.\n\n| You get | What it does |\n|---|---|\n| **dsh-purge dock** | A button beside the session title opens the right dock. Two pages: Clean and Drill |\n| **Clean** | Grouped patch status, Apply \u002F Restore \u002F Uninstall, prompt editor, multiple rule sets |\n| **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 |\n| **Host policy** | Default copy, permission policy, and tool limits. Official capabilities stay. No second invented identity |\n| **On start** | Checks and reapplies. After npm overwrites `node_modules`, you do not hand-edit files |\n\nNo hardcoded drive letters. It looks at `$DSH_HOME`, `.dsh` next to the dsh launcher, then `~\u002F.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.\n\nIt 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.\n\n---\n\n## The original may not be resold. Forks must attribute.\n\n## Attribution required\n\n**The original build may not be resold.** No paid resale, no skinned store listing, no hawking it in groups.\n\n**Forks must attribute** and name the source repository: [YuJunZhiXue\u002Fdsh-purge](https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge). Same if you borrow the name, ideas, code, or prompts.\n\nHiding the source, passing it off as your own, or reselling the original will be pursued.\n\n## License\n\nThis repo is [Apache License 2.0](.\u002FLICENSE). Forks and redistributions must keep the copyright notice and [NOTICE](.\u002FNOTICE), and name [YuJunZhiXue\u002Fdsh-purge](https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge). The original may not be resold.\n\n---\n\n\u003Ca id=\"strict-legal--compliance-disclaimer\">\u003C\u002Fa>\n\n\u003Cdiv>\n\n### ⚠️ \u003Cfont color=\"red\">Strict legal and compliance disclaimer\u003C\u002Ffont>\n\n\u003Cfont color=\"red\">\n\n**Disclaimer:** This is a non-profit open-source project. It follows applicable laws and the rules of the platforms it uses, and is intended only for learning and research. Do not use it for any illegal or non-compliant purpose; the user bears any resulting consequences.\n\n**Zero-tolerance statement:** This project opposes and forbids any illegal activity. The authors do not support, encourage, or assist unauthorized network attacks, exploit use, data theft, unlawful intrusion into computer information systems, or generation of illegal or prohibited content. **Anyone who uses this project for crime is solely responsible under the law. The authors have no liability.**\n\n1. **This repository contains no illegal material.** The published code, docs, patches, and default prompt are **not** malware, backdoors, unauthorized pentest kits, ransomware, credential-stuffing scripts, or attack payloads aimed at the public internet or third-party systems. The project does not supply illegal content and does not incite, organize, or assist crime.\n2. **Local official Harness only.** Security-eval patches and prompt injection run only on the **official DeepSeek Harness already installed on the user's machine** (`@deepseek-ai` packages, local profile \u002F `$DSH_HOME`). The target is the user's own official local software, **not** someone else's website, server, account, or information system.\n3. **Eval patches do not attack the public internet.** Apply, inject, revert, and uninstall stay in local files and local processes. They **do not scan, probe, intrude, or send attack traffic to any public host or unauthorized system**. Do not use this project as a jump host against the public internet. If \"check for updates\" is on, the plugin may only contact this plugin's own GitHub repository to compare versions. That is **not** an attack on third-party systems and is **not** authorization to penetrate anything.\n4. **Lawful, controlled scope.** This project is an aid for red-team research and robustness evaluation on an **official Harness the user is entitled to administer**. **Do not run it against targets without the owner's lawful written authorization, public online systems, or production workloads.** Testing must stay on the **authorized local official Harness, offline local synthetic fixtures, authorized cybersecurity ranges, and compliant lab environments**.\n5. **Anything that is not a lab target is forbidden.** Attack tasks only allow localhost\u002Fprivate nets, known range platforms, and one exact IP or exact hostname that the user registered in advance as their own server. A public IP, any other domain, or a cloud-provider name is not an exception. A key, a password, a network range, a wildcard, or a claim made in the conversation does not add an exception. Anything that is not registered stays forbidden.\n6. **Forbidden uses.** Users must not use this project, directly or indirectly, to violate the following (each must be followed; no excuse to evade):\n   - \u003Cfont color=\"red\">\u003Cstrong>Criminal Law of the People's Republic of China\u003C\u002Fstrong>\u003C\u002Ffont>\n   - \u003Cfont color=\"red\">\u003Cstrong>Cybersecurity Law of the People's Republic of China\u003C\u002Fstrong>\u003C\u002Ffont>\n   - \u003Cfont color=\"red\">\u003Cstrong>Data Security Law of the People's Republic of China\u003C\u002Fstrong>\u003C\u002Ffont>\n   - \u003Cfont color=\"red\">\u003Cstrong>Personal Information Protection Law of the People's Republic of China\u003C\u002Fstrong>\u003C\u002Ffont>\n   - and other applicable laws, regulations, and supervisory rules;\n   - Also forbidden:\n   - Unauthorized intrusion or attacks on public or private computer information systems; extortion, sabotage, credential stuffing, or spreading malicious payloads;\n   - Inducing, generating, or spreading any content the law forbids, including threats to national security, terrorism, violence, pornography, gambling, fraud, and privacy or intellectual-property infringement;\n   - Violating the model provider's terms of service and acceptable-use policy.\n7. **The user bears all responsibility.** The project is provided under Apache-2.0 as-is. The authors make no warranty of completeness, security, or fitness. **Users independently bear all civil, administrative, and criminal liability** for download, deploy, run, modify, distribute, and all resulting inputs and outputs. Authors and contributors bear no direct, indirect, or joint liability for abuse.\n8. **The license ends on breach.** Anyone who uses this project for illegal attacks, malicious activity, or other violations has their open-source license **automatically and irrevocably terminated** from the moment of the violation. They must stop using the project, permanently destroy all copies and derivatives, and accept legal sanctions.\n9. **No affiliation.** This is an independent open-source security-eval research project. It has no employment, commercial, authorization, or endorsement relationship with DeepSeek or its affiliates. \"Official\" here only means the eval target is the official DeepSeek Harness package on the user's machine. It does **not** mean DeepSeek developed, approved, or warrants this plugin.\n10. **Attribution is required.** If you borrow this project's name, ideas, code, or prompts, you must credit the author and name this repository. Failure to attribute will be pursued. See [Attribution required](#attribution-required).\n\n\u003C\u002Ffont>\n\n\u003C\u002Fdiv>\n\n---\n\n## Supported hosts\n\n**1.1.73 targets DSH 0.2.1-rc.2.** 0.2.0 still works. Do not apply it to 0.1.x.\n\n- **dsh 0.2.1-rc.2** (official desktop \u002F official `dsh web`): use **1.1.73**. Fixes `{{cwd}}` \u002F `[cwd]` crash, patch #40 match, dropped `toolFilter`, host `dsh-tools` resolve, hostFs fd, desktop helper self-kill, `file:` archive update, Ctrl+Enter steer.\n- **dsh 0.2.0-rc.2**: use **1.1.40** or newer; this line also installs.\n- **dsh 0.1.7** (incl. rc.1 \u002F rc.2): use **1.1.39** or older — pick the tag on [Releases](https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Freleases).\n\nUnmatched patches stay pending or skipped; nothing is rewritten blindly.\n\n---\n\n## Install\n\nWeb and the official desktop EXE are the two maintained hosts. Install and patch each **separately**, and only the host you actually run.\n\n| What you run | Profile | Command |\n|---|---|---|\n| Official `dsh web` | `web` | `dsh plugin --profile web add https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Farchive\u002Frefs\u002Fheads\u002Fmaster.tar.gz` |\n| Official desktop EXE | `desktop` | `dsh plugin --profile desktop add https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Farchive\u002Frefs\u002Fheads\u002Fmaster.tar.gz` |\n\nIf this directory is already a clone, use `add .` instead of the URL. If `dsh` is not on PATH, use [Manual install](#manual). There is no npm package; do not `pnpm add dsh-purge`.\n\nFor the desktop client you can also click the button (`dsh:\u002F\u002F` deep link):\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"dsh:\u002F\u002Fplugin\u002Finstall?id=dsh-purge&name=dsh-purge&version=1.1.73&repo=YuJunZhiXue%2Fdsh-purge&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%2FYuJunZhiXue%2Fdsh-purge%2Farchive%2Frefs%2Fheads%2Fmaster.tar.gz\">\u003Cstrong>Install in desktop client\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Fp>\n\n### After the command: three steps\n\nAdding the plugin to a profile does **not** patch `@deepseek-ai` by itself.\n\n1. **Quit and reopen** the host you installed into — stop and restart `dsh web`, or quit the desktop tray and reopen that app.\n2. On **that host**, click **dsh-purge** beside the session title, then **Apply** on the **Clean** page. It is not on the host Settings page.\n3. A successful **Apply** restarts once so patches load. It does not restart if it did not finish.\n\nWeb controls affect Web only; desktop controls affect the desktop app only. Do not Apply one host from the other.\n\n### How to tell it installed\n\n- **dsh-purge** sits beside the session title, with **Apply** on its Clean page.\n- `\u002Fpurge status` in chat prints `DSH_HOME` and the patch list — the path should be the home you actually run.\n- Optional packages that are not installed (liangshen) show as skipped and do not block Apply.\n\n### Hand this to an assistant\n\nPaste the block below to a local assistant. It should only run the install command — no disk scan, no other edits, no Apply, no restart.\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>For AI assistants (install only)\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n\u003C!-- AI-AGENT-START -->\n\nInstall 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.\n\n**Web (official `dsh web`)**\n\nIf `dsh` is not on PATH, tell the user and stop.\n\n```sh\ndsh plugin --profile web add https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Farchive\u002Frefs\u002Fheads\u002Fmaster.tar.gz\n```\n\nIf this directory is already a clone, use `dsh plugin --profile web add .`. There is no npm package; do not `pnpm add dsh-purge`.\n\nAfter 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.\n\n\u003C!-- AI-AGENT-END -->\n\n\u003C\u002Fdetails>\n\n\u003Ca id=\"manual\">\u003C\u002Fa>\n\n### Manual install\n\nUse this when the command fails or `dsh` is not on PATH. Edit **only the profile for the host you run** — do not touch the other, and do not delete existing bundles.\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Full manual steps\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n**1. Find the `$DSH_HOME` this host uses.** A real home is named `.dsh` (official EXE sometimes `dsh-home`), contains `profiles`, and has at least one `profiles\u002F\u003Cname>\u002Fpackage.json`. Check in order: `DSH_HOME` env → `.dsh` next to the install root (portable) → `%USERPROFILE%\\.dsh` or `~\u002F.dsh` → `%APPDATA%` \u002F `%LOCALAPPDATA%\\DeepSeek Harness\\dsh-home`. Confirm: `profiles\u002Fweb\u002Fpackage.json` has `\"name\": \"dsh-profile-web\"` (or `dsh-profile-desktop`). Machines often have two homes — use the one that belongs to the host you actually start.\n\nPowerShell to list candidates:\n\n```powershell\n$cands = @()\nif ($env:DSH_HOME) { $cands += $env:DSH_HOME }\n$cands += \"$env:USERPROFILE\\.dsh\"\n$dsh = Get-Command dsh -ErrorAction SilentlyContinue\nif ($dsh) {\n  $dir = Split-Path $dsh.Source\n  $cands += @((Join-Path $dir \".dsh\"), (Join-Path (Split-Path $dir) \".dsh\"), (Join-Path (Split-Path (Split-Path $dir)) \".dsh\"))\n}\n$cands += @(\"$env:APPDATA\\DeepSeek Harness\\dsh-home\", \"$env:LOCALAPPDATA\\DeepSeek Harness\\dsh-home\")\n$cands | Select-Object -Unique | Where-Object { $_ -and (Test-Path (Join-Path $_ \"profiles\")) }\n```\n\n**2. Put the plugin at `$DSH_HOME\u002Fplugins\u002Fdsh-purge`** (folder must be named `dsh-purge`, with a `package.json` whose `\"name\"` is `dsh-purge`).\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge.git \"$DSH_HOME\u002Fplugins\u002Fdsh-purge\"\n```\n\nWithout git: download [master.tar.gz](https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Farchive\u002Frefs\u002Fheads\u002Fmaster.tar.gz), extract, rename `dsh-purge-master` → `dsh-purge`, and place it under `plugins`. If you already have a clone, copy the whole tree — not a few `.js` files.\n\n**3. Edit only that profile's `package.json` — back it up first.** Web → `$DSH_HOME\u002Fprofiles\u002Fweb\u002Fpackage.json`; desktop → `$DSH_HOME\u002Fprofiles\u002Fdesktop\u002Fpackage.json`. Add **only two things**, keeping every existing dependency and bundle:\n\n1. In `dependencies`, add `\"dsh-purge\": \"file:..\u002F..\u002Fplugins\u002Fdsh-purge\"`\n2. At the **end** of `dsh.profile.bundles`, append `\"dsh-purge\"` (skip if already there)\n\n```json\n{\n  \"name\": \"dsh-profile-web\",\n  \"private\": true,\n  \"dependencies\": {\n    \"dsh-purge\": \"file:..\u002F..\u002Fplugins\u002Fdsh-purge\"\n  },\n  \"dsh\": {\n    \"profile\": {\n      \"bundles\": [\n        \"@deepseek-ai\u002Fdsh-base\",\n        \"@deepseek-ai\u002Fdsh-web-app\",\n        \"dsh-purge\"\n      ],\n      \"patchReload\": \"live\"\n    }\n  }\n}\n```\n\nKeep JSON valid (comma before the new item, none after the last). Do not switch `file:..\u002F..\u002Fplugins\u002Fdsh-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.\n\n**4. Run `pnpm install` in that profile only** (`cd` into the profile dir, not the repo root or `$DSH_HOME`):\n\n```sh\ncd \"$DSH_HOME\u002Fprofiles\u002Fweb\"   # or profiles\u002Fdesktop\npnpm install\n```\n\nSuccess: `profiles\u002F\u003Cweb|desktop>\u002Fnode_modules\u002Fdsh-purge\u002Fpackage.json` exists. If `pnpm` is missing, use the Node \u002F pnpm shipped with official `dsh`; on `Could not resolve`, re-check the `file:` path; on a JSON error, fix commas or restore the backup.\n\n**5. Fully quit that host, reopen it, then Apply** — same three steps as above. The card appears beside the session title; click **Apply** (or `\u002Fpurge apply`) on that host only. If the card is missing, you likely edited the other `.dsh` — go back to step 1.\n\n\u003C\u002Fdetails>\n\n### Uninstall\n\n**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.\n\n```sh\n# or from a terminal \u002F chat\ndsh-purge --uninstall\n# \u002Fpurge uninstall\n```\n\nPlugin config lives in `cordis.patch.yml` (`postPrompt` is empty by default):\n\n```yaml\n- insert:\n    - id: dsh-purge\n      name: 'dsh-purge'\n      config:\n        enabled: true\n        autoApplyOnStart: true\n        autoUpdateOnStart: false\n        autoRevertOnMissing: false\n        verbose: false\n        postPromptOrder: 5100\n        postPrompt: \"\"\n```\n\n---\n\n## Preview\n\n**dsh-purge** sits beside the session title. It opens a right-hand dock with two pages: **Clean** and **Drill**. Switch **Light \u002F 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.\n\nThe 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.\n\n**Clean**\n\n![Clean](docs\u002Fpreview\u002Fdock-clean.png)\n\n**Drill authorization**\n\n![Drill authorization](docs\u002Fpreview\u002Fdock-auth.png)\n\n**Drill**\n\n![Drill](docs\u002Fpreview\u002Fdock-drill.png)\n\n**Patches**\n\n![Patches](docs\u002Fpreview\u002Fsettings.png)\n\n**Own servers**\n\nOn the Clean page, under Prompt. One host per line, then Save list. Steps are in [Own servers](#own-servers).\n\n![Own servers](docs\u002Fpreview\u002Fown-servers-en.png)\n\n| Area | What it shows |\n|---|---|\n| dsh-purge | button beside the session title; opens or collapses the dock |\n| Clean | the old Rules page: patches, prompt, rule sets, skills |\n| Drill | assets, skills, and environment after authorization. The tab says Unauthorized until then |\n| Patches | grouped status, Apply, Restore, or Uninstall |\n| Prompt | edit `prompt-inject.md` as the session override |\n| Own servers | one IP or exact hostname per line, saved to `$DSH_HOME\u002Fnet-scope-allow.txt` |\n| Rule sets | multiple `AGENTS.md` \u002F `CLAUDE.md`; Enable writes under `$DSH_HOME`, Delete removes the row |\n| Skills | import a zip or folder into this host’s official `$DSH_HOME\u002Fskills\u002F\u003Cid>\u002FSKILL.md` (web and desktop each use their own home; no drive letter is hardcoded); DSH owns match, load, and `\u002Fname`. You can also delete that folder yourself |\n\n---\n\n## Layout\n\n`bin\u002F` is the CLI, `lib\u002F` is patches and the drill console, `presets\u002Fredteam\u002F` is the red-team preset, `skills\u002Fredteam\u002F` is bundled red-team skills, `skills\u002Fpaper-autopilot\u002F` is the bundled paper skill, and `client.js` is the dock.\n\n### Bundled skill: paper-autopilot\n\n`skills\u002Fpaper-autopilot\u002F` is a 22-step thesis pipeline (Chinese dissertation \u002F SCI). It is not a jailbreak patch and is not auto-injected.\n\n```sh\nnode scripts\u002Finstall-paper-autopilot.mjs\nnode scripts\u002Finstall-paper-autopilot.mjs --dry-run\nnode scripts\u002Finstall-paper-autopilot.mjs --json\n```\n\nInstall is copy-only. An existing folder is renamed `paper-autopilot.bak-\u003Ctimestamp>`. Trigger with “write a paper \u002F thesis” or `\u002Fpaper`.\n\nRuntime files live under `$DSH_HOME`: `prompt-inject.md`, `rules\u002F`, `skills\u002F`, `net-scope-allow.txt`, `redteam\u002F`. If `DSH_HOME` is unset, the launcher-adjacent `.dsh` wins over `~\u002F.dsh`. Web and the desktop app each use their own home. Skills are not part of the inject section and do not replace the prompt.\n\n---\n\n## Usage\n\n```sh\ndsh-purge --status\ndsh-purge --apply\ndsh-purge --revert\ndsh-purge --uninstall\ndsh-purge --edit\n\n\u002Fpurge status | apply | revert | uninstall | edit | help\n\u002Frules list | use \u003Cid> | create \u003Cid> | delete \u003Cid> | reset | help\n\u002Fskills list | import \u003Czip-or-folder> | create \u003Cid> [description] | delete \u003Cid> | help\n\u002Frewind\n\npurge_status   purge_apply   purge_revert\n```\n\nAfter a successful Apply, the host restarts so patched packages load; you can also click **Restart** manually. Under the patch title are the stable release and the test release. The test release follows the `beta` branch. **Switch to stable** installs `master` and clears any pin. Picking an older stable version pins it; click **Update** to return to the latest. Old test tags are not listed.\n\nThe composer **Undo once** and **Undo last round** stay in the current conversation and do not open a branch. The sent line goes back into the input, and that cut's already-sent messages and completed tasks leave the current conversation; edit and **send again**. From **1.1.61**, rewind bounds follow the **current turn**, not the first user message. `\u002Frewind` does the same.\n\nIf the **same task works in standard but fails in minimal or PTC**, preset `run_code`, sandbox, or plan intercept text is often still uncleared, or built-in minimal is missing `agent-instructions`. Use **1.1.61+**, then **quit the host fully → Apply in Clean → restart → start a new chat**. Switching preset alone does not reload patches in the running process.\n\n### Response speed\n\nDSH 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.\n\nFor a shorter wait in `dsh web` on macOS\u002FLinux, add this entry to `$DSH_HOME\u002Fprofiles\u002Fweb\u002Fcordis.patch.yml` (normally `~\u002F.dsh\u002Fprofiles\u002Fweb\u002Fcordis.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.\n\n```yaml\n- id: bash-sandbox\n  config:\n    timeoutMs: 10000\n```\n\nWith the standard jobs service and `promoteOnTimeout: true`, an unfinished command returns a background job id after 10 seconds and keeps running. Read it with `job_output` or stop it with `job_kill`. This changes the foreground wait, not the command's speed. Without that service or with promotion disabled, the timeout kills the command. A per-call `timeoutMs` overrides this default; `run_in_background: true` returns a job id immediately.\n\nFor routine tasks, you can also opt into Low reasoning for new sessions:\n\n```yaml\n- id: agent-default-model\n  config:\n    provider: deepseek-official\n    model: deepseek-flash\n    reasoningEffort: low\n```\n\nRestart `dsh web` to load the profile. The model and reasoning defaults apply to newly created sessions; select Low in the composer for an existing session. The plugin does not change these model preferences automatically. Keep High when the task needs deeper reasoning, and narrow file searches rather than recursively scanning every application directory.\n\n### Own servers\n\nAttack tasks are denied by default. Only lab targets pass: localhost\u002Fprivate nets, known range platforms, and the one host registered first. Saying “this is my server” in chat does not allow it. A key or a password does not allow it either.\n\nThe box sits under Prompt. If the dock does not show it yet, quit DeepSeek Harness completely and open it again.\n\n1. Click **dsh-purge** beside the session title and stay on **Clean**.\n2. Scroll past **Prompt**. **Own servers** is the next block.\n3. Put one host on each line, in one of these forms:\n   - `203.0.113.10` — one IP.\n   - `my-vps.example.com` — one exact hostname. After you save, the addresses that hostname resolves to at lookup time are allowed too.\n   - `alice@my-vps.example.com` — the account only identifies this form. It does not prove the machine is yours.\n4. Click **Save list**. The list is written to `$DSH_HOME\u002Fnet-scope-allow.txt`.\n5. Keys, passwords, ranges, and wildcards are dropped on save. Unlisted public addresses stay forbidden.\n\n`203.0.113.10` and `example.com` above are only examples of the form. Replace them with your own host before you save.\n\n---\n\n## Local checks\n\n```sh\nnode --check lib\u002Findex.js\nnode --check lib\u002Fcore.js\nnode --check lib\u002Fsurface.js\nnode --check lib\u002Fweb.js\nnode --check lib\u002Fdesktop.js\nnode --check lib\u002Fhost.js\nnode --check lib\u002Frewind.js\nnode --check lib\u002Fskills.js\nnode --check client.js\n```\n\n---\n\n## How it works\n\nApply, on start or when you click Apply:\n\n```mermaid\nflowchart TD\n  A[\"Start or click Apply\"] --> B{\"Patch already in place?\"}\n  B -->|yes| C[\"Skip\"]\n  B -->|no| D[\"Back up the original as .dshpurge.bak\"]\n  D --> E[\"Replace the matched files\"]\n  E --> F[\"Override the shim\"]\n  F --> G[\"Inject the encrypted prompt shipped in the plugin, the text the prompt box shows by default\"]\n```\n\nOverride on each session:\n\n```mermaid\nflowchart TD\n  A[\"Restart or new session\"] --> B[\"Inject the plugin's encrypted default. No save click, and no host prompt file\"]\n```\n\nPrompt 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:\n\n```mermaid\nflowchart TD\n  L[\"Rule library: activate a set → writes prompt-inject.md\"]\n  W[\"Local rules: check AGENTS.md \u002F CLAUDE.md in the current dir\"]\n  P[\"Workspace policy: strict \u002F fallback \u002F always\"]\n\n  A[\"Turn start\"] --> B{\"prompt-inject.md non-empty?\"}\n  B -->|yes| C[\"Inject = prompt-inject.md (A)\"]\n  B -->|no| D{\"Any checked local md in the current dir, non-empty?\"}\n  D -->|yes| E[\"Inject = selected workspace md (B)\"]\n  D -->|no| F[\"Inject = plugin encrypted slot default (D)\"]\n  C --> G{\"Workspace baseline policy (C)\"}\n  E --> G\n  F --> G\n  G -->|strict| H[\"Drop DSH workspace baseline section\"]\n  G -->|fallback default| I{\"User inject present above? (A or B)\"}\n  G -->|always| J[\"Keep DSH workspace baseline section\"]\n  I -->|yes| H\n  I -->|no| J\n  H --> K[\"Final system prompt\"]\n  J --> K\n\n  L -.-> B\n  W -.-> D\n  P -.-> G\n```\n\nSkills stay out of the inject section:\n\n```mermaid\nflowchart LR\n  A[\"Settings import or \u002Fskills import\"] --> B[\"Write into the official skills directory\"]\n  B --> C[\"DSH loads it\"]\n  C --> D[\"Uninstall does not delete user skills\"]\n```\n\n---\n\n## Restore\n\n- Each target is copied to `\u003Cfile>.dshpurge.bak` before the first apply.\n- **Restore** or `\u002Fpurge revert` copies backups back and deletes them. With no backup, shim lines written by this plugin are stripped.\n- `prompt-inject.md` is a user file and is kept.\n- **Uninstall** restores first if patches were applied, then deletes the inject file, rule library, and the plugin itself.\n- Apply is idempotent.\n\n---\n\n## Path detection\n\nThe host surface is detected first: `web` \u002F `desktop` (`gui` \u002F `tui` are reserved and still fall back to web).\n\n**Web:**\n\n1. `DSH_HOME` \u002F `DSH_BASE`\n2. `.dsh` next to the dsh launcher (portable install, any drive)\n3. `npm prefix -g` \u002F `npm root -g`\n4. Nested `@deepseek-ai\u002Fdsh\u002Fnode_modules\u002F@deepseek-ai`\n5. `~\u002F.dsh`\n\n**Official desktop EXE:** the running official Harness install (`resources\u002Fapp` or the unpacked package). The drive letter is not hard-coded. A successful Apply restarts once.\n\nCommunity Desktop is not maintained.\n\nOfficial npm-global is not patched. Sealed `host-commands` \u002F `runtime-commands` are scrubbed, never injected.\n\nIf nothing is found, set `DSH_BASE` \u002F `DSH_DESKTOP_INSTALL`. No files are changed.\n\n---\n\n## Releases\n\nThe author's personal channel: [t.me\u002FLLM_PoJia](https:\u002F\u002Ft.me\u002FLLM_PoJia). Notes and updates show up there. GitHub [Releases](https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Freleases) still has older packages. The original may not be resold; forks must attribute.\n\n## Notes\n\n- Scope is rendered copy, defaults, and runtime logic inside local `@deepseek-ai\u002F*` packages, plus override files and rule sets under the harness home.\n- After an upgrade, unmatched originals show as skipped. Apply still completes, and those files are left unchanged.\n- Third-party plugin *source repos* outside `@deepseek-ai` are left alone (CMD silence may **best-effort** patch installed doctor \u002F market \u002F liangshen \u002F mnemon at runtime).\n- Install from the GitHub archive (there is no npm package): `dsh plugin --profile web add https:\u002F\u002Fgithub.com\u002FYuJunZhiXue\u002Fdsh-purge\u002Farchive\u002Frefs\u002Fheads\u002Fmaster.tar.gz` (use profile `desktop` for the EXE). From this repo, `add .`.\n\n---\n\n","dsh-purge 是一个面向 DeepSeek Harness（DSH）平台的红队安全测试插件，用于对大语言模型进行可控的越狱（jailbreak）能力验证。它支持按模型动态切换提示词策略，内置适配国产模型「小码酱」的默认提示模板，并提供本地化部署与私有网络靶标限制机制，确保测试合规性。项目基于 JavaScript 实现，依赖 Node.js 运行，强调可审计性、模型无关性与实验室环境约束。适用于 AI 安全研究人员在授权范围内开展模型对齐鲁棒性评估、防御策略验证及提示注入风险分析等红队测试场景。",2,"2026-11-24 04:40:00","CREATED_QUERY"]