zouyuanqing/dsh-memory-openviking--packages-dsh-memory-openviking ↗★ 1
@deepseek-ai/dsh-memory-openviking
Host-plane memory service for DeepSeek Harness backed by a local OpenViking server: automatic session capture (write-behind), session-scoped recall, and profile injection primitives.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗@deepseek-ai/dsh-memory-openviking
DSH 宿主平面记忆服务(Host-plane memory service)。为 DeepSeek Harness 提供 基于本机 OpenViking 的长期记忆:会话自动捕获(write-behind)+ 召回/画像原语。
能力
- 自动捕获:订阅
session/event(用户/助手消息),在session/flush(受等待的持久化检查点)时批量写入 OpenViking 并触发服务端记忆抽取 (preferences/entities/events 分层,LLM 蒸馏)。无需显式调用工具。 memory服务 API(消费方注入['memory']):write(sessionId, messages)— 显式写入recall(query, {maxTokens, sessionId, peerScope, ...})— context-mode 召回, 返回{rendered, entries, stats}(rendered为可直接注入的 `` 块)search(query, opts)— 结构化条目(含 URI/score/category)profile(sessionId, {cacheTtlMs})— 会话工作记忆概览(带缓存)forget(uri)/commit(sessionId)/health()
- 失败降级:OpenViking 不可用时仅 warn(每会话一次),不阻塞会话循环。
挂载
# $DSH_HOME/cordis.patch.yml(host 平面,所有 profile 生效)
- id: memory-openviking
name: '@deepseek-ai/dsh-memory-openviking'
config:
baseUrl: 'http://127.0.0.1:18770'
包需可被 profile 解析:运行 scripts/dsh-install-memory-packages.ps1
(在 profiles/web/package.json 加 file: 依赖并安装)。改配置后需重启 DSH。
配置项
| 字段 | 默认 | 说明 |
|---|---|---|
baseUrl | http://127.0.0.1:18770 | OpenViking 服务地址 |
apiKey / account / user | — | 生产多租户模式用(dev 模式免认证) |
peerPerSession | false | 每 DSH 会话映射独立 OpenViking actor peer(dev 模式无 peers,生产位) |
peerScope | all | 召回范围 all | actor |
capture.toolResults |