Asuna486-desuwa/dsh-safety-net1

dsh-safety-net

Self-protection guardrails for the DeepSeek Harness: protected-path interception, backup-before-destroy, CLI self-recovery commands, and strict sandbox defaulting

包名
dsh-safety-net
版本
0.1.6
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Asuna486-desuwa/dsh-safety-net

Configuration

All options live under the safetyNet key:

safetyNet:
  # Strict mode: declares a read-only default and warns if the host sandbox
  # default is not tightened. Default: true
  strict: true
  # Additional paths to protect (beyond the built-in DSH critical paths)
  extraProtectedPaths: []
  # Reserved — retention-based pruning wiring lands in a later release. Default: 30
  backupRetention: 30
KeyTypeDefaultDescription
safetyNet.strictbooleantrueDeclares a read-only default sandbox mode; warns when the host sandbox default is wider (workspace-write / danger-full-access).
safetyNet.extraProtectedPathsstring[][]Extra paths treated as DSH critical assets.
safetyNet.backupRetentionnumber30Max snapshots kept in the backup store before pruning (reserved; pruning wiring lands in a later release).
safetyNet.dshHomestringenv DSH_HOME or ~/.dshOverride the DSH data root (used by the guard, the backup store and the status report alike).
safetyNet.pluginDataRootstring~/.claude/plugins/dataOverride the plugin data root (mainly for tests/injection).

The backup store is created under /safety-net/backups/.