dsh-memory-vi
其他 活跃维护

dsh-memory-vi

zxck5xz/dsh-memory-vi

轻量级项目长期记忆模块,基于SQLite实现本地持久化,可自动归集项目上下文交互记录,跨会话稳定调用,无需额外部署服务,开箱即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
10 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:zxck5xz/dsh-memory-vi
git clone https://github.com/zxck5xz/dsh-memory-vi.git
git clone git@github.com:zxck5xz/dsh-memory-vi.git
README.md main

dsh-memory-vi

Per-project long-term memory for DeepSeek Harness (DSH), backed by SQLite.

The plugin registers three tools: memory_save, memory_recall, memory_search.
Memories are scoped per project (derived from the session working directory), so
each project keeps its own long-term context across sessions.

  • No native dependencies: uses node:sqlite (Node 22.19+ / 24+).
  • Data lives in $DSH_HOME/memory/memory.db (default ~/.dsh/memory/memory.db).

Install

dsh plugin --profile desktop add "github:zxck5xz/dsh-memory-vi#main"

Restart dsh web (or the desktop app) after adding.

Usage

Ask the model to remember things in a session, e.g.:

  • "Lưu lại rằng dự án này dùng port 3000" → memory_save
  • "Nhớ lại kiến trúc của dự án này" → memory_search / memory_recall

Tools

Tool Purpose
memory_save Save a memory: content (required), key (optional), tags (optional).
memory_recall Retrieve one memory by key.
memory_search Keyword search across content/key, optional tags filter, limit (default 10).

Configuration

# profile cordis.patch.yml
- id: dsh-memory-vi
  name: dsh-memory-vi
  config:
    root: C:/data/memory   # optional; defaults to $DSH_HOME/memory

Development

npm install
npm run build   # tsc -> lib/
npm test        # runs db selfcheck

License

MIT