Skip to content

Cross-Platform Adapters for the Memory Plugin #235

Description

@Yuntong8888

背景

TencentDB-Agent-Memory 的核心记忆引擎支持多平台接入。目前已适配的平台包括:

  • OpenClaw 插件index.ts 作为 OpenClaw Plugin SDK 的入口,注册工具和钩子
  • Hermes Agent 集成:通过 hermes-plugin/memory/memory_tencentdb/ 目录下的 Provider 实现,经 HTTP Gateway 与核心引擎通信

但还有更多 Agent 平台有接入需求(如 Claude Code、Codex、Dify 等)。每接入一个新平台,都需要理解核心引擎的能力边界,然后为该平台编写适配层。

期望解决方案

  1. 阅读核心引擎接口:理解 TdaiCore 暴露的能力(recallcapturesearch 等)
  2. 分析已有适配层:对比 OpenClaw 插件和 Hermes Provider 两种适配方式的异同
  3. 选择一个新平台:为指定 Agent 平台编写适配层,实现记忆读写能力
  4. 编写适配文档:总结适配步骤和最佳实践,方便后续接入更多平台

验收标准(渐进式)

阶段 标准 难度
基础 阅读源码,画出核心引擎与各平台适配层的架构图,标注数据流 容易
进阶 选择一个平台编写适配代码,实现至少基本的记忆读写功能 中等
深入 适配两个或以上平台,并编写对比文档分析各平台的差异 较难
拓展 封装统一的适配器 SDK,让新平台接入只需实现一个接口 挑战

推荐技能

  • TypeScript / JavaScript 基础
  • 对 Agent 平台(OpenClaw、Hermes 等)有基本了解
  • 有一定的架构设计意识

本 issue 为 2026 犀牛鸟开源人才培养活动专属 issue,仅供已报名参与犀牛鸟活动的同学认领

  • 🗓 认领时间:7 月 1 日 ~ 7 月 31 日(7 月 1 日前认领视为无效 ❗)
  • 认领方式:在本 issue 评论区回复 「已认领本任务」,即视为认领成功
  • 📝 活动报名:需提前完成犀牛鸟报名问卷,问卷将用于活动登记和奖励发放 👉 https://wj.qq.com/s2/26888567/gh2q

This issue is reserved for the 2026 Tencent Rhino-Bird Open-Source Talent Program. Only participants who have registered for the program are eligible to claim it.

  • 🗓 Claim window: July 1 – July 31 (claims made before July 1 will be considered invalid ❗)
  • How to claim: Comment "I'd like to claim this task" below — your claim is confirmed once posted
  • 📝 Program registration: Please complete the Rhino-Bird registration form in advance. It will be used for activity tracking and reward distribution 👉 https://wj.qq.com/s2/26888567/gh2q

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions