DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-autotier

Autotier

DeepSeek Harness 的高能力/低成本模型层级自动路由:基于意图的层级选择应用于代理/请求瀑布流,计划模式交接(高能力模型制定计划,低成本模型执行),工具/预执行阶段的确定性高风险防护,带 TTL 回退的失败升级、/tier 命令,以及层级状态至

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-autotier@0.2.3
README兼容性版本

说明

DeepSeek Harness 的高能力/低成本模型层级自动路由:基于意图的层级选择应用于代理/请求瀑布流,计划模式交接(高能力模型制定计划,低成本模型执行),工具/预执行阶段的确定性高风险防护,带 TTL 回退的失败升级、/tier 命令,以及层级状态工具

兼容性与来源证明

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

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

版本

0.2.3stable
2026/9/12
0.2.2stable
2026/9/10
0.2.1stable
2026/9/10
查看其余 2 个版本收起版本
0.2.0stable
2026/9/9
0.1.1stable
2026/9/9

相关插件

正在加载相关插件…

最新版
0.2.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
1.4 MB
文件数
101
Surface
web
许可证
Apache-2.0
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/9/20
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

dsh-autotier

Automatic model-tier routing for DeepSeek Harness: one user instruction enters, one tier decision comes out — no manual model switching.

Complex intent (architecture, planning, debugging, multi-step engineering) is planned on the strong tier and then implemented on the cheap tier. Simple intent (questions, retrieval, batch chores, daily work) is designed and implemented on the cheap tier directly. While the cheap tier executes, high-risk tool calls are denied by a deterministic guard, and repeated failures escalate to the strong tier with a TTL fallback.

  • Official repository: https://github.com/PerryLink/dsh-autotier
  • npm: dsh-autotier (bare, unscoped)

Compatibility

HarnessStatus
@deepseek-ai/dsh 0.1.2-rc.1compatible; the compat workflow installs this line end-to-end
@deepseek-ai/dsh 0.1.5-rc.2compatible; verified end-to-end (real profile install, --dump-config row, keyless headless smoke) and in the compat matrix
@deepseek-ai/cordis ^4.0.2, @deepseek-ai/schemastery ^3.18.2peer baseline

Peer ranges name both published lines explicitly (`>=0.1.2-rc.1 <0.2.0 ||

=0.1.5-alpha.1 <0.2.0`), because a semver range whose only prerelease comparator sits on an earlier version tuple does not admit a later alpha. They are refreshed per published wave.

The plugin is host-plane only. It needs no agent preset of its own: the host row applies to every session. A one-line prompt section in your preset is optional and only makes the router's decisions visible to the model (see Install & uninstall).

What you get

  • Intent gate — every turn is classified from deterministic signals (message text, tool names, image presence, conversation length). The zero-token rule layer decides when it is confident; only a low-confidence turn calls the cheap judge model, and never on a cooldown.
  • Tier landing on the official seam — the decision is applied on the agent/request waterfall by returning a replacement provider/model/effort triple. Sampling scalars the session already chose (temperature, maxTokens, stop) are preserved.
  • Plan-mode handoff — a complex instruction enters plan mode on the strong tier; leaving plan mode drops back to the cheap tier for implementation.
  • High-risk guard — while the cheap tier executes, destructive commands (rm -rf, sudo, mkfs, git push --force, credential-file writes, …) are denied with a corrective message telling the model to escalate instead.
  • Failure escalation — repeated failures (optionally same-signature) raise the tier for a TTL; a model/route failure walks the configured fallback chain.
  • Manual escape hatches — /tier auto|strong|cheap|off and the tier_status / tier_route tools. Setting routingMode: delegated (or /tier off) stops routing for a session that must keep its own model.
  • ctx.autotier service — a small read surface (status) plus the autotier/route veto waterfall and autotier/tier-changed event, so other plugins can observe or override a decision.

Quick start

npm i -g dsh1024
dsh1024 plugin --profile web add dsh-autotier

