j62268781-alt/dsh-hindsight-bank-router ↗★ 1

@j62268781-alt/dsh-hindsight-bank-router

把 Hindsight 编码插件的 bank 身份锚定到远程仓库名,而不是本地目录名 —— 让同一仓库在不同克隆目录名下共享同一个记忆库。Anchors Hindsight coding-agent memory banks to the remote repository name instead of the local directory name, so every clone of a repo shares one bank. 适合在多克隆目录下工作,需共享同一个Hindsight记忆库的开发者。

パッケージ
@j62268781-alt/dsh-hindsight-bank-router
互換性
未検証
Harness ピア範囲
>=0.2.0-0
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/10/12

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:j62268781-alt/dsh-hindsight-bank-router

ドキュメント

README 全文を読む ↗

配置

在 cordis.patch.yml 的 config 里:

字段默认说明
enabledtrue部署级总开关(DSH profile 控制)
dryRunfalse只预览不写盘
roots[]扫描根目录,支持 ~ 展开
maxDepth3git 子树的递归深度;非 git 的直接子目录总是会被纳入
gitPrefix"git::"git 仓库的 bank 前缀
workspacePrefix"workspace::"非 git 目录的 bank 前缀
routeNonGittrue是否接管非 git 目录(false = 交给 hindsight 默认)
allowRepoConfigtrue是否读取工作区内的 .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 才启用
}

为什么不做成"缺省即开":本插件会改写你的配置文件,这个动作应当由你主动授权,而不是装上就默认生效。