zouyuanqing/dsh-memory-openviking--packages-dsh-memory-openviking1

@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 的自动会话记忆捕获与召回服务。适合需要构建具备长期记忆、跨会话信息检索能力的智能体系统的开发者。

Package
@deepseek-ai/dsh-memory-openviking
Version
0.4.0
License
MIT
Last updated
Aug 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置项

字段默认说明
baseUrlhttp://127.0.0.1:18770OpenViking 服务地址
apiKey / account / user生产多租户模式用(dev 模式免认证)
peerPerSessionfalse每 DSH 会话映射独立 OpenViking actor peer
peerScopeall召回范围 all | actor
capture.toolResultsfalse是否捕获工具结果消息
capture.nonUserSourcesfalse是否捕获注入型用户消息(skill 内容等)
capture.subagentSessionsfalse是否捕获子代理会话
capture.flushThresholdBytes4096缓冲字符数超限提前 drain
capture.commitIntervalMessages16累计消息数触发记忆抽取 commit
capture.commitIntervalMs60000commit 基础最小间隔(防抽取队列洪泛);会话变长后按 addedTotal 自动放大(每次 commit 会重抽整个会话归档)
capture.keepRecentMessages4commit 时保留的最近未归档消息数(终局 commit 用 0)
capture.maxBufferBytes262144宕机时保留缓冲的硬上限
capture.flushTimeoutMs2000session/flush 最长网络等待(0 = 等完)
capture.retryMaxAttempts8失败重试上限(之后死信/丢弃)
capture.retryBaseDelayMs1000退避基数(×2^n)
capture.retryMaxDelayMs60000退避封顶
deadLetterDir''死信目录('' = 不落盘,仅 warn)
recall.maxTokens1600context 召回 token 预算(64..32000)
recall.scoreThreshold召回分数下限
recall.cacheTtlMs300000profile 缓存 TTL
timeoutMs15000HTTP 超时

多租户警告:未配置 account/userpeerPerSession=falsepeerScope='all' 时,所有 DSH 会话共享一个 OpenViking actor——多用户 部署下记忆会互串。启动时会对此组合打 warn 日志。生产多租户请设置 account/user + peerPerSession: true + peerScope: 'actor'