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许可证开源,完全免费使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:DSH-TDAI-Memory-Adapter(Vocllum/DSH-TDAI-Memory-Adapter)
仓库:https://github.com/Vocllum/DSH-TDAI-Memory-Adapter
本站详情页:https://www.yhbd.top/plugins/vocllum-dsh-tdai-memory-adapter/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-18 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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。
✨ 功能
- 🔎 自动 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
PolinniZhong/dsh-session-workbench
PerryLink/dsh-composer-history
PHoenixs57/deepseek-aix