DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

X Loop Guard — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
X

dshx-loop-guard

X Loop Guard

Detect and stop repeated identical tool calls (agent loops), mainly for small local models.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:callaumyan-design/dshx-loop-guard#a67457fb1234ce14076dbea9950a2361bb2d9b23
READMECompatibilityVersions

Compatibility and provenance

X Loop Guard is published as dshx-loop-guard and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/19/2026

Versions

1.0.0stable
10/19/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/19/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in agents-orchestration.

Headless@deepseek-ai/dsh-headlessThe dsh one-shot bundle: a direct core Agent/Session runner over dsh-base with no Host, HTTP, or browser layerExperimental Agent Team Profile@deepseek-ai/dsh-experimental-agent-team-profileAgent Teams collaboration, tools, and Web UI in one experimental bundleExperimental Ralph Bundle@deepseek-ai/dsh-experimental-ralph-bundleRun explicitly requested repeated work with fresh agents.Subagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

dshx-loop-guard

Detects and stops agent loops — the same tool call returning the same result again and again — mainly for small local models.

防止 agent(主要是本地小模型)陷入「反复调用同一个工具」的死循环。只挂 DSH 公开的 agent/request、tools/pre-execute、tools/post-execute 事件,不改 agent 主循环。

判定规则(按 agent、按轮计数)

  1. 调用指纹 = 工具名 + 参数(键顺序无关);
  2. 同一调用连续得到完全相同的结果:第 warnAt 次在结果后附加提醒,第 stopAt 次直接拒绝;
  3. 同一调用一轮内执行满 hardLimit 次(不论结果)后拒绝;
  4. 一轮工具调用总数超过 maxCallsPerTurn 时拒绝(0 = 不限);
  5. 一轮被拒绝 maxDenials 次后中止本轮。

改完文件再跑同一条测试命令不算循环:结果变了,计数就清零。

配置(cordis.patch.yml)

字段默认说明
providers['local']只对这些 provider 生效;空数组 = 所有模型
warnAt3
stopAt5
hardLimit12
maxCallsPerTurn0
maxDenials3

安装

# Web profile
dsh plugin --profile web add github:callaumyan-design/dshx-loop-guard
# Desktop(用 DSH Desktop 自带的 dsh 命令,先从托盘完全退出 Desktop)
dsh plugin --profile desktop add github:callaumyan-design/dshx-loop-guard

安装后重启 DSH。卸载:dsh plugin --profile <profile> remove dshx-loop-guard。

兼容性

在 DeepSeek Harness 0.2.0-rc.2(desktop / web profile)上开发和使用。纯 JavaScript,无构建步骤,无安装脚本。

License

MIT