dsh-memory-hermes
在终端中运行以下命令:
dsh plugin install SipengXie2024/dsh-memory-hermes
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 终端中执行 dsh plugin install SipengXie2024/dsh-memory-hermes 即可安装,源码仓库为 https://github.com/SipengXie2024/dsh-memory-hermes
插件介绍
Most AI assistant memory schemes follow a "pile it up" model: every exchange gets appended to a growing store, entries balloon, and signal-to-noise degrades over time. dsh-memory-hermes takes the opposite approach. It gives the model a bounded two-file workspace (MEMORY.md for agent notes, USER.md for user profile) with hard codepoint limits, and only three maintenance actions: add, replace, remove. At session start the files are read once and frozen into the system prompt—prompt-cache friendly—and the model is forced to keep a sharp, compact list of persistent facts rather than an ever-growing dump.
The real depth is in the background pipeline. On a configurable trigger (every turn, token-delta threshold, or manual command), the plugin forks an isolated LLM call that replays the full conversation, extracts facts worth keeping that are not yet stored, and writes them with the same add/replace/remove semantics. v3 splits the output into two lanes: a memory lane that records who the user is, their preferences, and behavioral expectations in the bounded files, and a skill lane that distills technical lessons, workflow fixes, and bug fixes into dsh's native skill library under $DSH_HOME/skills/. As the skill library grows, v4's curator runs periodic maintenance—deterministic stale detection, LLM-driven consolidation of prefix clusters into class-level skills, demotion of narrow entries to references—each destructive pass preceded by an automatic snapshot. Every review and curator run is logged with a step-by-step tool-call trace visible in dsh's settings UI.
Built for developers running long dsh sessions who need persistent user context and reusable technical knowledge across sessions. If you are tired of a memory library that grows to thousands of entries yet still misses the key fact, or if you want technical experience to automatically sediment into reusable skills instead of living and dying in chat transcripts, this bounded, model-curated, background-maintained approach is an install-and-go starting point.
使用场景
- 长会话中保持精炼的用户画像与行为偏好,避免记忆库越攒越乱
- 将调试经验和工作流教训自动沉淀为可复用的 skill 条目
- 跨会话持久化关键事实,同时按 token 预算冻结注入系统提示
适合人员
- 运行长 dsh 会话、需要持久用户上下文的开发者
- 希望技术经验自动进入 skill 库而非只留在对话记录里的用户
- 想要无人值守的后台记忆维护与库整理、减少手动整理负担的团队