DeepSeek Harness plugin

dsh-guard

Security and governance for dsh: rule-based tool denial, full tool-call audit trail, and governance reports.

Jump to install

Source facts

Repository
kouyichi/dsh-plugins
Latest update
Aug 21, 2026
Category
Tools & Capabilities
GitHub stars
0

Install

Start with a prompt that asks an agent to read the source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to read the page and repository first.

Do not install anything yet. Read this DeepSeek Harness plugin and explain what it does, which files, networks, or credentials it can access, and how to install and remove it.

Plugin page: https://deepseekplugins.org/plugins/kouyichi/dsh-plugins~23dsh-guard
GitHub: https://github.com/kouyichi/dsh-plugins/tree/main/dsh-guard
Plugin: dsh-plugins#dsh-guard
Author: kouyichi
Install command: dsh plugin --profile web add github:kouyichi/dsh-plugins#path:/dsh-guard

Do not run the install command until I confirm.

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-guard — 安全 / 审批 / 治理

生态空白:整个 security & governance 分类都是 0-3★ 萌芽。本插件把两个头部 agent 的安全模式移植到 dsh:

  • Codex「sandbox × approval」 → 声明式拒绝规则层(tools.guard() 官方 seam,单调拒绝、无规则即无操作)
  • Claude Code PreToolUse hook 审计(security-guidance)→ 全量工具调用审计 + 治理报告

工具

工具功能
guard_rules规则管理:add {tool, pattern, reason} / remove / list / toggle。tool 支持通配(bash*)
guard_report治理报告:工具分布、错误率、被拒统计、危险命令命中
guard_status插件状态
guard_export审计导出 markdown
guard_clear清空审计

存储:~/.dsh/guard/rules.json + ~/.dsh/guard/audit.jsonl

示例

guard_rules action=add tool=bash pattern="rm -rf /" reason="禁止删除根目录"
guard_rules action=add tool=web_search reason="本项目禁用联网搜索"
guard_report period_days=7