dsh-memory
DeepSeek Harness 的持久化跨会话记忆插件:基于本地 SQLite FTS5 存储,提供三个面向模型的工具和一个召回提示词段,无需嵌入服务或侧边栏。
AI 分析
核心用途是为 AI 提供轻量级的跨会话长期记忆。适合需要 Agent 记住历史设定、项目背景或用户偏好的长期任务,无需复杂的向量数据库配置。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ben7am1n/dsh-memory說明文件
閱讀完整 README ↗Configuration
- id: memory
name: dsh-memory
config:
path: !!js dshHomePath('memory/memory.db')
promptRecentCount: 10
promptMaxChars: 2000
maxTextChars: 2000
searchLimitDefault: 10
searchLimitMax: 50
promptOrder: 50
| Field | Default | Meaning |
|---|---|---|
path | — (required) | SQLite file, or :memory: for an ephemeral store |
promptRecentCount | 10 | Unpinned recent memories offered to the prompt section |
promptMaxChars | 2000 | Budget for the rendered section; overflow is reported as a count, and pinned memories are emitted first so they survive a tight budget |
maxTextChars | 2000 | Maximum characters accepted for one memory |
searchLimitDefault | 10 | memory_search limit when the model omits it |
searchLimitMax | 50 | Hard cap, whatever the model asks for |
promptOrder | 50 | Section order; -100 is the harness identity, 0 the persona |
path has no code-side default on purpose: a default would scatter durable user facts into whatever directory the harness happened to start in. The deployment value lives in the patch row.