dsh-memory-core
Agent 与会话 活跃维护

dsh-memory-core

AstroLiao/dsh-memory-core

为AI应用提供跨会话长期记忆与用户画像能力,自动留存用户身份、项目信息、偏好设置,基于纯Markdown存储,无需额外配置,开箱即用,记忆数据可随时编辑管理。

2
Stars 标星
0
Forks 分支
2
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
23 KB
仓库大小
21 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:AstroLiao/dsh-memory-core
git clone https://github.com/AstroLiao/dsh-memory-core.git
git clone git@github.com:AstroLiao/dsh-memory-core.git
README.md main
# dsh-memory-core **让 DeepSeek Harness 拥有跨会话长期记忆 + 用户画像 —— AI 自动记住你是谁、你的项目和偏好,新会话直接带上背景。纯 Markdown 本地存储,零配置、零外部依赖、数据完全留在本机。** *Long-term memory & user profile for DeepSeek Harness: the AI remembers who you are, your projects and preferences across sessions — zero-config, fully local, human-readable Markdown.*

这是什么

一个 DeepSeek Harness (DSH) 的 monorepo,包含两个插件:

说明 平台
@dsh-external/dsh-memory-core 跨会话长期记忆 + 用户画像核心:7 个工具 + 自动上下文注入 Host
@dsh-external/dsh-memory-ui 设置页"记忆"管理面板:浏览 / 编辑记忆、画像、会话笔记 Host + Client

特性

  • 🧠 长期记忆 + 短期笔记 + 用户画像,三合一,跨会话无感
  • 零配置、零外部依赖,装进 DSH 即可用,不连向量库、不连外部服务
  • 📝 纯 Markdown 存储,数据人类可读、可审计、可手动编辑
  • 🔌 自动上下文注入:每个会话 / agent preset / 子代理自动带上"记忆与画像"块,按话题相关性排序
  • 🔒 隐私优先:数据完全留在本机,不上传云端

快速开始

仓库结构

dsh-memory-core/
├── core/                 # @dsh-external/dsh-memory-core(核心)
│   ├── lib/index.js      # 7 个工具 + 画像 + 自动注入
│   ├── cordis.patch.yml  # bundle patch
│   └── README.md
└── ui/                   # @dsh-external/dsh-memory-ui(管理面板)
    ├── lib/index.js      # host 半区:webServer JSON API
    ├── lib/client.js     # client 半区:设置页 React 面板
    └── README.md

License

MIT