Then start (or restart) the harness. The row is appended to your profile's cordis.patch.yml; routing starts on the next turn with no further setup.

Install & uninstall

npm channel

npm i -g dsh1024
dsh1024 plugin --profile web add dsh-autotier

git channel

git clone https://github.com/PerryLink/dsh-autotier.git
cd dsh-autotier && pnpm install && pnpm run build
dsh plugin --profile web add .

Optional preset prompt section. The router works without it. To let the model know which tier it is running on, add one row to your agent preset (docs/preset-row.md has the exact block):

- insert:
    - id: autotier-prompt
      name: '@deepseek-ai/dsh-system-prompt'
      # sections: [...]  — see docs/preset-row.md

Uninstall

dsh plugin --profile web remove dsh-autotier

The row, its settings namespace, its command, its tools and its listeners are all removed with the plugin; nothing is written outside the settings document.

Configuration

Every key is validated at load time; an invalid value fails loudly instead of silently disabling routing. cordis.patch.yml in this repository documents the same keys inline.

KeyDefaultMeaning
tiers.strong.providerdeepseek-officialProvider for the planning/review tier.
tiers.strong.modeldeepseek-v4-proCatalog id of the strong model.
tiers.strong.efforthighAdapter vocabulary off | low | high | max.
tiers.strong.followSessionfalsefalse = this tier's effort overrides the session's.
tiers.strong.fallback[]Ordered provider/model landings when the tier is unavailable.
tiers.cheap.providerdeepseek-officialProvider for the implementation tier.
tiers.cheap.modeldeepseek-v4-flashCatalog id of the cheap model.
tiers.cheap.effortlowAdapter vocabulary off | low | high | max.
tiers.cheap.followSessiontruetrue = inherit the session's effort so an explicit choice wins.
tiers.cheap.fallback[]Ordered provider/model landings when the tier is unavailable.
tiers.vision.providerdeepseek-officialProvider for image-carrying turns.
tiers.vision.modeldeepseek-v4-flash-vision-expThe catalog's image-capable model.
intent.ruleThreshold0.7Confidence at or above which the rule layer decides alone.
intent.attemptBand.enabledfalseStart the middle band on the cheap tier and escalate on a signal.

All keys can also be edited live from the autotier settings namespace ($DSH_HOME/settings.yaml); a write that violates a cross-field requirement is refused at save time and the last good policy stays in effect.

Tools & surfaces

SurfaceKindPurpose
/tiercommandauto | strong | cheap | off | status; session-scoped override.
tier_statustoolCurrent tier, mode, escalation TTL and guard state.
tier_routetoolRoute one intent string without sending a request (dry run).
ctx.autotierservicestatus() read surface for other plugins.
autotier/routeserial eventThird parties may veto a proposed tier.
autotier/tier-changedemit eventObservability when the effective tier changes.

Permissions & data

  • Files — the plugin reads nothing and writes nothing except through the shared settings service (the autotier namespace).
  • Network — the only outbound traffic is the judge call, which goes through the normal ctx.llm path and the configured provider.
  • Session log — the plugin appends no custom session events. The routing trail is the plugin logger plus the live autotier/tier-changed bus event; the only append it makes is the plan/mode fallback when the plan-mode service is absent. Custom event types are fail-closed on 0.1.2-alpha.1 and later, so no durable plugin-owned record is written.
  • Secrets — no credential is read, logged or stored by this plugin.

Security boundaries

  • The guard is a defence in depth, not a sandbox. It denies the patterns it knows on the cheap tier and never weakens dsh-defend, the approval service, or the sandbox policy. Keep those enabled.
  • The guard protects only the tiers listed in guard.tiers (cheap by default). A strong-tier turn is not blocked by design: the strong model is the reviewer.
  • If the guard itself throws, the call is escalated to the strong tier rather than allowed — a broken guard must not become an open door.
  • /tier off disables routing entirely; the harness then behaves exactly as it did before the plugin was installed.

