dsh-guardrail
String-matches tool-call input arguments, blocks dangerous tool calls (deny) or allows them with an injected warning (warn), and ships a full rules-management panel.
对 agent 工具调用输入参数做字符串匹配,命中危险行为则拦截(deny)或放行但注入警告(warn),附规则管理面板。
How to install
dsh plugin add github:jypjypjypjyp/dsh-guardrail About
dsh-guardrail 工具调用规范守卫:对 agent 工具调用**输入参数**做字符串匹配,命中危险行为则**拦截(deny)并注入原因**给模型,或**放行但注入警告(warn)**。附规则管理面板(配置/启停/增删/试跑/审计全部可在 UI 完成)。 能力 挂 tools/pre-execute(waterfall):deny → 工具不执行 + 原因注入模型可见错误;warn → 放行 + tools/post-execute 注入独立警告消息 内置 11 条高风险规则(删根/提权/管道执行远程代码/强推主分支/fork bomb 等),可启停、可覆盖动作(deny/warn) 用户规则存 ~/.dsh/guardrail-rules.json,面板编辑即热加载 面板(React 注册为会话视图 guardrail 标签页):规则列表/启停/增删/动作切换、测试匹配器、添加规则、审计视图 经 webServer 暴露 /guardrail/api/*(rules 增删改查、test 试跑、audit、config) 审计:内存环形缓冲(默认 200)+ 可选文件日志 匹配/加载异常一律放行(fail-open),不阻断正常流程 正则支持 lookbehind(需 Node/浏览器 V8),可写「必须 uv pip」这类约束规则 面板样式**只使用 DSH 系统主题 t…
Recommendation signals
Meta
- License
- –
- Language
- TypeScript
- GitHub stars
- 1
- mo. downloads
- –
- Last push
- 2026-08-25
- Created
- 2026-08-25
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令;无 license
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
dsh-auth-gateway
xbzbing/dsh-auth-gateway
Password + TOTP two-factor authentication gateway for the dsh web UI: every HTTP request and WebSocket upgrade is refused until login, with per-source lockout, global rate limits and one-time backup codes.
dsh-approval-llm
Letter2025/dsh-approval-llm
Model-based permission approval: an approval-request answerer backed by a separate reviewer model.
dsh-auto-review
PerryLink/dsh-auto-review
Second-model auto-review on the approval answerer chain: a read-only reviewer subagent returns structured allow/deny verdicts with reasons, fail-closed by default.
dsh-yolo-mode
SeverusZh/dsh-yolo-mode
LLM auto-approval for sandbox escalation requests, with presets and a fail-closed fallback.