DeepSeek Harness plugin

dsh-auto-memory-13048368

AutoMemory for DSH:会话级记忆(收尾提醒 + 软上限检查 + 记忆索引维护),配置面板在 设置→插件。

Jump to install

Source facts

Repository
1304836815/dsh-auto-memory
Latest update
Aug 21, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/1304836815/dsh-auto-memory
Plugin: dsh-auto-memory-13048368
Author: 1304836815

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-auto-memory

> DeepSeek Harness (DSH) 的会话级记忆插件:自动收尾提醒、记忆索引维护。所有配置都在「设置 → 插件 → AutoMemory」,无需手改 YAML。

dsh-auto-memory 让 DSH 记住你真正关心的东西:会话结束时有条理地收尾,跨会话的决策和结论不再丢失。

> 2026-08-16:原 remember 子模块(.remember 对话提取 / LLM 摘要 / NDC / consolidation)已整体剥离删除——摘要模型对 SKIP 判定反复出问题、修复成本高。本插件现仅保留无模型依赖的 autoMemory 核心功能。

特性

  • 收尾提醒:会话开始时把项目记忆索引注入给模型,超出行数/大小软上限时主动提醒整理
  • 收尾标记:会话未执行收尾即被销毁时落标记,下次会话开始提醒补收尾;已收尾则清除标记
  • 记忆索引:项目根 MEMORY.md 一行一个主题,配合笔记库(memory/)承载详细内容
  • 脚手架:会话开始时自动初始化 MEMORY.md 索引与 memory/_TEMPLATE.md 模板;用户级收尾 skill 自动装到 ~/.dsh/skills/auto-memory
  • 全图形化配置:无需手改 YAML,面板开关/下拉/文本字段直接读写

安装

要求:DSH(DeepSeek Harness)、Node.js 20+。peer 依赖由 DSH 运行时提供(@deepseek-ai/cordis@deepseek-ai/schemastery@deepseek-ai/dsh-settings)。

dsh plugin --profile web add <仓库地址或本地目录>

安装后重启 DSH,在「设置 → 插件」找到 AutoMemory。

配置

分组字段默认说明
会话记忆整理启用会话提醒注入记忆索引并做收尾提醒
记忆索引文件MEMORY.md项目根索引文件名
状态目录.dsh收尾标记存放目录
索引行数上限150超过后提醒整理
索引大小上限20 KB超过后提醒整理

工作原理

会话开始 ── 注入 MEMORY.md 索引软上限检查 + 未收尾提醒
            └─ 初始化记忆脚手架(MEMORY.md + memory/_TEMPLATE.md)
会话进行 ── 无(仅事件监听保留给收尾标记)
会话结束 ── 未收尾 → 写 .dsh/auto-memory-flag;已收尾 → 清标记
  • 收尾 skill 自动复制到 ~/.dsh/skills/auto-memory,指导收尾时该提炼什么
  • 标记文件:<stateDir>/auto-memory-flag(未收尾)、<stateDir>/auto-memory-done(已收尾),位于项目根的 .dsh/(默认)

源码目录

├── lib/index.js          Host 端(Cordis 插件):记忆生命周期、HTTP 配置路由
├── lib/client.js         Client 端(浏览器 bundle):设置面板,经 /auto-memory/api 读写配置
├── cordis.patch.yml      bundle patch:声明 Host 依赖(llm / settings / webServer)
├── scaffold/             项目记忆脚手架(MEMORY.md 索引 + 笔记模板)
└── skills/auto-memory    收尾 skill 模板

开发

# 验证配置加载与启动(Windows)
dsh --dump-config --profile web
dsh web
# 配置读写走插件自带路由
POST /auto-memory/api/settings.get
POST /auto-memory/api/settings.update   # body: { patch, expectedRevision }

常见问题

面板不显示? 浏览器硬刷新(Ctrl+Shift+R);确认安装后已重启 DSH。

许可

[MIT](LICENSE)