Vocllum/DSH-TDAI-Memory-Adapter

DeepSeek Harness 的 TencentDB Agent Memory Adapter:自动召回、会话轮次捕获与只读搜索工具。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), designed to connect an already independently deployed Tencent Cloud TDAI Agent Memory service to DSH. It acts as a lightweight adapter that integrates TDAI’s existing Gateway and MemoryCore into DSH’s agent lifecycle, rather than porting the entire TDAI memory stack to DSH. It automatically retrieves relevant memory from TDAI before each agent step, injects it into the DSH context, captures new conversation turns for asynchronous memory processing, and registers three read-only search tools for DSH to use.

This plugin is targeted at users who already have a full TDAI memory service running separately, and just want to add its memory capabilities to their DSH instance. It follows DSH’s native lifecycle hook system to run its memory recall and capture steps at the correct points in the agent workflow. If the TDAI Gateway or memory service encounters an error, the plugin uses a fail-open strategy that does not block DSH from running its core agent tasks, ensuring basic functionality remains available even when memory services are down.

You can install this plugin directly via the DSH CLI using the command dsh plugin add with either the repository URL or a local clone of the repo. After installation, you just need to restart your DSH profile for the plugin to take effect. You will need to configure your TDAI service endpoint, API key, and instance and user identifiers via environment variables; your API key is never stored to disk or exposed to the model. The plugin is released under the permissive MIT license, so you can use or modify it freely.

这是专为DeepSeek Harness(DSH)开发的原生插件,用于连接已部署的腾讯云Agent Memory(TDAI)完整服务。它将TDAI已有的Gateway和MemoryCore接入DSH的代理生命周期,在代理执行步骤前自动召回相关记忆注入上下文,捕获对话轮次避免重复提交,支持异步沉淀分层记忆,并注册三个只读搜索工具供DSH调用,不需要在DSH侧重复部署整套记忆服务。

适合已经独立部署了TDAI记忆服务,只想给DSH接入这套成熟记忆能力的用户。工作时遵循DSH的生命周期流程,先完成自动记忆召回再启动代理任务,对话结束后捕获对话轮次交给TDAI的MemoryCore异步处理分层记忆和技能提取。如果记忆服务出现异常,插件会采用故障开放策略,不会阻断DSH本身的运行,保证基础代理任务能够正常执行。

安装可通过DSH的CLI直接完成,执行dsh plugin add命令即可添加远程仓库或本地目录的插件,安装后重启DSH配置文件即可使用。配置需要通过环境变量填入TDAI服务的端点、身份密钥、实例ID等信息,身份密钥不会持久化存储,未正确配置时仅停用记忆功能不影响DSH运行。本插件采用MIT许可证开源,完全免费使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

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。

安装 · 功能 · 区别 · 配置 · English

✨ 功能

  • 🔎 自动 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

🇬🇧 Read this page in English

← 上一个 Prev mv-superds 下一个 Next dsh-plugin-security-review →