DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Model Gate — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-model-gate

Model Gate

单模型禁用门控:从所有发现路径中隐藏被拒绝的模型,使用协议内错误块阻止调度,并为拒绝列表提供设置区段界面

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-model-gate@0.1.2
README兼容性版本
Model gate settings panel

兼容性与来源证明

Model Gate 以 dsh-model-gate 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/8/24

版本

0.1.2stable
2026/8/24
0.1.1stable
2026/8/23

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
99.6 kB
文件数
16
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
0
最近提交
2026/8/23
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

README

dsh-model-gate

English | 中文

Single-model disable gate for DSH. Deny whole provider routes or exact provider/model pairs - denied models disappear from every discovery path and any dispatch that still reaches them terminates with an in-protocol MODEL_DISABLED error chunk.

Non-destructive by design: nothing in your provider configuration or credentials is touched. The denylist is an independent overlay; removing an entry (or the plugin) restores everything exactly as it was.

Screenshots

Settings panel — the「模型门禁」section reads the UNFILTERED catalog through the plugin's own typert service: one collapsible group per provider, one switch per model row, enabled-count badge on the group header.

Model gate settings panel

Discovery hiding — deny a model and it disappears from the web selector and every other discovery path; the current selection clears with it.

enableddenied
Picker with the model enabledPicker with the model denied

Dispatch backstop — a turn that still reaches a denied model (subagents, session titles, stale references) ends with the in-protocol MODEL_DISABLED error chunk; no network request is issued.

Dispatch blocked with MODEL_DISABLED

Install

From npm - one command:

dsh plugin --profile web add dsh-model-gate

Or from a Release tarball - download dsh-model-gate-<version>.tgz, unpack it, and point the official installer at the unpacked directory (the tgz ships prebuilt lib/, so no build step and no pnpm allowBuilds prompt):

tar -xzf dsh-model-gate-0.1.2.tgz    # -> ./package/
dsh plugin --profile web add ./package

Then restart DSH once so the bundle layer picks up the new entry. Every denylist edit afterwards hot-applies through settings - no further restarts. Verified against DSH 0.1.x-rc.

Usage

Edit the denylist section in ~/.dsh/settings.yaml - changes hot-apply, no restart:

llm-model-gate:
  disabledProviders:
    - openrouter
  disabledModels:
    - "*/kimi-k2.7-code"        # deny this model id on every provider
    - "token-rhythm/glm-5"      # deny one exact provider/model pair

Matching is exact and case-sensitive. A disabled provider route hides all of its models. Model ids listed with a * + slash prefix are denied on every provider, including dedicated routes (e.g. DeepSeek direct) that accept explicit directory-external ids.

Settings UI

The web settings page has a dedicated「模型门禁」section (one collapsible group per provider, one switch per model row). The panel reads the UNFILTERED catalog through the plugin's own typert service, so currently denied models render as off and can be turned back on; toggling writes the denylist through the same hot-apply settings chain as manual YAML editing.

Row-state notes:

  • A row is off when its exact pair, a */model star rule, or the whole provider route denies it; the reason is tagged on the row.
  • Turning a star-denied row back on removes the covering star rule for every provider (the denylist has no per-provider exceptions); the panel re-renders from the returned state, so affected rows visibly flip together.
  • Provider headers show an enabled-count badge; row switches are authoritative.

Semantics

  • Discovery (primary): the web selector, session.models / llm.models catalogs, task_models, and API request validation all read the filtered view - a disabled model behaves as if it had never been configured. Re-enable and it reappears on the next refresh.
  • Dispatch (backstop): any path that still dispatches a denied model - subagents, session-title, custom routing, explicit ids - is stopped at the public llm/stream waterfall with a single terminal finish{kind:"error", code:"MODEL_DISABLED"} chunk. The turn ends with a normal model error; no network request is issued.
  • If the disabled model is the current session or default model, the next request on it fails; nothing switches automatically. Failover-style plugins listening on agent/request-error compose naturally.

Boundaries

  • Vision-router clones are separate route keys: disabling openrouter does not disable openrouter-vision - list both if you want both.
  • Providers stay installed; only their public listing is filtered. Provider configuration surfaces (adding/editing providers) are unaffected.
  • Bypassing the DSH LLM service entirely (direct HTTP) is outside DSH.
  • Uninstalling removes the bundle entry; the plugin restores the native listProviders/listModels methods on unload with zero residue. A leftover denylist section in settings.yaml is harmless.

License

MIT. An independently distributed plugin: DSH itself is untouched and keeps its own license.

Development

bash scripts/build.sh     # requires DSH_CHECKOUT or ~/dsh-harness; also shims node_modules/.bin/tsdown
npm run build:client      # bundle src/client/main.tsx -> lib/client.js (ModuleLoader wrapper)
npm test                  # unit tests (node:test) against lib/ - run the build first on a fresh clone

Tests import the compiled lib/ outputs (relative ESM imports in source need tsc's .js rewriting, which node's type stripping does not perform), which resolves the host packages through the symlinks that scripts/build.sh creates - run the build first on a fresh clone.

Inside a super-injector environment: dev_inject_plugin <this dir> then dev_reload_package to iterate without restarting.

相关插件

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

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Mobiledsh-mobileDeepSeek Harness 移动端适配与安全访问插件,支持局域网、远程连接、Android App 和手机浏览器。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。