j62268781-alt/dsh-hindsight-bank-router ↗★ 1
@j62268781-alt/dsh-hindsight-bank-router
将Hindsight记忆库锚定到远程仓库名 适合在多克隆目录下工作,需共享同一个Hindsight记忆库的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:j62268781-alt/dsh-hindsight-bank-router說明文件
閱讀完整 README ↗配置
在 cordis.patch.yml 的 config 里:
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 部署级总开关(DSH profile 控制) |
dryRun | false | 只预览不写盘 |
roots | [] | 扫描根目录,支持 ~ 展开 |
maxDepth | 3 | git 子树的递归深度;非 git 的直接子目录总是会被纳入 |
gitPrefix | "git::" | git 仓库的 bank 前缀 |
workspacePrefix | "workspace::" | 非 git 目录的 bank 前缀 |
routeNonGit | true | 是否接管非 git 目录(false = 交给 hindsight 默认) |
allowRepoConfig | true | 是否读取工作区内的 .hindsight.json |
userWorkspaceDir | ~/.hindsight/workspaces | 用户级工作区配置目录(优先级高于仓库内配置) |
configPath | ~/.hindsight/coding-agent.json | 目标配置文件 |
statePath | ~/.hindsight/.bank-router-state.json | 我方状态文件 |
用户级总闸
在 ~/.hindsight/coding-agent.json 里:
{
"apiUrl": "http://sz-00575123-01/hindsight",
"serverMode": "self-hosted",
"enableBankRouter": true // ← 必须显式写 true 才启用
}
为什么不做成"缺省即开":本插件会改写你的配置文件,这个动作应当由你主动授权,而不是装上就默认生效。