FenrirCait/dsh-fail-guard ↗★ 0
dsh-fail-guard
Stop the agent when it keeps failing: after N consecutive failures on the same tool, push a four-part stop instruction so it reports instead of trying again.
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:FenrirCait/dsh-fail-guardREADME
Read the full README ↗Configuration
Edit it in Plugins → dsh-fail-guard → details. Fields are marked .volatile(): saving takes effect immediately, no restart.
| Key | Default | Meaning |
|---|---|---|
threshold | 2 | Consecutive failures before stopping |
sameToolOnly | true | Count per tool; turn off to share one counter across all tools |
stopText | built in | The instruction pushed into the conversation |
stopSummary | built in | The one-line summary shown in the panel |
debug | false | Write events, counts and trips to a log file |
logFile | ` | |
| /fail-guard.log` | Where debug writes |
Or set it directly in cordis.patch.yml:
- id: dsh-fail-guard
config:
threshold: 3