DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dshx-loop-guard

d

dshx-loop-guard

Manifest valid

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

hasBundlePatch

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

Comments

Loading…

From the same category

reactive-resume

DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.

Tools & CapabilitiesManifest valid

★ 41.7k

↓ 121/wk

MIT

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-reactive-resume

by Tencent

Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.

Tools & CapabilitiesManifest valid

★ 9.3k

↓ 8.7k/wk

MIT

TypeScript

Oct 21, 2026

dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-plugin

by dsh-market

The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场

Tools & CapabilitiesManifest valid

★ 7.8k

↓ 163.6k/wk

MIT

TypeScript

Oct 20, 2026

dsh plugin --profile web add dshmarket

by yjh051108

dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).

Tools & CapabilitiesManifest valid

★ 7k

MIT

JavaScript

Sep 18, 2026

dsh plugin --profile web add @dsh-external/dsh-super-injector

by Q00

Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,

Tools & CapabilitiesManifest valid

★ 6.3k

MIT

Python

Oct 20, 2026

Index only — not installable

by superdesigndev

OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

Tools & CapabilitiesManifest valid

★ 5.9k

NOASSERTION

Python

Oct 21, 2026

dsh plugin --profile web add treg-dsh