MathieuPortmann/dsh-reliability-guards
Deterministic post-answer checks for small local models: false success, invented DOIs, tool-less claims, cut answers, with one steering nudge.
Catches the failure modes small local models show before you read the answer, using plain deterministic rules that compare the final answer with what the tools actually returned. Ten codes cover claimed success after a failed tool call, unchecked claims of having run or checked something, announced-but-never-called actions, denied capabilities that a loaded tool could perform, DOIs no tool produced (checked against OpenAlex then Crossref, where a network error never counts as invented), CJK characters the user did not write, tool calls leaked as text, answers that end mid-sentence or inside an unclosed code block, and — off by default — emoji and French spelling. A finding buys exactly one steering notice in the same turn, at most two per turn and one per code, so the model can correct itself; whatever is still wrong at the end stays visible under the answer. Before a tool runs it adds approval cards for destructive shell commands and for writing over an existing file, refuses /tmp backups with a reason, and offers a read-only /explain allow-list mode.
Install
dsh plugin --profile web add github:MathieuPortmann/dsh-reliability-guardsThe README's GitHub line. It also documents the npm name dsh-reliability-guards, but that name returns 404 from the registry today, so the GitHub form above is the one that resolves. Restart the profile afterwards. The optional /explain skill is copied by hand, cp -r skills/explain ~/.dsh/skills/, and the README says to install it that way rather than expecting the plugin to place it.
Compatibility
Node >= 22.6 and DSH 0.2.x, with maintenance described by the author as best-effort — issues may go unanswered and forks are welcome. Permissions are narrow: no shell and no file writes, and network only for DOI existence checks against api.openalex.org and api.crossref.org, and only when an answer cites a DOI no tool returned. The French spell check needs the external enchant-2 program plus hunspell-fr and is skipped when missing, and llmBodyTimeoutMinutes replaces the process-wide HTTP dispatcher while the plugin is loaded.
Details
- Repo: MathieuPortmann/dsh-reliability-guards
- Category: Agent Capabilities
- Stars: 0
- Version: not published to npm (registry 404); installs from the GitHub default branch
Alternatives
master1Sun/dsh-prompt-library · titanwings/dsh-plannotator · Inceptzws/dsh-project-guard