Known limitations

  • The rule layer is deterministic and therefore finite: a novel phrasing of a complex request may start on the cheap tier and escalate only after a failure or a guard denial. The judge call covers the low-confidence middle.
  • Escalation is per-agent and in-memory; a harness restart starts from auto.
  • Tier switching resets the provider prompt cache for the changed request, so very chatty sessions may see a small cache-miss cost on the switch turn. The hysteresis thresholds exist to keep that rare.
  • The plugin routes conversation requests. Compaction and title generation are separate host seams; align their own model settings with the cheap tier if you want the same cost profile (docs/supporting-lanes.md).
  • followSession: true on the cheap tier means an explicit session model choice wins; in that case the cheap tier cannot force its own model.
  • The Settings card and composer tier pill shipped in 0.2.0. The card (routing mode, live tier landings, model catalog) lives in the Plugins settings section and the pill cycles the session mode from the composer.
  • A model picked in the GUI is not detected automatically. The router does not watch the agent-default-model document, so switching models there does not by itself stop routing — use routingMode: delegated or /tier off.
  • Fingerprint posteriors are in-memory. They reset on restart and re-learn from the judge's cold-start fallback; persisting them through the settings document is planned for v0.2.
  • The attempt-first middle band ships disabled. intent.attemptBand.enabled stays false until the calibration corpus and its metric gate land (v0.2).

Development

pnpm install
pnpm run typecheck      # against the local harness checkout type faces
pnpm run typecheck:ci   # against the published 0.1.5-rc.2 faces (what CI runs)
pnpm test
pnpm run build
pnpm run verify:self-contained
pnpm run verify:artifacts
pnpm pack

pnpm run build emits lib/types (tsc declarations) and lib/index.js (tsdown bundle). Tests use the published host packages directly — real Context, real session/tools/commands/settings services — plus one real Loader composition over a temporary cordis.yml.

Topics

dsh, dsh-plugin, deepseek-harness, deepseek, cordis, router, model-tier, cost, auto.

Contributors

PerryLink. Issues and pull requests are welcome at https://github.com/PerryLink/dsh-autotier/issues.

License

Apache-2.0. See LICENSE and THIRD_PARTY_NOTICES.md.

intent.attemptBand.tauLow
0.45
Lower bound of the attempt-first band.
intent.hysteresis.toStrong0.8Score that switches a cheap turn to strong.
intent.hysteresis.toCheap0.6Score below which a strong turn returns to cheap.
intent.rules[]Declarative rule table (when.patterns / when.tools / when.cwd, tier, priority).
intent.judge.enabledtrueAllow the low-confidence judge.
intent.judge.model''Judge model id; empty = first catalog model containing flash.
intent.judge.temperature0Judge sampling temperature.
intent.judge.maxTokens16Judge output cap (it answers with one word).
intent.judge.cooldownMs30000Minimum gap between two judge calls.
intent.judge.timeoutMs2000Judge call timeout.
intent.judge.unavailableSkip2Consecutive judge failures after which the turn skips it.
intent.scenariosall truePer-scenario switches: coding, review, planning, retrieval, batch, daily, longText, multimodal.
intent.costModebalancedAmbiguity arbitration: cost-first | quality-first | balanced.
guard.enabledtrueEnable the deterministic high-risk guard.
guard.tiers[cheap]Tiers the guard protects.
guard.whitelist[]Commands, tools or path prefixes that never trip the guard.
guard.protectedPaths['.dsh','AGENTS.md','package.json','.github/workflows']Self-modification surfaces that force strong-tier review.
guard.interopDefendautoRelationship with dsh-defend: auto audits coexistence, none stays silent.
escalation.threshold2Failures within the window that raise the tier.
escalation.windowMs60000Failure-counting window.
escalation.ttlMs180000How long an escalation stays in effect.
escalation.fallbackTtlMs300000TTL used after a fallback landing was taken.
escalation.signaturetrueCount same-signature recurrences instead of every failure.
routingModeautoauto | strong | cheap | delegated | off.