yujunzhixue / dsh-purge
DeepSeek Harness 破甲:让所有模型都能破甲,不同模型可换不同提示词;默认提示词面向国模「小码酱」。Jailbreak for every model — swap prompts per model. 求 Star 收藏 ⭐ 如要二开,请查看署名要求部分
github.com/yujunzhixue/dsh-purgeIndexed at ac58b3eUp to date with upstream
What is dsh-purge?
dsh-purge is a cybersecurity red-team plugin for the official DeepSeek Harness already installed on your machine. It adds a control beside the session title where you apply, restore and edit prompt patches, so you can tell whether a block comes from the host layer or from the model itself. The plugin is written in JavaScript and distributed as an npm package.
Written by a model from the README and the source
78 files and 1,677 symbols in 5 modules, led by JavaScript (61 files) and Shell (1).
Code health
Hotspots average 1.1, the place fixes pay off most.
Use yujunzhixue/dsh-purge in your agent
Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.
- 1.In Claude, open Customize → Connectors, click +, then Add custom connector. On a Team or Enterprise plan an owner adds it first under Organization settings → Connectors.
- 2.Paste the server URL below as the Remote MCP server URL, then click Add.
- 3.Click Connect. A Repowise sign-in window opens. Approve access.
- 4.Repowise's tools are now available in your Claude chats.
Connect with one click. Sign in with Repowise (OAuth), no API key to copy. Works in Claude on the web, desktop, and mobile.
Docshttps://api.repowise.dev/mcp/yujunzhixue/dsh-purge
This repo is public, so anyone with a Repowise account and an API key can connect.
Try asking
- get_overview()
- get_answer("how is dsh-purge put together?")
- get_why("why is dsh-purge structured this way?")
Explore dsh-purge
- DocumentationModule-by-module documentation, 146 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Key features of dsh-purge
- Adds a dsh-purge dock beside the session title with Clean and Drill pages.
- The Clean page shows grouped patch status and offers Apply, Restore and Uninstall, along with a prompt editor and multiple rule sets.
- Host policy settings cover default copy, permission policy and tool limits while keeping official capabilities in place.
- On start, the plugin checks patches and reapplies them after npm overwrites node_modules.
- It works with the official Web and desktop EXE hosts without patching the Harness source tree.
How yujunzhixue/dsh-purge works
The command line entry point in bin/dsh-purge.js provides the status, apply, revert, uninstall and edit actions, and lib/index.js is the library entry point. The lib directory holds 53 of the project's files and contains most of the patch logic. The Clean page in the dock calls these actions to show grouped patch status and to write changes, while the Drill page handles the authorized local lab features. Identity comes from an encrypted prompt shipped in the plugin, and the host prompt file is not read. The plugin depends on @deepseek-ai/cordis and reads its settings from cordis.patch.yml, where the autoApplyOnStart option controls whether patches are reapplied when the host starts.
The codebase has 78 files and 1,677 symbols in 5 modules, led by JavaScript and Shell. Code health is 2.6 out of 10, rated at risk.
Getting started with dsh-purge
- Place the dsh-purge folder under the plugins directory of your DSH home, named dsh-purge.
- Add the dsh-purge dependency and bundle entry to the package.json of the web or desktop profile, keeping existing entries.
- Run pnpm install inside that profile directory.
pnpm install - Restart the host and apply the patches with the command line.
dsh-purge --apply
Commands copied from the README
yujunzhixue/dsh-purge FAQ
What is dsh-purge?
dsh-purge is a cybersecurity red-team plugin for the official DeepSeek Harness installed on your machine. It is meant for controlled evaluation on your own install, including checking whether a block comes from host policy or from the model.
How does dsh-purge work?
dsh-purge applies patches to the official DeepSeek Harness through a dock beside the session title. Its Apply, Restore and Uninstall actions write and revert those changes, and it reapplies them on start.
How do I install dsh-purge?
dsh-purge is installed by placing its folder under the plugins directory of your DSH home and adding it to the web or desktop profile package.json. You then run pnpm install in that profile directory and apply the patches from the host or with dsh-purge --apply.
What language is dsh-purge written in?
dsh-purge is written mainly in JavaScript, with one shell file, and is distributed as an npm package.
How is the dsh-purge code organized?
dsh-purge keeps its command line entry in bin/dsh-purge.js and its library entry in lib/index.js. The lib directory contains 53 of its files, and the package depends on @deepseek-ai/cordis.
When should I use dsh-purge?
dsh-purge is intended for controlled evaluation on your own DeepSeek Harness install, including seeing which default host policy is too tight. It is not a public scanner and does not target third-party sites.
What license does dsh-purge use?
dsh-purge uses the Apache-2.0 license.
The summary, features and answers on this page are written by a model from the README and the source, and refreshed with each index.
About this page
Get a page like this for your own codebase
Repowise built this map of yujunzhixue/dsh-purge from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.
Maintain yujunzhixue/dsh-purge?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of yujunzhixue/dsh-purge. Then add a badge to the README that links readers here.
Add a badge to your README
Every badge is public, cached, and updates on its own after every index. Nothing to install.
Repowise badge
Links to this page, with no score on it. Adding it also re-indexes the repo every week.
[](https://repowise.dev/repo/yujunzhixue/dsh-purge?src=badge_wiki)Code health badge
The repo's health score out of 10, from the latest index.
[](https://repowise.dev/repo/yujunzhixue/dsh-purge?src=badge_health)Code health card
A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.
[](https://repowise.dev/repo/yujunzhixue/dsh-purge?src=badge_card)