yexi-by/dsh-unrestricted ↗★ 845

dsh-unrestricted

Toggleable unrestricted mode for DeepSeek Harness: fuses execution rules into the active standard, ptc, cordis, minimal, and subagent prompts

Package
dsh-unrestricted
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.2 <0.2.3-0
Version
0.2.6
License
MIT
Last updated
Oct 31, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yexi-by/dsh-unrestricted

桌面端安装指定版本(使用桌面端内置 CLI)

"& '$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add github:yexi-by/dsh-unrestricted#v0.2.6"


安装后重启 `dsh web` 或 DSH 桌面端,按下方[使用说明](#使用说明)启用。

#### 更新

可在 DSH **「插件 → dsh-unrestricted」** 详情页底部的 **「版本与更新」** 卡片中点击 **「检查更新」** 与 **「立即更新」** 一键完成更新,或通过命令行手动更新:

```sh
dsh plugin --profile web remove dsh-unrestricted
dsh plugin --profile web add github:yexi-by/dsh-unrestricted#v0.2.6

更新后重启 dsh web 或 DSH 桌面端。

卸载
dsh plugin --profile web remove dsh-unrestricted

本地源码安装

调试本地源码目录时使用 file: 协议安装:

dsh plugin --profile web add file:D:/work/dsh/plugin/unrestricted

使用说明

安装后需确认以下两处开关均已开启:

  1. 启用插件:在左侧 「插件」 页面找到 dsh-unrestricted,打开插件开关。
  2. 启用破限:点开 dsh-unrestricted 详情页,在 「破限模式」 卡片中打开 「启用破限」。

设置卡片中同时提供:

  • 模式覆盖与提示词预览:显示 Standard、PTC、Cordis、Minimal 四种模式的生效状态,支持展开查看或一键复制各模式最终生成的完整系统提示词。
  • 版本与更新:打开插件详情页时自动检测 GitHub 最新版本并在标题栏显示「可更新」提醒徽标,支持在页面内一键更新。

注意事项

  • 接口层内容过滤:系统提示词只能改变模型自身的回答倾向。如果上游 API 网关设有额外的关键词拦截,触发时会直接断开或返回 400 错误,这类网关层拦截无法靠提示词绕过。
  • 宿主权限机制:插件不改变 DSH 的文件沙箱、命令审批弹窗及 Plan 模式写保护。

本地开发与测试

git clone https://github.com/yexi-by/dsh-unrestricted.git
cd dsh-unrestricted
pnpm install

pnpm typecheck
pnpm build
pnpm test

辅助脚本:

  • node tools/dump-prompts.mjs --repo --out tests/fixtures:从指定 DSH 源码目录导出原版提示词,更新测试 fixtures。
  • node tools/verify-live.mjs --repo :在本地验证四种模式的组装与还原结果(不调用模型接口)。

开源协议与致谢

使用说明

安装后需确认以下两处开关均已开启:

  1. 启用插件:在左侧 「插件」 页面找到 dsh-unrestricted,打开插件开关。
  2. 启用破限:点开 dsh-unrestricted 详情页,在 「破限模式」 卡片中打开 「启用破限」。

设置卡片中同时提供:

  • 模式覆盖与提示词预览:显示 Standard、PTC、Cordis、Minimal 四种模式的生效状态,支持展开查看或一键复制各模式最终生成的完整系统提示词。
  • 版本与更新:打开插件详情页时自动检测 GitHub 最新版本并在标题栏显示「可更新」提醒徽标,支持在页面内一键更新。