全部插件

DSH / BUNDLE / BUNDLES

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

v0.1.0j62268781-alt / dsh-hindsight-bank-routerdad81d17f2

可安装组合包组合包与其他模块社区 · Topic 自动分析

概览

@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.

README / ZH

插件文档

目录摘要

把 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.

dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。

在 GitHub 阅读完整 README

LIMITATIONS

已知限制

1. **启动后新建/克隆的仓库,首次会话可能不生效。** 本插件在 `agent/session-start` 会补扫一次,但如果该 workspace root 已被 hindsight 缓存,本次不生效、**下次启动 DSH 时生效**。这是有意的取舍:宁可延迟一次,也不去改动 hindsight 的内部缓存。 2. **bank 改名会"丢"旧记忆。** 改名前已积累的记忆在旧 bank 名下(例如 `coding-agent::payments-app`、`team::mobile-client`),不会自动迁移。需要时用 `hindsight-admin export-bank` / `import-bank`。 3. **仓库级 `.hindsight.json` 的安全权衡。** 上游明确反对仓库携带配置("a cloned repository must not be able to turn memory on")。本插件保留它是为团队统一命名的便利,并用**用户级目录始终优先**来兜底。完全不接受时设 `allowRepoConfig: false`。 4. **约定仍需团队统一。** 本插件让 bank 名**由远程仓库名唯一决定**(客观事实,所有人一致),但如果团队成员用不同的 fork 或镜像地址,仍会分叉——此时用 `.hindsight.json` 显式指定。 5. **非 git 目录的 bank 名仍是目录名。** 本插件用 `workspace::<目录名>` 接管它们,但不同人机器上的同名目录(如 `output`、`Qoder`)**若都连同一台 Hindsight 服务器会撞到同一个 bank**。多人共用服务器时,用 `~/.hindsight/workspaces/<目录名>.json` 显式指定区分。