Babydunx1/dsh-knowledge-bridge ↗★ 0
dsh-knowledge-bridge
Give your DeepSeek Harness agent a brain: host-level knowledge vault access with zero-config discovery, three retrieval tools, and a guard against destructive shell commands. 适合需要让Agent免配置检索本地知识库,同时需要拦截危险Shell命令的安全任务。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Babydunx1/dsh-knowledge-bridgeREADME
Read the full README ↗Configuration reference
Every key is optional; the defaults below are what a zero-config install uses.
| Key | Type | Default | Meaning |
|---|---|---|---|
knowledgePaths | string[] | [] → auto-discovery | Vault roots. ~ is expanded; relative paths resolve against the workspace cwd. Explicit paths win, and still combine with DSH_KNOWLEDGE_PATHS. |
rulesPaths | string[] | ["AGENTS.md","GEMINI.md","CLAUDE.md"] | Files probed at the workspace root and injected as a prompt section. |
autoInjectRules | boolean | true | Inject the rules section plus the one-line knowledge directive. Set false for a completely untouched prompt. |
enableSafetyGuard | boolean | true | Enable the destructive-command guard. |
bannedPatterns | string[] | see below | Case-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.