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.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-loop-recover

Loop Recover

Dead-loop rescue for DeepSeek Harness: detects model repetition mid-stream, prunes the loop from the committed message, and resumes the task automatically.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-loop-recover@0.3.4
READMECompatibilityVersions

Compatibility and provenance

Loop Recover is published as dsh-loop-recover and currently resolves to version 0.3.4. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
10/31/2026

Versions

0.3.4stable
10/31/2026
0.3.3stable
10/30/2026
0.3.2stable
10/30/2026
Show 2 more versionsCollapse versions
0.3.1stable
10/29/2026
0.3.0stable
10/28/2026

Related plugins

Loading related plugins…

Latest
0.3.4
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
124.5 kB
Files
18
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
0
Last push
11/4/2026
View source ↗
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 memory-context.

Experimental Session Search@deepseek-ai/dsh-experimental-session-searchGive Agents tools to search and read earlier sessions from the current workspace.Mnemondsh-mnemonComposable, view-based context for DeepSeek Harness. Pluggable sources and strategies, with layered memory and self-evolving skills out of the box.Ab Memorydsh-ab-memory--- description: "The dsh-ab-memory package: a cross-session, file-backed agent memory with five tools (remember / recall / forget / load_skill / distill) and an always-on light injection." kind: "package-reference" ---Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。 · Archive, restore, favorite, and permanently delete sessions, and diagnose damaged session logs.

README

dsh-loop-recover

dsh-loop-recover

Detects model dead loops and auto-rescues — the task resumes in place.


English · 中文


What It Does

Small local models (Ornith, some Qwen variants, etc.) can collapse into literal token loops (ssssss...) or semantic analysis loops — re-reasoning the same paragraphs forever. Plain loop guards just cut and stop; the task dies.

dsh-loop-recover breaks the full rescue chain:

  • Detect — 5-layer detector: periodic, n-gram, anchor, char-run, sentence-pool + intent-level tool-query tracking
  • Prune — cuts the repeated suffix mid-stream, leaves a one-line marker so the model knows something was removed
  • Compact — replaces the poisoned context with a checkpoint summary (v4 compaction/* transaction) so the model can't replay the same reasoning
  • Resume — auto-followups the same task with fresh sampling params — no new session, no restart

All inside one agent loop — the model keeps working after rescue.

Install

GUI (recommended)

Open Plugins → Add plugin, search dsh-loop-recover, click Install.

CLI

dsh plugin --profile desktop add dsh-loop-recover
# then restart the app

Configuration

Everything is editable on the plugin page — no YAML needed. 32 fields grouped: Basics / Rescue / Resume / Intent / Detection / Detector (Advanced).

GroupKey fields
Basicsmode (rescue/cut/observe), watch, language, keepLanguage, marker, debugLog
RescuemaxConsecutiveRescues, compactOnRescue, stallCalls
ResumeretryTemperature, retryReasoningEffort, retryRequests
IntentintentEnabled, intentNoveltyThreshold, intentConfirmCount

Modes — rescue (cut+prune+compact+resume, default), cut (prune only, no resume), observe (log only, zero intervention — use this to evaluate thresholds on your workload first).

Why not other loop plugins

Different tools solve different problems — don't stack them:

PluginWhat it doesConflict
dsh-agent-loop-guardCuts at loop detection, stops turnBoth wrap llm/stream → double-cut, confused state
dsh-client-auto-continueResumes after interruptionTriggers extra resume → two conflicting continuation commands
dsh-session-shiftContext-pressure compaction → new sessionOverlapping rescue → one compacts while the other shifts

Disable them when using this plugin.

How it works

llm/stream (agent calls only)
  ↓ StreamLoopDetector — watches reasoning & text blocks
loop hit → cut repeated suffix → rewrite block-end → finish: stop
  ↓ commitLoopCompaction — v4 transaction, old context → checkpoint
  ↓ followup() — resume same task, fresh sampling params

Non-agent requests (title/summary generation) pass through untouched.

Development

npm test        # 66 unit + integration tests
npm run check   # plugin load smoke

License

MIT · NOTICE for upstream attributions (dsh-compaction helpers adapted).