citydirector/dsh-loop-rescue
Catches the model repeating itself, cuts the stream from the inside, prunes the loop out of what is written to the session log and resumes automatically.
When the model falls into a repetition, such as a rotation of short filler words or the same paragraph over and over, the plugin detects the loop and cuts the stream rather than letting the turn burn tokens to the end. The part that distinguishes it from a plain cut-off is that the interrupted message written into the session log, and therefore into the next turn's context, contains no loop at all, so the model does not re-read its own repetition and continue it. Resumption is automatic, which means the turn finishes instead of stopping for a retry.
Install
dsh plugin --profile web add -w github:citydirector/dsh-loop-rescue#v0.1.0Copied verbatim from the README's install block, pinned to the released tag, which exists on the repository (verified 2026-10-18). There is no registry package for this name, so the documented GitHub spec is the install path. The -w flag is part of the documented command, not a typo.
Compatibility
Requires DSH 0.1.7 or newer. Pure JavaScript with no build step. Because it intervenes in the stream and in what is persisted to the session log, it is the kind of plugin to test on a scratch profile before enabling on a profile whose history matters.
Details
- Repo: citydirector/dsh-loop-rescue
- Category: Agent Capabilities
- Stars: 0
- Version: 0 stars, JavaScript, MIT, created 2026-10-17; install source is GitHub tag v0.1.0; English README with a README.zh-CN.md translation.
- Last push: 2026-10-17
Alternatives
shujiTech/dsh-plugin-wepre · Inceptzws/dsh-project-guard · TtTRz/dsh-wecom