Skip to content

dsh-lpipe-memory

Verified

dsh-lpipe-memory · v0.1.5 · AGPL-3.0-or-later · Web UI

把会话原文逐字投影到长期文件:按会话分文件夹,按天分卷,哈希链可校验。

Install

dsh plugin add dsh-lpipe-memory

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Tags

Readme

dsh-lpipe-memory · 记忆管线

中文 · English

中文

把 DeepSeek Harness 的对话原文和媒体保存到本地,作为长期记忆。星图据此整理概念,回忆据此找回原句和图片;本包负责保存原始资料。

安装与开始使用

在 DSH 插件管理中安装并启用 dsh-lpipe-memory。插件需要生命核心,无需先装整合包。要求 DSH >=0.2.0-rc.2,Node.js ^22.19 || >=24。

  1. 打开 设置 → Lpipe 设置,绑定 LP 主对话。
  2. 默认只记录主对话。希望记录其他会话时,打开记忆中的「所有对话生效」。
  3. 完成一轮对话后查看记忆统计。
  4. 希望模型在聊天时想起旧事,还需要启用星图与回忆,并配置星图模型。

「所有对话生效」同时控制记忆、星图和回忆的作用范围,不改变聊天、唤醒或 B 站的范围,也不会删除已有历史。

会保存什么

记忆保存用户与助手消息、思考内容,以及普通工具活动和相关媒体。系统提示、临时运行上下文及回忆等功能生成的重复注入会排除,避免把检索结果再次当成原始经历。

保存通常在一轮对话结束后完成,异常情况下另有定时写入。刚收到消息时,统计可能还没有更新。原始资料被保存,不代表每种内容都会参与后续回忆检索。

隐私与备份

记忆可能包含私人对话、思考和附件。数据保存在宿主的本地记忆目录中,默认位于用户主目录的 .dsh/life-memory 下;配置过宿主数据位置时,以实际目录为准。压缩和完整性检查不等于加密,也不能恢复已经丢失的文件。

备份前应暂停写入,并保存完整记忆目录,包括媒体、索引与状态。只备份文字会丢失图片等资料;星图可以重建,但不能代替原始记忆的备份。

没有新增记录时,请检查主对话绑定、作用范围,以及当前一轮是否已经保存。

许可:AGPL-3.0-or-later。

English

Keep original DeepSeek Harness conversations and media locally as long-term memory. Starmap organizes concepts from these records, and Recall uses them to retrieve original sentences and pictures. This package preserves the source material.

Install and start

Install and enable dsh-lpipe-memory through DSH plugin management. It requires Life Core, not the aggregate package. Requires DSH >=0.2.0-rc.2 and Node.js ^22.19 || >=24.

Bind the LP main conversation in Settings → Lpipe settings. Only that conversation is recorded by default; turn on all sessions in Memory settings to include others. Complete a turn and inspect the statistics. Enable Starmap and Recall, and configure a Starmap model, to bring older memories into conversation.

The all-sessions option controls Memory, Starmap and Recall together. It does not change Chat, Wake or Bilibili scope, or delete stored history.

What is saved

Memory retains user and assistant messages, reasoning, ordinary tool activity and related media. System prompts, temporary runtime context and generated recall-like injections are excluded to avoid storing retrieved material again as an original experience.

Records normally save after a turn ends, with a timed fallback. Statistics may not update immediately after a message arrives. Being stored does not mean every kind of content participates in later retrieval.

Privacy and backups

Records may contain private conversations, reasoning and attachments. The default local folder is .dsh/life-memory under your home directory; a customized host data location can change this. Compression and integrity checks do not encrypt data or restore missing files.

Pause writes before backing up the complete memory folder, including media, indexes and state. Text-only backups lose media. Starmap can be rebuilt, but its index is not a backup of the original records.

If no records appear, check the main-conversation binding, scope and whether the current turn has been saved.

License: AGPL-3.0-or-later.