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.

Agent Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add github:cybtachyon/dsh-plugin-degen-investigator

A 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

Alternatives

SmileTao/dsh-plugin-dev-skill · YYTbit/dsh-plugin-agent-dashboard · lsz-asd/dsh-plugin-device-info

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins