Repository navigation
Releases
Releases · yusheng-zhu12/dsh-workspace-memory
v0.2.1
工作区记忆,带图示
这个版本把「会话 A 写入、会话 B 读到索引」的流程画进了 README 开头,并修正了包名。
安装
下载本页底部的 yusheng-zhu12-dsh-workspace-memory-0.2.1.tgz,然后在会话里让 agent 执行:
plugin_manager install_bundle({ target: "D:\\path\\to\\yusheng-zhu12-dsh-workspace-memory-0.2.1.tgz" })
装好后重启一次 DSH(替换或首次安装的模块不会热加载),再用 Tool.listTools 确认六个工具齐全:
memory_save、memory_read、memory_list、memory_forget、memory_restore、memory_limits。
本版变更
0.2.1
- README 顶部加入流程图示:
docs/how-it-works.svg(可编辑源码)与docs/how-it-works.png(渲染图,随包分发,在不支持 SVG 的地方也能显示)。
0.2.0(包名变更,首次使用新名字发布)
- 包名改为
@yusheng-zhu12/dsh-workspace-memory。无 scope 的dsh-workspace-memory已被他人发布到 npm,沿用会造成安装歧义。cordis.patch.yml已同步,loader 行 id 仍是workspace-memory,仓库名不变。 - 安装、停用、卸载都要用新包名,例如
plugin_manager remove_bundle({ target: "@yusheng-zhu12/dsh-workspace-memory" })。
旧的dsh-workspace-memory安装请先卸载再装这个。
这个插件做什么
每个工作区一份可读的 Markdown 文件(.dsh-memory/MEMORY.md),并把一段很短的索引注入后续对话的运行时上下文,使同一工作区的新会话从既有结论开始,而不是重读代码。它不调用模型、不发送网络请求、不改写会话历史。
- 覆盖前必须先读:读标记按会话隔离、按每条笔记的内容指纹记录;
- 每次修改保留一代备份,可用
memory_restore回滚一步; - 达到上限时列出候选主题,由用户决定合并、删除还是调高上限;
- 落盘前对
summary/details/tags做保守脱敏,标题里出现密钥会直接拒绝。
校验
| 项 | 值 |
|---|---|
| 文件 | yusheng-zhu12-dsh-workspace-memory-0.2.1.tgz |
| 大小 | 106,876 字节 |
| SHA-256 | 6e85cfdbeaccc37a7ee52ecb27348f736136622416aa94619ae28763c8b20309 |
| 提交 | 690f45cb76b2192eb0c27f8634de53e83e5d07a8 |
| 测试 | 128 项,127 通过,1 跳过(Windows 文件符号链接权限) |
v0.2.0
[0.2.0] - 2026-11-11
Changed
- Package renamed to
@yusheng-zhu12/dsh-workspace-memory. The unscoped name
dsh-workspace-memoryis already published on npm by another author, so the
plugin could never be installed by that name without ambiguity.package.json
andcordis.patch.ymlnow carry the scoped name; the loader row id stays
workspace-memory, the repository keeps its name, and the release tarball is
nowyusheng-zhu12-dsh-workspace-memory-<version>.tgz. - Installing, disabling, or removing the bundle now uses the scoped name, e.g.
plugin_manager remove_bundle({ target: "@yusheng-zhu12/dsh-workspace-memory" }).
An install of the old name should be removed before installing this one.
v0.1.7
[0.1.7] - 2026-11-11
Fixed (v0.1.6 re-audit)
- At the hard ceiling,
raiseno longer suggests an impossible value. With
10,000 topics (or a 64 MiB / 4 MiB cap already reached) the message used to
say "raise it above 10000 (for example 10001)", which the range check then
rejected. It now names the maximum and points at shrinking the memory or
set; otherwise the suggestion is clamped to the ceiling. - A file past the read limit is refused, not guessed.
raise/setderived
their floor from a truncated prefix, so the required minimum could be too low.
They now stop with "the memory file is larger than the read limit, so its
usage cannot be counted". - A no-op
raiseat the stored usage explains itself. When the cap already
equals what is stored, the answer says it leaves no room and that the value
must go above the stored usage, instead of a bare "nothing changed".
