argszero/cordis-plugin-repeat-guard-escalation

Denies a repeated tool call before it runs once the reminders have failed, and denies a repeated failing call even earlier.

Gives the advisory repeat guard teeth by denying the call at the pre-execute stage, and the README's argument for denying rather than blocking is the interesting part: a post-execute block still runs the tool and still burns a full model turn before the model sees a failure, so a determined loop survives it, while a denial means the repeated action never produces a result to react to. It also covers the hole the shipped guard documents — reminders fire at exact counts only, so the 9th, 10th and 11th identical calls draw nothing. The two cases are separated on purpose: a successful repeat may be polling, so it escalates late, while a failing repeat with unchanged arguments escalates early and quotes the tool's error back verbatim so the model's next move is against that specific complaint.

Agent Capabilities ★ 0 updated 2026-09-12
View on GitHub ↗

Install

dsh plugin add @argszero/cordis-plugin-repeat-guard-escalation

The README's bundle-patch line — this package ships a dsh.bundle patch, so dsh plugin add is the whole setup, and the package name is the scoped one because that is what the registry serves. It is an add-on, not a replacement: keep the shipped @deepseek-ai/dsh-repeat-tool-reminder guard, which still fires its advisory reminders at 3, 5 and 8 repeats and still explains itself, and let this plugin supply the consequence after the advice has been ignored.

Compatibility

Two thresholds, and the defaults are one past the shipped guard's highest reminder: escalateAt defaults to 9 and escalateFailingAt to 3 observed failures, so the fourth identical failing call is refused. escalateFailingAt counts failures that have already happened rather than predictions, because whether an in-flight call will fail is not knowable before it runs and assuming it would be the false positive the rule exists to avoid. A success clears the failure streak, so a legitimate poll loop is never escalated early, and a changed call resets both counters.

Details

Alternatives

yangyue1974/dsh-plugin-audiolib · SmileTao/dsh-plugin-dev-skill · green-dalii/dsh-plugin-dev-skill

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins