Dsh Loop Detector
viego-qiin/dsh-loop-detector · tools
Dead-loop / repetition detector for DeepSeek Harness agents — hard-interrupts text loops and same-topic search retries that soft reminders miss.
★ 2GitHub stars
0Forks
2026-08-25Last updated
TypeScriptLanguage
MITLicense
Key features
- Text-level repetition detection — watches assistant/chunk (text-delta + optional reasoning-delta) with three layered detectors: 1.
- Dead-loop / repetition detector plugin for DeepSeek Harness (dsh).
- Period scantail repeats with a fixed period (8–256 chars) 2.
- n-grama 64-char block seen ≥3 times in the recent window 3.
- Large-scale anchora 512-char tail block reappearing earlier (catches whole-paragraph repetition, e.g.
Requirements
- Intent-level detection currently targets web_search
- other tools can be added by extending the exec.name filter.
Install command
dsh plugin --profile web add github:viego-qiin/dsh-loop-detector