返回目录

dsh-auto-memory

编辑精选维护状态: 活跃

aik358/dsh-auto-memory

Proactive associative memory for DSH: system-prompt recall before the model speaks, three-layer auto-consolidation, skill crystallization, and Astra-style context management - handoff ledgers, PLAN whiteboard, water-level sensing. Local-first, model-agnostic, zero deps. 主动联想记忆+Astra 式上下文管理:自动唤回/自动沉淀/技能固化/交接账本与白板跨窗口续命/水位感知。

前往 GitHub项目主页
$ dsh plugin add dsh-auto-memory

88

星标

8

Fork

JavaScript

语言

BSD-3-Clause

许可证

2026-08-14

创建于

2026-09-29

最近推送

一个原生 DSH 插件,让 DeepSeek Harness 成为有记忆的助手:主动联想召回、三层自动整理、AI 问候、日历提醒与跨工具记忆继承,并配有生产级写入闸门。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-03

许可证

BSD-3-Clause

01它能帮你完成什么?

  • 让 DeepSeek Harness 拥有会自动回忆的记忆——无需调用工具

    三层自动记忆(用户规则 → 项目笔记 → 每日日志)注入每一轮对话,并支持按需召回

    希望助手跨会话记住偏好、项目规范、截止日期与历史进度的 DeepSeek Harness(dsh web)用户

  • 从其他 AI 工具导入记忆,并获得主动日历提醒

    跨工具记忆继承(WorkBuddy / CodeBuddy / Claude Code / Codex)以及由 AI 维护、带截止日期与进度提醒的日历

    已经依赖多个 AI 助手、希望以 DSH 为单一记忆中枢并配置定时提醒的用户

02如何接入 DeepSeek Harness?

前置条件

  • 安装 DeepSeek Harness 并至少启动一次 `dsh web`(必须存在 `~/.dsh/profiles/web` 配置目录)。
  • Node.js with pnpm (or npm) available on PATH.

安装步骤

  1. 01

    cd ~/.dsh/profiles/web

  2. 02

    pnpm add @a9i5k4/dsh-auto-memory # or: npm install @a9i5k4/dsh-auto-memory

  3. 03

    Edit package.json in that directory and append "@a9i5k4/dsh-auto-memory" to the dsh.profile.bundles array

  4. 04

    Restart dsh web — the 「Memory」 entry appears in the sidebar

  5. 05

    Optional semantic engine: pnpm approve-builds && pnpm add @huggingface/transformers, then restart dsh web

验证接入成功

  • After restarting dsh web, the 「Memory」 entry appears in the sidebar.

03DSH 适配与能力边界

DSH 适配原生运行时

Native DSH bundle plugin — installed into the `~/.dsh/profiles/web` profile directory and registered in the `dsh.profile.bundles` array; runs inside the DeepSeek Harness web runtime (dsh web).

  • 三层自动记忆引擎

    Every conversation turn (host-side context observer)→User rules, project notes, daily logs and reflections written under `~/.dsh/memory`, injected into later turns

    Writes memory files under `~/.dsh/memory` on every turn via the auto-consolidation subagentReads/writes the dsh profile directory and the dsh.profile.bundles config
  • 外部记忆继承

    Sessions / memories from WorkBuddy / CodeBuddy / Claude Code / Codex→Scanned, importable, per-source-managed external memory pointers

    Reads other AI tools’ memory locations on your machine (path pointers only, never copied content)
  • 记忆写入闸门

    Any memory write (append ≤ 8,000 chars / rewrite ≤ 200,000 chars)→Sanitized, deduped memory writes; dirty-token scan reports

  • 主动日历提醒

    Conversation text (deadlines, promises)→Calendar entries via `calendar_add`, injected into later sessions until completed

04适合谁?何时不该用?

适合

  • 希望助手跨会话记住偏好、项目规范、截止日期与历史进度的 DeepSeek Harness(dsh web)用户
  • 已经依赖多个 AI 助手、希望以 DSH 为单一记忆中枢并配置定时提醒的用户

不适合

  • Memory files are plain-text Markdown; no secrets are stored unless explicitly requested by the user.

05兼容性、维护与安全提示

  • Plugin-set changes require a dsh restart — any change to the installed plugin bundle only takes effect after restarting dsh web.
  • Memory files are plain-text Markdown; no secrets are stored unless explicitly requested by the user.
  • `memory_recall` session search depends on the deployed session-query index; without it, only local search works.
2026-08-142026-09-02作者未说明

BSD-3-Clause · npm package @a9i5k4/dsh-auto-memory (v0.1.30); no GitHub release tag published

06常见问题

如何把 dsh-auto-memory 安装到 DeepSeek Harness?

先安装 DeepSeek Harness 并启动一次 `dsh web`,然后 `cd ~/.dsh/profiles/web`,执行 `pnpm add @a9i5k4/dsh-auto-memory`,在 package.json 的 `dsh.profile.bundles` 数组里追加 `@a9i5k4/dsh-auto-memory`,重启 dsh web。激活后侧边栏会出现「Memory」入口。

模型必须主动调用记忆工具才能回忆吗?

不需要。宿主侧中间件持续观察对话上下文,在下一轮固定边界自动召回相关记忆(对前缀缓存友好),模型无需「记得去查」。

它能用我其他 AI 助手的记忆吗?

可以。外部记忆继承会扫描 WorkBuddy / CodeBuddy / Claude Code / Codex,按来源以路径指针方式导入(绝不复制内容),并可对每个来源单独管理或移除。

安装前有哪些前置条件和注意点?

需要已安装 DeepSeek Harness 并至少启动过一次 `dsh web`(必须存在 `~/.dsh/profiles/web` 目录),以及带有 pnpm/npm 的 Node。记忆文件是纯文本 Markdown,除非你要求否则不存储任何密钥;插件改动只有在重启 dsh 后才生效。

如何启用语义(稠密)检索引擎?

内置 JS 层(约 130MB)会自动安装;若 pnpm 拦截了原生构建脚本,你可能需要先 `pnpm approve-builds` 再 `pnpm add @huggingface/transformers`,然后重启 dsh web。词法 BM25(0GB)始终作为回退可用。

08数据与来源

  • 作者声明github.com40c2171a8110…

    A **proactive associative-memory plugin** for the DeepSeek Harness Web GUI

  • 作者声明github.com40c2171a8110…

    Run in the **profile directory** (`~/.dsh/profiles/web`):

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-03。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。