插件目录 / Developer / dsh-repeat-stop
dsh-repeat-stop
已验证 · 实测可装 173787247
功能简介
Hard-stop consecutive identical DeepSeek Harness tool calls after a configurable streak.
可用 — 实测通过,早期项目
Hard-stop consecutive identical DeepSeek Harness tool calls after a configurable streak. 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-repeat-stop
DeepSeek Harness plugin: hard-stop consecutive identical tool calls (same tool + same arguments).
Pairs with dsh-tool-budget. Part of dsh-wsl-kit.
English
Why
Official repeat-tool-reminder only advises and never blocks. Agents can still spin on the same failing call. This plugin denies the next call after a streak.
Default: 6 identical calls may run; the 7th is blocked. Changing args/tool or a real user message resets the streak.
Install
dsh plugin --profile web add github:173787247/dsh-repeat-stop
Restart dsh web. No new tool appears. When it fires, Trajectory shows dsh-repeat-stop: blocked.
Config
- id: dsh-repeat-stop
name: dsh-repeat-stop
config:
enabled: true
threshold: 6
exclude:
- job_output
- job_list
- job_kill
# include: [] # if set, only these names (wildcards ok) are tracked
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
Master switch |
threshold |
6 |
Allowed streak; next call blocked (integer ≥ 2) |
exclude |
job_* | Names that never count |
include |
(empty) | If set, only these names are tracked |
Test
npm test
License
MIT
中文
为什么需要
官方重复提醒只劝不停。本插件在「同一工具 + 同一参数」连续达到阈值后硬拦截,避免 Agent 原地空转。
默认连续 6 次可执行,第 7 次拒绝。换参数、换工具或用户再发消息会清零。
安装
dsh plugin --profile web add github:173787247/dsh-repeat-stop
触发时 Trajectory 出现 dsh-repeat-stop: blocked。
与 tool-budget 的区别
| 插件 | 拦截对象 |
|---|---|
dsh-repeat-stop |
连续相同调用 |
dsh-tool-budget |
整场会话工具总次数 |
许可
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-repeat-stop」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:173787247/dsh-repeat-stop Headless(CLI)profile:
dsh plugin --profile headless add github:173787247/dsh-repeat-stop 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。