xarleyn/dsh-plugins--plugins-dsh-prompt-firewall ↗★ 1

@yadsh/dsh-prompt-firewall

对提示词与上下文做规则化过滤、白黑名单和审计,支持告警与阻断 适合需策略化治理提示内容的团队,先定义模式与规则再应用于会话

包名
@yadsh/dsh-prompt-firewall
兼容性
待验证
Harness 依赖范围
catalog:dsh
Cordis 依赖范围
catalog:dsh
版本
0.1.3
许可证
MIT
最近更新
2026年9月13日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xarleyn/dsh-plugins#fd3cdd95651ec4eafe52d510751ba3aba3c9248d&path:plugins/dsh-prompt-firewall

Configuration

The bundle inserts the dsh-prompt-firewall Cordis row. Override its configuration in the profile patch when needed:

- id: dsh-prompt-firewall
  config:
    mode: blocklist
    preset: clean
    blockedSections:
      - plugin:another-noisy-plugin
    blockedPrefixes:
      - announcement:

Audit without changing the prompt:

- id: dsh-prompt-firewall
  config:
    mode: audit
    audit:
      enabled: true
      logAllowed: true
      includePreview: false

Strict allowlist:

- id: dsh-prompt-firewall
  config:
    mode: allowlist
    allowedSections:
      - plugin:my-important-plugin
    protectCoreSections: true

Rule priority is protected, exact allow, exact block, prefix allow, prefix block, glob allow, glob block, then the mode's default policy.