Babydunx1/dsh-knowledge-bridge ↗★ 0

dsh-knowledge-bridge

提供主机级知识库访问工具与破坏性命令防护 适合需要让Agent免配置检索本地知识库,同时需要拦截危险Shell命令的安全任务。

套件
dsh-knowledge-bridge
相容性
待驗證
版本
1.0.0
授權
MIT
最近更新
2026年10月8日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Babydunx1/dsh-knowledge-bridge

Configuration reference

Every key is optional; the defaults below are what a zero-config install uses.

KeyTypeDefaultMeaning
knowledgePathsstring[][] → auto-discoveryVault roots. ~ is expanded; relative paths resolve against the workspace cwd. Explicit paths win, and still combine with DSH_KNOWLEDGE_PATHS.
rulesPathsstring[]["AGENTS.md","GEMINI.md","CLAUDE.md"]Files probed at the workspace root and injected as a prompt section.
autoInjectRulesbooleantrueInject the rules section plus the one-line knowledge directive. Set false for a completely untouched prompt.
enableSafetyGuardbooleantrueEnable the destructive-command guard.
bannedPatternsstring[]see belowCase-insensitive regular expressions matched against the command string.
bannedPatterns: [
  'git\\s+reset\\s+--hard',
  'git\\s+clean\\s+-fd',
  'git\\s+restore\\s+\\.',
  'rm\\s+-rf\\s+/(?!tmp)',
]

If the vault cannot be found the plugin logs Initialized with 0 path(s) — check that line first when nothing is indexed.