Asuna486-desuwa/dsh-safety-net1

dsh-safety-net

DSH 自我保护防线插件,提供敏感路径拦截、销毁前备份、命令行自恢复及严格沙箱默认设置。

AI 分析

核心用途是防止 Agent 误删或破坏系统关键文件。适合运行高权限 Agent、需要强安全防护与数据备份的 DSH 用户。

包名
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/.