173787247/dsh-repeat-stop0

dsh-repeat-stop

连续相同 DeepSeek Harness 工具调用硬中断插件:达到连续相同调用阈值后拦截下一次调用。

AI 分析

适合防止工具调用无意义循环的场景;参数变化可重置计数防止误拦。

包名
dsh-repeat-stop
版本
0.1.0
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:173787247/dsh-repeat-stop

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

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:

- 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.
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.