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 with retry + dead-letter), session-scoped recall, and profile injection primitives.
AI Analysis
在主机端提供基于 OpenViking 的自动会话记忆捕获与召回服务。适合需要构建具备长期记忆、跨会话信息检索能力的智能体系统的开发者。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置项
| 字段 | 默认 | 说明 |
|---|---|---|
baseUrl | http://127.0.0.1:18770 | OpenViking 服务地址 |
apiKey / account / user | — | 生产多租户模式用(dev 模式免认证) |
peerPerSession | false | 每 DSH 会话映射独立 OpenViking actor peer |
peerScope | all | 召回范围 all | actor |
capture.toolResults | false | 是否捕获工具结果消息 |
capture.nonUserSources | false | 是否捕获注入型用户消息(skill 内容等) |
capture.subagentSessions | false | 是否捕获子代理会话 |
capture.flushThresholdBytes | 4096 | 缓冲字符数超限提前 drain |
capture.commitIntervalMessages | 16 | 累计消息数触发记忆抽取 commit |
capture.commitIntervalMs | 60000 | commit 基础最小间隔(防抽取队列洪泛);会话变长后按 addedTotal 自动放大(每次 commit 会重抽整个会话归档) |
capture.keepRecentMessages | 4 | commit 时保留的最近未归档消息数(终局 commit 用 0) |
capture.maxBufferBytes | 262144 | 宕机时保留缓冲的硬上限 |
capture.flushTimeoutMs | 2000 | session/flush 最长网络等待(0 = 等完) |
capture.retryMaxAttempts | 8 | 失败重试上限(之后死信/丢弃) |
capture.retryBaseDelayMs | 1000 | 退避基数(×2^n) |
capture.retryMaxDelayMs | 60000 | 退避封顶 |
deadLetterDir | '' | 死信目录('' = 不落盘,仅 warn) |
recall.maxTokens | 1600 | context 召回 token 预算(64..32000) |
recall.scoreThreshold | — | 召回分数下限 |
recall.cacheTtlMs | 300000 | profile 缓存 TTL |
timeoutMs | 15000 | HTTP 超时 |
多租户警告:未配置
account/user且peerPerSession=false、peerScope='all'时,所有 DSH 会话共享一个 OpenViking actor——多用户 部署下记忆会互串。启动时会对此组合打 warn 日志。生产多租户请设置account/user+peerPerSession: true+peerScope: 'actor'。