dsh-delete-guard: Ensuring DELETE Appears Only as a Standalone, Reviewable Statement

dsh-delete-guard is a DSH pre-execute guard plugin maintained by Dax233. During the tools/pre-execute phase, it rejects chained, nested, wrapped, or run_code-hidden delete operations, requiring all deletions to be standalone top-level statements. It supports delete-verb recognition across PowerShell, bash, and cmd, and since version 0.2.0, performs static analysis on run_code. It can be installed via `dsh plugin --profile desktop add github:Dax233/dsh-delete-guard` and configured in `cordis.patch.yml` with the `enabled`, `tools`, and `codeTools` settings. Licensed under MIT, it is well-suited for agent workflows with a strong focus on admin security.

Read More