Yiipu/dsh-agentmemory0

dsh-agentmemory

DSH 与 agentmemory 的会话记忆桥接插件(仅限后端),将会话生命周期镜像到 agentmemory 中并注入记忆上下文。

AI 分析

核心用途是实现 DSH 与外部 agentmemory 服务的记忆同步与检索。适合需要高级语义记忆检索和会话压缩的专业用户。需要通过 cordis.yml 配置外部服务地址及密钥。

包名
dsh-agentmemory
版本
0.4.0
许可证
MIT
最近更新
2026年8月15日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yiipu/dsh-agentmemory

Configuration keys

baseUrl, secret (below), enabled (bridge master switch), enableTools, enableSessionStartEnd, curlTimeoutMs, observeBatchLimit, maxContentChars, maxArgsChars, injectContext (project recall switch, default true), injectContextMaxChars (default 6000), injectContextOnCompaction (pre-compaction re-inject, default true), injectSemantic (semantic recall switch, default false), injectSemanticMaxResults (default 8), injectSemanticMaxChars (default 3000).

Keys omitted from a row are filled with defaults by Cordis according to the plugin's Config schema — do not hand-write a merge. Cordis validates natively: an invalid value (such as curlTimeoutMs: -5) makes the plugin fail to load with a clear error. The full numeric bounds (min/max) are declared on each key in index.js.

secret: plaintext or an environment-variable reference

secret accepts two forms; whether you write plaintext is your choice:

FormBehavior
secret: "xxx"Plaintext, used verbatim as the Bearer token
secret: '${AGENTMEMORY_SECRET}'Reads the env var; if unset → load fails (loudly)
secret: '${AGENTMEMORY_SECRET:default}'Reads the env var; if unset → uses default
secret: '${AGENTMEMORY_SECRET:?goes nowhere}'Reads the env var; if unset → fails with the message goes nowhere

Environment variables are resolved through the shell seam at the start of apply() (the sandbox has no direct env access).