← DeepSeek Harness Plugins
DeepSeek Harness PluginManifest Valid

dsh-dupguard

Real-time repetition guard for DeepSeek Harness that detects LLM output loops and safely stops generation.

Developer ToolsSecurity & PolicySkills & Workflows
3GitHub Stars0ForksUpdated2026-11-01

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.

source-grounded
dsh-dupguard is a real-time output guard plugin for DeepSeek Harness (DSH). It intercepts llm/stream events to detect repeating text tokens and reasoning loops. When a repetition threshold is met, it presents an interactive decision card allowing users to immediately stop or permit the stream, or auto-stops output safely while ensuring already-generated content is committed without corrupting session logs.

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.

Not tested yetNo runtime compatibility tests have been published yet.

Security Signals

Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.

Dependency Counts

package.json declares 1 runtime, 0 development, 0 peer, and 0 optional dependencies.

info
Dsh Bundle Declared

package.json declares DSH bundle metadata.

info
License Declared

GitHub reports the repository license as MIT.

info
Package Manifest Available

A root package.json was captured and can be inspected by the registry.

info
Source Available

Public GitHub source metadata is available for this registry snapshot.

info

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
For maintainers

Maintaining this plugin?

This listing is generated from public repository data. If you maintain this project, you can review the information and share this listing with your users if you find it useful.

Add to README
Listed on DSHPlugin.app