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.

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

dsh-repetition-guard

Repetition Guard

DeepSeek Harness plugin: short-circuits a model stream when it loops on a repeated word ("wait wait wait" / "počkat počkat …") in reasoning or visible text, so the provider stops generating instead of burning tokens.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-repetition-guard@0.1.0
READMECompatibilityVersions

Compatibility and provenance

Repetition Guard is published as dsh-repetition-guard and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.1.0stable
8/15/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
7.4 kB
Files
6
Surface
any
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
40
Last push
8/15/2026
View source ↗Project homepage ↗
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 models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

dsh-repetition-guard

English | Česky

Stops a model from "looping" during generation — when it starts repeating the same word over and over (wait wait wait …, počkat počkat …), sometimes hundreds or thousands of times, burning tokens for nothing.

How it works

The plugin hooks the llm/stream waterfall (DSH's official extension point around every streaming model call) and watches both reasoning-delta chunks (the thinking text) and text-delta chunks (the visible answer). As soon as the tail of either stream contains 12 identical words in a row (threshold configurable), it stops the stream.

Stopping the stream makes the adapter abort its fetch → the provider stops generating further tokens. The rest behaves like a normal end (the assembler treats finish = stop), so the turn ends cleanly with whatever was generated before the loop.

Why it can't hurt normal output

  • It only triggers on ≥ 12 identical consecutive words — normal reasoning or prose never contains a run like that (one "wait" is fine, twelve aren't).
  • It inspects only the last tailChars characters (160), so it doesn't slow the stream or grow memory.
  • It deletes nothing — it just stops reading the stream; already-emitted blocks are preserved.

Install

dsh plugin --profile web add dsh-repetition-guard

Restart the DSH session; it then guards every model call (including subagents).

Configuration

  • word threshold: config.threshold (default 12)
  • inspected tail length: config.tailChars (default 160)
  • on trigger it logs: repetition-guard: stopped a repeated-word loop…

License

MIT