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
- 2
- mo. downloads
- –
- Last push
- 2026-09-08
- 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-auto-mode
NanmiCoder/dsh-auto-mode
Adds an Auto permission preset between Workspace Write and Full access: routine work stays in the official workspace-write sandbox while the current session model reviews escalation and destructive calls, granting one exact wider access once, asking when the intent is ambiguous, and denying critical paths.
dsh-passwords
slywalker2006/dsh-passwords
Turns DeepSeek Harness into a server-grade multi-tenant platform: remote access + auto HTTPS, subuser permissions & token/daily quotas, sandbox enforcement, encrypted auth & audit log.
sofagent
KongFangXun/sofagent/tree/main/engine/dsh-plugins/cordis-plugin-sofagent-audit
Commit-time audit harness for AI coding agents: 24 git-diff rules (secrets, out-of-scope edits, prompt injection), HMAC-signed audit trail, snapshot rollback, and an MCP server with 84 tools. Installable via dsh plugin add.
dsh-vault
Ox0400/dsh-vault
Encrypted local credentials vault for the Harness: a web settings page and vault_* tools to store, search and copy passwords, API keys, TOTP secrets and card data, with health audits, expiry rotation, imports/exports and read-only/ask access modes.