dsh-safety
dsh-safety is a filesystem safety harness plugin for DeepSeek Harness. It enforces a three-tier file policy at tool execution, routes deletes through trash, requires human approval for sensitive deletes/writes, snapshots and rolls back plugin composition, and validates composition before restart. It includes model-facing safety tools, an audit journal, and a standalone zero-dependency CLI.
Installation
dsh plugin --profile web add @suagr_xl/dsh-safety # install from the official npm registry / 从官方 npm registry 安装Overview
dsh-safety is a filesystem safety harness plugin for DeepSeek Harness. It enforces a three-tier file policy at tool execution, routes deletes through trash, requires human approval for sensitive deletes/writes, snapshots and rolls back plugin composition, and validates composition before restart. It includes model-facing safety tools, an audit journal, and a standalone zero-dependency CLI.
- Execution-time guard denies destructive tool calls before they run and returns educational denial messages.
- Routes deletes through trash-based safe_delete with preview and safety_undo recovery.
- Adds user-gated, one-shot, time-limited approvals; the model cannot grant itself approval.
- Snapshots plugin composition with SHA-256 hashes and supports transactional rollback via safety_restore.
- Pre-restart safety_check validates UTF-8, detects mojibake, JSON errors, and duplicate plugin row ids across patch layers.
- Journals blocks, approvals, deletes, snapshots, and restores for reading via safety_journal and safety_status.
- Ships a standalone dsh-safety CLI for policy, delete, undo, snapshot, restore, check, and approval workflows without DSH running.
- Declares zero runtime dependencies; repository install requires Node.js >= 22 and pnpm.