highland0971/dsh-native-memory ↗★ 0
dsh-native-memory
Native, per-workspace long-term memory for DeepSeek Harness: facts and profiles on DSH's own storage-domain, cross-session recall through session-query FTS, approval-gated writes, and cited provenance — no external server, no extra runtime dependency.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:highland0971/dsh-native-memory说明文档
阅读完整 README ↗dsh-native-memory
为 DeepSeek Harness(dsh)打造的原生、按工作区隔离的长期记忆:事实与档案存放在 harness 自带的 storage-domain 上,跨会话回忆走 session-query 全文检索,写入必须经人工审批,且每条记忆都带来源引用——不需要外部服务器,不引入额外运行时依赖。
与其他方案的对比
| dsh-hermes-memory | dsh-native-memory | |
|---|---|---|
| 存储 | ~/.dsh/settings.yaml 命名空间 | 独立 storage-domain 单元(~/.dsh/storages/dsh_memory.json) |
| 作用域 | 用户全局、跨项目混用 | 按工作区隔离(精确 cwd 授权) |
| 写入安全 | 模型静默写入 | 人工审批门 + 会话日志审计 |
| 回忆方式 | 全部常驻注入(硬上限) | 有界常驻档案 加 按需召回 + 历史会话全文检索 |
| 依赖 | 需把文件塞进 harness checkout 用相对导入 | 仅 zod + harness 本身 |
完整架构与竞品分析见 docs/design.md。
安装
dsh plugin --profile web add dsh-native-memory # 发布后从 npm 安装
dsh plugin --profile web add /path/to/this/repo # 从本地检出安装
重启 dsh web。插件会开启 session-query 全文检索,并为所有会话注册记忆工具。配置方法见 docs/install.md。