DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
A

dsh-auto-preset

Auto Preset

DSH 插件:记住每个会话中上次手动选择的权限预设,并在重新打开会话时恢复该选择。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:heyuanliu3-byte/dsh-auto-preset#8c0847fc8db629730ed233a62202581b1db40f2a
README兼容性版本

兼容性与来源证明

Auto Preset 以 dsh-auto-preset 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/24

版本

0.1.0stable
2026/10/24

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/10/24
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 security-access 分类下经过校验的插件。

Experimental Auto Review@deepseek-ai/dsh-experimental-auto-review针对每个工具的 LLM 授权审查,适用于 DeepSeek Harness Auto 权限预设Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。

README

dsh-auto-preset

A small DeepSeek Harness (DSH) plugin that remembers your last manual permission-preset choice for each session and restores it when you reopen that session.

Status: early / experimental. It talks to DSH's experimental permissionPresets API and was tested against @deepseek-ai/dsh 0.2.1-rc.2 and 0.2.1-rc.3 (the permission-presets code is identical in both). A future DSH release may change the API and break it.

Why

DSH's permission presets (workspace-write, danger-full-access, and the experimental auto = auto review) are stored per session. The default preset for a session is inferred from the process defaults, so a session can come back as the wrong mode after a restart — and the experimental Auto preset cannot be configured as the default preset at all:

// @deepseek-ai/dsh-permission-presets
if ("auto" in this.presets) throw new Error('permission: "auto" is reserved ...')
if (!Object.hasOwn(this.presets, defaultPreset)) throw new Error('permission: unknown default preset')

This plugin instead watches what you actually pick and puts it back.

Behavior

  1. First time a session is opened: do nothing. The system default applies.
  2. You switch a session to Auto review → remembered. Reopening the session restores Auto review.
  3. You switch it to Full access → remembered. Reopening keeps Full access; the plugin will not force Auto back.
  4. You later switch back to Auto review → remembered again. The plugin follows your last manual choice.

In one sentence: it follows your latest manual choice; it never overrides a choice you made.

State is kept in state.json next to the plugin (persists across DSH restarts). Delete that file to reset everything.

Install

From source

git clone https://github.com/heyuanliu3-byte/dsh-auto-preset.git
dsh plugin --profile web add link:/absolute/path/to/dsh-auto-preset

Then add "dsh-auto-preset" to the profile's bundle list (package.json → dsh.profile.bundles) and restart the DSH web server.

From npm

Once the package is published to npm:

dsh plugin --profile web add dsh-auto-preset

The plugin must be loaded after @deepseek-ai/dsh-experimental-auto-review, because the auto preset only exists while that bundle is live.

How it works

  • session/created fires when a session enters the store — for a brand-new session and for a reopened one.
  • session/event (permission/preset) tells the plugin which preset was selected. Events emitted before the plugin has "armed" a session (the initial pin) are ignored, and the plugin's own presets.set() calls are ignored via a reentrancy flag.
  • On open, if a stored choice exists and differs from the current value, the plugin calls permissionPresets.set(session, storedChoice).

See lib/index.js — it is ~130 lines.

Caveats

  • Experimental API: the permission-presets internals may change between DSH releases.
  • Only permission/preset events are observed; a "custom" sandbox/approval combination is not represented as a preset and is therefore not restored.
  • Web profile only in my setup; it does not require any non-official plugin in the desktop profile.

License

MIT — see LICENSE.