dsh-sentinel
工具哨兵:为 Agent 的每次工具调用留痕,按规则拦截灾难性 shell 命令与受保护路径写入。审计与拦截模式可在面板切换,Agent 侧只读。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yanliao66/dsh-sentinel安装、配置、卸载
从 GitHub 安装
git clone https://github.com/yanliao66/dsh-sentinel.git
然后在 DSH GUI 的「插件」页用 install_bundle 指向 clone 下来的目录(plugin_manager → install_bundle,target 填该目录的绝对路径)。装好后应看到 工具哨兵 / Tool Sentinel 一行,带盾牌图标;输入框工具行出现盾牌按钮。
配置
cordis.patch.yml 里的一行配置是部署默认值,面板保存的用户选择永远优先:
- id: dsh-sentinel
config:
mode: enforce # audit | enforce | strict
retentionDays: 30 # 日文件保留天数
captureArgs: true # 是否记录参数预览(不记文件内容)
maxMemoryEvents: 2000 # 内存环形缓冲
回滚:GUI「插件」页移除,或删除 profile package.json 里的依赖与 bundles 行后重新安装;数据目录保留,可手工删除。
配置
cordis.patch.yml 里的一行配置是部署默认值,面板保存的用户选择永远优先:
- id: dsh-sentinel
config:
mode: enforce # audit | enforce | strict
retentionDays: 30 # 日文件保留天数
captureArgs: true # 是否记录参数预览(不记文件内容)
maxMemoryEvents: 2000 # 内存环形缓冲
回滚:GUI「插件」页移除,或删除 profile package.json 里的依赖与 bundles 行后重新安装;数据目录保留,可手工删除。