鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-repeat-stop

在连续相同参数的同一工具调用达到可配置次数后,拒绝下一次调用。

安全权限
访问 GitHub
文档README

dsh-repeat-stop

DeepSeek Harness plugin: hard-stop consecutive identical tool calls.

Official repeat-tool-reminder only advises (default at 3 / 5 / 8) and never blocks. After a streak of the same tool with the same arguments, this plugin denies the next call so the agent cannot spin in place.

默认:连续 6 次相同调用可以执行,第 7 次被拦。换参数、换工具、或用户再发一条消息都会清零计数。

Install

▼
sh
复制代码
dsh plugin --profile web add github:173787247/dsh-repeat-stop # or a local checkout: dsh plugin --profile web add /absolute/path/to/dsh-repeat-stop

Restart dsh web. No new tool appears. When it fires, Trajectory shows a tool error starting with dsh-repeat-stop: blocked.

Counting happens in the synchronous tool guard, so a single turn that fires the same concurrent-safe call many times (for example net_doctor) is still capped.

Topics

On GitHub, add dsh-plugin.

Config

Override the whole row in the profile cordis.patch.yml:

▼
yaml
复制代码
- id: dsh-repeat-stop name: dsh-repeat-stop config: enabled: true threshold: 6 exclude: - job_output - job_list - job_kill
KeyDefaultMeaning
enabledtrueSet false to disable.
threshold6How many identical calls may run; the next one is blocked. Integer >= 2; invalid values fall back to 6.
excludejob_output, job_list, job_killTool-name wildcards that never count or block.
include(empty)If set, only these names are tracked.

A real user message resets the streak (same as the official reminder). Denied repeats still count, so hammering the same call stays blocked until the arguments change or the user speaks. Missing tool arguments count as {}.

Test

▼
sh
复制代码
npm test

Changelog

  • 0.1.1 — unit tests; invalid threshold no longer crashes load; missing arguments match {}.
  • 0.1.0 — first release: deny after a streak of identical tool calls.
安全权限

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:173787247/dsh-repeat-stop

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
cc-safety-net
执行前守卫,在工具调用运行前拦截破坏性 Git 与文件系统命令,以及对 SSH 密钥、.env 等机密文件的访问。
dsh-workspace-write-plus
增加工作区修改++权限档,文件工具仍锁在工作区,可用通配符放行 Git Bash 等程序以跳过 Windows 进程沙箱。
user-management
用户管理:给 dsh web 加登录门禁,未登录访问弹登录/注册页,首个注册者自动成为管理员;管理员可管理用户/角色,带登录与访问审计。
dsh-security-guard
DSH 插件安全卫士:28 条规则静态扫描、风险评分、白名单/黑名单、本地 Web 仪表盘与 DSH 内风险弹窗。
dsh-route-fence-linter
审计 profile 内所有插件 HTTP 路由的浏览器信任围栏:插件路由在 Web 服务器的最长前缀匹配中优先,因此缺少围栏的路由会被静默暴露;逐条给出文件与行号级别的证据。