xarleyn/dsh-plugins--plugins-dsh-prompt-firewall ↗★ 1
@yadsh/dsh-prompt-firewall
Prompt hygiene, observability, and policy middleware for DeepSeek Harness 适合需策略化治理提示内容的团队,先定义模式与规则再应用于会话
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xarleyn/dsh-plugins#fd3cdd95651ec4eafe52d510751ba3aba3c9248d&path:plugins/dsh-prompt-firewallConfiguration
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.