dsh-dupguard
Real-time repetition guard for DeepSeek Harness that detects LLM output loops and safely stops generation.
Install
$ dsh plugin --profile web add dsh-dupguard # 把 web 换成你的 profile 名Plugin Overview & Capabilities
AI-assisted organization based on the public repository snapshot. The content must be grounded in source evidence and does not replace compatibility or security verification.
Key Capabilities
- Real-time incremental repetition detection across streaming tokens, single characters, words, and multiline phrases
- Reasoning text monitoring to catch model loops within thinking tags
- Interactive UI decision card and desktop/browser system notifications upon stop events
- Configurable threshold modes including fixed threshold, unit length tables, and custom JavaScript evaluation modules
- Granular code-block handling with unified multiplier relaxation for fenced, inline, and indented code
- Safe termination mechanics that abort HTTP requests while finalizing blocks and preserving assistant messages in conversation logs
- Local model detection to avoid force-stopping zero-cost local providers like Ollama or vLLM by default
- Persistent local JSONL stop logs with redaction options and automatic file rotation
Useful For
- Preventing runaway token loops and excessive API costs during long-context or agentic model runs
- Halting reasoning loops in thinking models when the model gets stuck in repeated self-correction chains
- Monitoring multi-session or background agent tasks with notifications when output stalls on repetition
Who It Fits
- DeepSeek Harness developers and power users wanting protection against LLM repetition bugs
- Engineers using local or cloud LLMs prone to repetitive degradation
- Agent workflow developers who need clean, uncorrupted message logs when streams are interrupted
Documented Limitations
- Requires Node.js >= 20 and DSH >= 0.1.1-rc.1 (or >= 0.1.2-rc.1 for bundle installation)
- Experimental module mode executes user-supplied JavaScript directly inside the DSH host process with full host privileges
- Indented code detection uses heuristics rather than full CommonMark block parsing
- Inline code segments longer than 256 characters fall back to standard text repetition thresholds
- Dynamic plugin variant (plugin/host.js) lacks the interactive settings page and persistent JSONL logging
DSH Compatibility
Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.
Security Signals
Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.
package.json declares 1 runtime, 0 development, 0 peer, and 0 optional dependencies.
package.json declares DSH bundle metadata.
GitHub reports the repository license as MIT.
A root package.json was captured and can be inspected by the registry.
Public GitHub source metadata is available for this registry snapshot.
Source & Registry Notes
Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.
- Source repository
- zqh260619/dsh-dupguard
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- 47fa1af · 2026-11-01
This project is independently indexed from public source information. DSH Plugin is not affiliated with DeepSeek or the plugin author. Always check the author repository before installation.
Repository Activity
- GitHub stars
- 3GitHub stars
- Forks
- 0
- Open issues
- 0
- Last commit
- 2026-11-01
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Local cross-agent memory and session history recall integration for DeepSeek Harness.
View plugin →Import and resume conversation histories from 25+ AI coding agents directly into DeepSeek Harness.
View plugin →Mobile adaptation and secure remote/LAN access plugin with Android companion app support for DeepSeek Harness.
View plugin →Full office suite integration for DeepSeek Harness supporting spreadsheets, docs, slides, bases, and canvases.
View plugin →