DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Tool Governor — DeepSeek Harness 插件(DSH Plugin)
← Plugins
T

dsh-tool-governor

Tool Governor

一个 DeepSeek Harness 插件,用于拦截重复的工具调用、限制每轮预算,并打破失败循环以减少令牌浪费。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:George-Java/dsh-tool-governor#03a274f710b4b65f9019c53a4d3dc4bca25bdcfc
README兼容性版本

兼容性与来源证明

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

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

版本

1.0.1stable
2026/10/17

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。Plugin@opencode2dsh/dsh-plugin供 DeepSeek Harness (DSH) 使用的免费 OpenCode Zen 模型:原生 dsh-llm 适配器插件,无需 API 密钥。

README

dsh-tool-governor

A DeepSeek Harness plugin that stops runaway tool calls before they burn through your token budget.

What it does

  • Repeat-call breaker — denies the same tool + argument combination after N repeats
  • Per-turn budget fuse — hard-caps tool calls and model steps per turn
  • Failure-loop cutoff — pauses a tool after consecutive failures
  • Monotonic guard — denies are final; downstream layers cannot re-allow a blocked call

Install

dsh plugin --profile web add dsh-tool-governor

Restart DSH after installing. Verify the bundle is registered:

dsh --profile web --dump-config | findstr dsh-tool-governor

Pin a version, or install directly from source:

dsh plugin --profile web add dsh-tool-governor@1.0.1
dsh plugin --profile web add github:George-Java/dsh-tool-governor

Compatibility

ItemValue
DSH0.2.x (tested on 0.2.1-rc.2)
PlatformWindows / macOS / Linux
Node.js^22.19.0 || >=24.0.0

The plugin hooks tools/pre-execute, tools/post-execute, ctx.tools.guard, and agent/pre-step at the profile root, so it needs only the global tools service. It reads the acting agent from exec.agent / event.agent, and takes the current turn from the agent/pre-step payload (event.turn), falling back to agent.currentTurn on 0.1.x. A new turn starts a fresh budget.

Configuration

All fields are optional — defaults are applied when omitted.

FieldDefaultDescription
maxToolCallsPerTurn24Max tool calls allowed in one turn
maxStepsPerTurn16Max model steps allowed in one turn
repeatThreshold2Deny after the same call repeats this many times
consecutiveFailureThreshold2Pause a tool after N consecutive failures
denyTools[]Glob patterns of tools to always deny (e.g. ["browser_*"])
denyMessagebuilt-inMessage injected when a call is denied

Override through the profile cordis.patch.yml:

- id: dsh-tool-governor
  name: dsh-tool-governor
  config:
    maxToolCallsPerTurn: 12
    repeatThreshold: 1

Uninstall

dsh plugin --profile web remove dsh-tool-governor

How it works

  1. tools/pre-execute — denies blacklisted tools, exhausted per-turn budgets, repeated signatures, and failure loops.
  2. tools/post-execute — counts completed calls and tracks consecutive failures.
  3. ctx.tools.guard — a monotonic, synchronous guard that makes earlier denials final.
  4. agent/pre-step — records the current turn for every agent and rejects the turn once its model-step budget is spent.

Per-agent, per-turn ledgers are keyed by agent id and turn number.

License

MIT