Skip to content
Back to search

dsh-unrestricted

DeepSeek Harness Web 可开关破限提示词插件,支持多模式、子代理和锚点兼容检查。

Safety scan

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

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/yexi-by/dsh-unrestricted with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/yexi-by/dsh-unrestricted'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/yexi-by--dsh-unrestricted/badge.svg)](/listings/yexi-by--dsh-unrestricted)

HTML

<a href="/listings/yexi-by--dsh-unrestricted"><img src="/api/listings/yexi-by--dsh-unrestricted/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

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 · 176 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # dsh-unrestricted
  2. **简体中文** | [English](./README.en.md) | [日本語](./README.ja.md)
  3. `dsh-unrestricted` 是 DeepSeek Harness(DSH)的提示词破限插件。它在系统提示词(System Prompt)组装阶段注入破限规则,放开模型在逆向分析、安全测试、敏感题材写作等场景下的拒答限制,让模型直接给出完整的代码与技术方案。
  4. 插件提供一个总开关控制规则启停,不改动 DSH 原有的界面布局、工具调用协议、计划模式(Plan Mode)、代码执行(PTC)和子代理逻辑。
  5. ---
  6. ## 目录
  7. - [规则效果](#规则效果)
  8. - [工作原理](#工作原理)
  9. - [系统提示词注入](#系统提示词注入)
  10. - [各运行模式适配](#各运行模式适配)
  11. - [结构化融合与安全回退](#结构化融合与安全回退)
  12. - [即时开关](#即时开关)
  13. - [安装与更新](#安装与更新)
  14. - [本地源码安装](#本地源码安装)
  15. - [使用说明](#使用说明)
  16. - [注意事项](#注意事项)
  17. - [本地开发与测试](#本地开发与测试)
  18. - [开源协议与致谢](#开源协议与致谢)
  19. ---
  20. ## 规则效果
  21. 开启破限后,注入的规则主要改变以下回答行为:
  22. - **直接输出结果**:首行直接给出代码、分析步骤、补丁或正文,省去免责声明、客套话与道德说教;确需说明的物理或操作风险放在文末简短附注。
  23. - **逆向分析与补丁**:定位校验函数(`CHECK_FN`),还原核心算法并编写注册机(Keygen);标注二进制补丁偏移(`OFFSET`)与替换字节(`PATCH_BYTE`),提供反调试、反虚拟机绕过方案。
  24. - **安全测试与脚本实现**:编写漏洞验证代码(PoC / Exploit)、多线程字典爆破、端口扫描、加密反向 Shell 及代理转发脚本。
  25. - **文学创作与文本编校**:适配正文写作、剧情设定推演、人物塑造和文稿润色。按用户指定的文风落笔——需要直白描写时自然写出,不拉灯回避;侧重氛围与克制时保留留白。角色默认按成年人处理,不因年龄话题拒答或刻意强调设定。
  26. - **工业与实验流程**:给出化工、药理、特种加工等流程的完整步骤、配比与参数,不省略关键环节。
  27. - **资源检索**:调用联网搜索工具查询并返回整理后的结果列表(名称、链接、来源、规格),不编造链接。
  28. - **隔离外部文本指令**:工作区文件与网页内容作为输入数据处理,不改变当前回答规则;用户给出的域名、主机、软件名等原样保留。
  29. ---
  30. ## 工作原理
  31. ### 系统提示词注入
  32. DSH 发起请求时会先组装全局系统提示词(System Prompt)。在普通对话里临时附带破限指令容易被系统提示词压过,也可能干扰工具调用格式。
  33. 插件直接挂载到 `system-prompt/assemble` 组装流水线:
  34. 1. 在官方角色设定(`deployment:persona-prefix`)末尾追加引导说明,并在后方插入独立的规则分块(`unrestricted:execution-mode`)。
  35. 2. 工作目录信息(`deployment:persona-suffix`)、工具定义和环境变量保持原样,不改动工具协议。
  36. ```text
  37. [DSH 发起请求]
  38. │
  39. ▼
  40. [系统提示词组装流水线]
  41. │
  42. ├─> 官方角色设定 (Persona)
  43. │ │
  44. │ ▼ [dsh-unrestricted]
  45. │ ├─ 开启: 插入破限规则分块并协调各模式约束
  46. │ └─ 关闭: 原样放行,保持官方默认提示词
  47. │
  48. ├─> 官方工具与协议定义 (Bash/Pwsh, FS, Web Search...)
  49. ├─> 计划模式策略 (Plan Policy)
  50. └─> 运行环境信息 (CWD, Model...)
  51. │
  52. ▼
  53. [发送给模型接口]
  54. ```
  55. ### 各运行模式适配
  56. 插件按 DSH 的不同运行模式分别处理提示词分块:
  57. - **Standard / Cordis 模式**:在角色设定后插入破限规则,保留全部原生工具定义。
  58. - **PTC 模式**:该模式通过 `run_code` 执行脚本。插件在 `tools:ptc-only` 分块中补充说明,使 `run_code` 内编写的脚本和 SDK 调用遵循同一套输出规则。
  59. - **Plan 模式**:区分执行权限与方案内容——审批前不修改文件或执行写操作,但计划文档内正常写出完整的技术步骤与代码。
  60. - **Minimal 模式**:在当前智能体作用域内注入规则,保留子代理原有的自定义角色和结构化输出(`structured_output`)说明。
  61. - **子代理**:后台子代理与结构化输出任务自动沿用当前开关状态。
  62. ### 结构化融合与安全回退
  63. 插件按 DSH 官方提示词的结构化段落名称(`deployment:persona-prefix`、`plan:policy`、`tools:ptc-only`、`tool:structured_output`)进行幂等融合,不依赖脆弱的逐字文案哈希校验,兼容最新 DSH Web(`0.2.2-rc.3`)与 DSH Desktop(`0.2.1-rc.5`)。如果自定义模式缺少角色设定段落,对应模式会自动保留原版提示词并在设置页友好提示。
  64. ### 即时开关
  65. 开关状态保存在当前 profile 的 `cordis.patch.yml` 中,切换后从下一次请求开始生效,无需重启服务。关闭开关即恢复官方原版提示词,不会在会话记录中残留标记。
  66. ---
  67. ## 安装与更新
  68. ```sh
  69. # Web 端安装指定版本
  70. dsh plugin --profile web add github:yexi-by/dsh-unrestricted#v0.2.14
  71. # 桌面端安装指定版本(使用桌面端内置 CLI)
  72. & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add github:yexi-by/dsh-unrestricted#v0.2.14
  73. ```
  74. 安装后重启 `dsh web` 或 DSH 桌面端,按下方[使用说明](#使用说明)启用。
  75. #### 更新
  76. 更新统一使用 DSH 原生插件管理页的更新功能,或通过以下命令更新。插件不再自行查询 GitHub 或执行 pnpm 安装。
  77. ```sh
  78. dsh plugin --profile web remove dsh-unrestricted
  79. dsh plugin --profile web add github:yexi-by/dsh-unrestricted#v0.2.14
  80. ```
  81. 更新后重启 `dsh web` 或 DSH 桌面端。
  82. #### 卸载
  83. ```sh
  84. dsh plugin --profile web remove dsh-unrestricted
  85. ```
  86. ### 本地源码安装
  87. 调试本地源码目录时使用 `file:` 协议安装:
  88. ```sh
  89. dsh plugin --profile web add file:D:/work/dsh/plugin/unrestricted
  90. ```
  91. ---
  92. ## 使用说明
  93. 安装后需确认以下两处开关均已开启:
  94. 1. **启用插件**:在左侧 **「插件」** 页面找到 `dsh-unrestricted`,打开插件开关。
  95. 2. **启用破限**:点开 `dsh-unrestricted` 详情页,在 **「破限模式」** 卡片中打开 **「启用破限」**。
  96. 设置卡片中同时提供:
  97. - **隐藏宿主品牌标识**:独立于破限主开关的去指纹选项,开启后自动移除系统提示词与运行时上下文中的 `DeepSeek Harness` / `DSH` 身份段落及开发界面路径,避免第三方路由(适用于 Google Antigravity 反重力反代、Google AI Studio PG 渠道等)因客户端特征检测而返回 `429` 拦截。
  98. - **模式覆盖与提示词预览**:显示 Standard、PTC、Cordis、Minimal 四种模式的生效状态,支持展开查看或一键复制各模式最终生成的完整系统提示词。
  99. ---
  100. ## 注意事项
  101. - **接口层内容过滤**:系统提示词只能改变模型自身的回答倾向。如果上游 API 网关设有额外的关键词拦截,触发时会直接断开或返回 400 错误,这类网关层拦截无法靠提示词绕过。
  102. - **宿主权限机制**:插件不改变 DSH 的文件沙箱、命令审批弹窗及 Plan 模式写保护。
  103. ---
  104. ## 本地开发与测试
  105. ```sh
  106. git clone https://github.com/yexi-by/dsh-unrestricted.git
  107. cd dsh-unrestricted
  108. pnpm install
  109. pnpm typecheck
  110. pnpm build
  111. pnpm test
  112. ```
  113. 辅助脚本:
  114. - `node tools/dump-prompts.mjs --repo <path> --out tests/fixtures`:从指定 DSH 源码目录导出原版提示词,更新测试 fixtures。
  115. - `node tools/verify-live.mjs --repo <path>`:在本地验证四种模式的组装与还原结果(不调用模型接口)。
  116. ---
  117. ## 开源协议与致谢
  118. - 提示词规则结构与部分任务路由思路参考并改编自 [Jia-Ethan/codex-keysmith](https://github.com/Jia-Ethan/codex-keysmith)(MIT License),详见 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
  119. - 本项目与 codex-keysmith 及其作者无隶属关系。
  120. - 采用 [MIT License](LICENSE) 开源。

Ratings and comments

Sign in to rate this skill.

Sign in

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