Skip to content
Plugin

dsh-loop-guard

MrWeiCodes363Updated 7d ago

Open on GitHub

为 DeepSeek Harness(DSH)提供的思考循环守护插件:模型陷入「只想不做」的退化循环时自动打断并注入纠正提示,任务继续往下走,不必再手动中止

Practical score

85 / 100

Setup

Ready to use

License

MIT

Language

JavaScript

Install

Quick start

Copy the command, or hand the whole task to your harness agent.

git clone https://github.com/MrWeiCodes/dsh-loop-guard.git
DSH versionDSH 0.2.2-rc.1
Install with your agent

Please install the DeepSeek Harness plugin "dsh-loop-guard" for me. - GitHub repository: MrWeiCodes/dsh-loop-guard (https://github.com/MrWeiCodes/dsh-loop-guard) - Type: a Cordis plugin (installed into a DSH profile) - The plugin declares a DSH version require…

From the README

A cleaned excerpt from the project's own documentation.

dsh-loop-guard — DSH 思考循环守护 为 DeepSeek Harness(DSH)提供的思考循环守护插件:模型陷入「只想不做」的退化循环时 自动打断并注入纠正提示,任务继续往下走 ,不必再手动中止 🌏 中文 English dsh · dsh-plugin · plugin · guard · thinking-loop · reasoning · repetition · AI agent · 思考循环 · 死循环 · 推理退化 简介 长上下文 + 高 reasoning effort 下,模型会 退化 :推理里开始出现低熵重复( 好。执行。好。 、 Write. / Output. / Let me write. / Go. 这种短句轮转),然后停不下来。 麻烦的是 DSH 自带的 guard/ 家族 抓不到这种情况 ——它们都围绕工具调用: 内置 guard 挂载点 能抓什么 --- --- --- guard/timeout-policy tools/execute 工具调用超时 guard/repeat-tool-reminder tools/post-execute 重复的同一个工具调用链 而退化循环的特征恰恰是 完全不调工具 :只有 reasoning-delta ,零 text-delta 、零 tool-call-delta 。于是: - 两个 guard 都不触发; - agent-loop 的 turn() 从 已完成的消息 推导 StepEndReason ,流不结束 → step 不 settle → turnEnds 永远为 null → while (true) 永不 break; - 回合停不下来,只能由你手动中止 ——而界面上只显示「思考中」,看起来和认真推理没区别。不点开 thinking 块根本察觉不到它在空转。 本插件接管 llm/stream 瀑布流,按每次模型调用的 chunk 组成做判定,在退化发生时 从流内部切断 ,让回合正常结束。 ![效果:…

Open on GitHub

Project details

by
MrWeiCodes
License
MIT
stars
36
Forks
3
Updated
Nov 5, 2026
Created
Sep 21, 2026
Language
JavaScript
Indexed from
topic

Related entries

Similar tools from the same corner of the ecosystem.

View all
Plugin

pi-web-ui

xing-shuyin

Just open your browser — get all your work done.

dshdsh-desktopdsh-plugin
384Ready to use
94/100
Plugin

dsh-btw

MichengAI

DSH 一次性只读旁问插件:基于当前上下文回答,独立气泡,不执行工具 · One-shot read-only side-ask plugin: answers from current context in an independent bubble, no tool execution

deepseekdeepseek-harnessdsh
59Ready to use
90/100
Plugin

dsh-pua

MichengAI

DSH PUA — 为 DeepSeek Harness 提供 PUA 任务推进、角色风味、验收循环和运行状态卡片 · PUA task persistence, personas, verification loops, and live status cards for DeepSeek Harness

ai-agentdeepseek-harnessdsh
70Ready to use
87/100