cybtachyon/dsh-plugin-degen-investigator
Watches a running DSH agent for repetitive-token degeneration or a trigger word, halts the turn and prints a debug report with a causes checklist.
Cancel-based watchdog rather than a retry mechanism: on a hit it calls the host's agent cancel with kind hook, so the turn stops instead of continuing to burn tokens, and the agent is left idle until you send a new message. The report arrives as a collapsed notice row in the conversation containing the detected token with surrounding context, the model and sampling parameters actually in force, whether repetition_penalty is exposed at all (it is a provider-side parameter, not something Harness sets), recent tool calls, a causes checklist that flags high temperature, low max tokens, long context and small models against configurable thresholds, and a numbered fix list. Detection covers three shapes at once so a model that loops on a whole phrase is caught as well as one that repeats a single word.
Install
dsh plugin --profile web add github:cybtachyon/dsh-plugin-degen-investigatorA host-side Cordis plugin distributed from GitHub only — the README documents no npm package. Thresholds live in the plugin row's config block in cordis.patch.yml, which is where you change them; the defaults are six repeats of one word, three repeats of a 2-4 word phrase and twenty repeats of a single character, all measured in the model's thinking.
Compatibility
Written against the Harness host plugin API through Cordis and installed through dsh plugin --profile, so it needs a Harness version whose plugin loader reads a bundle patch; the README does not state a tested Harness range. Trigger words are matched on any configured term appearing in thinking, assistant text, tool arguments or tool results, which is why the list defaults to empty — a common word there would halt turns constantly.
Details
- Repo: cybtachyon/dsh-plugin-degen-investigator
- Category: Agent Capabilities
- Stars: 1
- Version: No version pin; this line installs from the GitHub default branch (last pushed 2026-09-27)
Alternatives
SmileTao/dsh-plugin-dev-skill · YYTbit/dsh-plugin-agent-dashboard · lsz-asd/dsh-plugin-device-info