Vocllum/DSH-TDAI-Memory-Adapter
DeepSeek Harness 的 TencentDB Agent Memory Adapter:自动召回、会话轮次捕获与只读搜索工具。
Project Overview项目介绍
DSH TDAI Memory Adapter is a lightweight DeepSeek Harness plugin that reuses an existing TencentDB Agent Memory Gateway and MemoryCore. It auto-recalls context before agent/pre-step, captures turns at agent/turn-stopping and session/flush to prevent duplicates, and exposes three read-only tools: tdai_memory_search, tdai_conversation_search, and tdai_skill_search. Use it when a Gateway/Core is already deployed. Note: TDAI_MEMORY_ENDPOINT, API key, and identity vars are required; memory features disable per-session if missing, but DSH keeps running.
DSH TDAI Memory Adapter 是 DeepSeek Harness 的轻量插件,复用已部署的 TencentDB Agent Memory Gateway 与 MemoryCore。它在 agent/pre-step 自动检索并注入上下文记忆,在 agent/turn-stopping 与 session/flush 捕获对话避免重复,并提供 tdai_memory_search、tdai_conversation_search、tdai_skill_search 三个只读工具。适用于已运行 Gateway/Core 的部署场景。注意:需配置 TDAI_MEMORY_ENDPOINT、API 密钥与身份信息,缺失时该会话记忆停用但不阻断 DSH。
请帮我了解并安装插件:【DSH-TDAI-Memory-Adapter】【https://github.com/Vocllum/DSH-TDAI-Memory-Adapter】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add https://github.com/Vocllum/DSH-TDAI-Memory-Adapter.git
把 Vocllum/DSH-TDAI-Memory-Adapter 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
🧠 DSH TDAI Memory Adapter
DeepSeek Harness 的 TencentDB Agent Memory Adapter
把自动 recall、turn 捕获和主动搜索接入现有 Gateway/Core。
✨ 功能
- 🔎 自动 recall:在
agent/pre-step前从已有 Gateway 检索相关记忆并注入上下文。 - 🧾 turn 捕获:在
agent/turn-stopping/session/flush捕获对话,避免重复提交。 - 🌱 后台沉淀:由现有 MemoryCore 异步完成 L1/L2/L3 与 Skill 提取。
- 🧰 主动搜索:提供
tdai_memory_search、tdai_conversation_search、tdai_skill_search只读工具。 - 🛟 故障隔离:Gateway 或记忆服务异常时 fail-open,不阻断 DSH。
🧭 工作方式
DSH lifecycle → Gateway → MemoryCore
recall L0 capture L1/L2/L3/Skill (后台异步)
🎯 和 dsh-tdai-memory 的区别
这是两个不同方向的项目:
| 项目 | 定位 |
|---|---|
Scorp1o117/dsh-tdai-memory |
把 MemoryCore、存储、向量和提取流水线整体移植到 DSH,并提供设置 UI。 |
| 本项目 | 轻量 Adapter,复用已运行的 TencentDB Agent Memory Gateway/Core,只负责 DSH 生命周期、身份传递和聚焦工具注册。 |
本项目不复制 MemoryCore,不管理本地记忆目录,不实现 MemoryProxy,也不暴露任意 URL/HTTP 执行器。两者可以按部署形态二选一,不能再共用同一个包名。
🚀 安装
dsh plugin --profile web add https://github.com/Vocllum/DSH-TDAI-Memory-Adapter.git
安装后重启目标 DSH profile。也可以从本地目录安装:
git clone https://github.com/Vocllum/DSH-TDAI-Memory-Adapter.git
dsh plugin --profile web add ./DSH-TDAI-Memory-Adapter
⚙️ 配置
export TDAI_MEMORY_ENDPOINT=http://127.0.0.1:8420
export TDAI_MEMORY_API_KEY=...
export TDAI_MEMORY_INSTANCE_ID=default
export TDAI_MEMORY_TEAM_ID=default
export TDAI_MEMORY_AGENT_ID=your-agent-id
export TDAI_MEMORY_USER_ID=your-user-id
export TDAI_MEMORY_RECALL_LIMIT=5
缺少身份配置时,该会话的记忆操作会停用,但不会阻断 DSH。密钥不会写入文件、模型上下文或工具结果。
🧰 工具
| 工具 | 用途 | Gateway 路径 |
|---|---|---|
tdai_memory_search |
搜索结构化长期记忆 | /v3/atomic/search |
tdai_conversation_search |
搜索原始对话历史 | /v3/conversation/search |
tdai_skill_search |
搜索后端管理的 Skill | /v3/skill/search |
🧪 开发
npm test
📄 许可证
MIT
csyangwen/dsh-memory-evolve
See-Sol-Lab/DeepSeekGUI
himovo/movo
PerryLink/dsh-composer-history
iamzcr/dsh-obsidian-assistant
PHoenixs57/deepseek-aix
Kaixxrua/dsh-aigc-radar