能力标签
⚙️
Agent工作流

腾讯DB智能代理

基于 TypeScript · 无代码搭建完整 AI 自动化流程
英文名:TencentDB-Agent-Memory
⭐ 6.1k Stars 🍴 529 Forks 💻 TypeScript 📄 NOASSERTION 🏷 AI 8.0分
8.0AI 综合评分
AI代理内存工作流
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,腾讯DB智能代理 获评「强烈推荐」。已获得 6.1k 颗 GitHub Star,这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。

📚 深度解析

腾讯DB智能代理 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

腾讯DB智能代理 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 8.0 分,是同类 Agent 工作流中的精选推荐。

📋 工具概览

腾讯DB智能代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 6.1k
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
持续维护,定期更新
开源协议
NOASSERTION
AI 综合评分
8.0 分
工具类型
Agent工作流
Forks
529

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

腾讯DB智能代理 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g tencentdb-agent-memory

# 方式二:npx 直接运行(无需安装)
npx tencentdb-agent-memory --help

# 方式三:项目依赖安装
npm install tencentdb-agent-memory

# 方式四:从源码运行
git clone https://github.com/TencentCloud/TencentDB-Agent-Memory
cd TencentDB-Agent-Memory
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
tencentdb-agent-memory --help

# 基本用法
tencentdb-agent-memory [options] <input>

# Node.js 代码中使用
const tencentdb_agent_memory = require('tencentdb-agent-memory');

const result = await tencentdb_agent_memory.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# tencentdb-agent-memory 配置说明
# 查看配置选项
tencentdb-agent-memory --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export TENCENTDB_AGENT_MEMORY_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 87/100 含工作流图 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<img src="./assets/images/logo.png" alt="TencentDB Agent Memory" width="880" />

Overview

Memory is not about hoarding everything in the AI — it is about sparing humans from having to repeat themselves.

In practice, we constantly re-explain the same SOPs, project background, tool conventions, and output formats to the Agent. Such information should not require repetition, nor should it be indiscriminately dumped into the context.

TencentDB Agent Memory helps the Agent learn your workflows, retain task context, and reuse past experience. We reject both brute-force history accumulation and irreversible lossy summarization. Instead, we design memory as a layered system: symbolic memory for in-task information overload, and memory layering for cross-session experience.

Let the Agent remember what should be remembered, so people can focus on judgment, creation, and work that truly matters.

---

✨ Highlights

TencentDB Agent Memory = symbolic short-term memory + layered long-term memory. - Symbolic short-term memory offloads heavy tool logs and condenses them into compact Mermaid symbols, cutting token usage and improving task success. - Layered long-term memory distills fragmented conversations into structured personas and scenes, instead of flat vector piles.

When integrated with OpenClaw, it cuts token usage by up to 61.38%, improves pass rate by 51.52% (relative), and raises PersonaMem accuracy from 48% to 76%.

Memory CapabilityBenchmarkOpenClaw SuccessWith PluginRelative ΔOpenClaw TokensWith Plugin TokensRelative Δ
**Short-term**WideSearch33%**50%****+51.52%**221.31M**85.64M****−61.38%**
**Short-term**SWE-bench58.4%**64.2%****+9.93%**3474.1M**2375.4M****−33.09%**
**Short-term**AA-LCR44.0%**47.5%****+7.95%**112.0M**77.3M****−30.98%**
**Long-term**PersonaMem48%**76%****+59%**
These results are measured over continuous long-horizon sessions, not isolated turns. For example, SWE-bench runs 50 consecutive tasks per session to simulate the context-accumulation pressure of real-world long-horizon agents.

---

🤔 Features

1.3 Enable short-term compression (optional, requires version ≥ 0.3.4)

{
  "memory-tencentdb": {
    "config": {
      "offload": {
        "enabled": true
      }
    }
  }
}

Step 1 — Register the slot in your plugin config

Add the slots field so OpenClaw routes context-offload requests to this plugin:

{
  "plugins": {
    "slots": {
      "contextEngine": "memory-tencentdb"
    }
  }
}

Step 2 — Apply the runtime patch

For the best results, run the patch script below. It hooks after-tool-call messages so they can be offloaded and recovered correctly:

bash scripts/openclaw-after-tool-call-messages.patch.sh
💡 The patch only needs to be applied once per OpenClaw installation. After upgrading OpenClaw, re-run the script to re-apply.

1.1 Install the plugin

openclaw plugins install @tencentdb-agent-memory/memory-tencentdb
openclaw gateway restart
Please use the native OpenClaw command to upgrade the plugin. This approach prevents the plugin from being disabled caused by semantic version ranges.
> openclaw plugins update @tencentdb-agent-memory/memory-tencentdb
> 

============ docker run Flags ============

--name hermes-memory Container name, for later docker exec / logs / stop

Enter the Docker build directory (already cloned the repo and at the repo root)

cd docker/opensource

Build

docker build -f Dockerfile.hermes -t hermes-memory .

Quick Start

🎬 Demos

OpenClaw × Agent Memory Hermes × Agent Memory

---

3. Production-Ready Engineering: Not a Demo

CapabilityDescription
OpenClaw pluginAutomatically captures, extracts, and recalls memory once installed
Hermes Gateway adapterTdaiCore + HostAdapter, decoupled from the host framework
Local backendSQLite + sqlite-vec, ready to use out of the box
Hybrid retrievalBM25 + vector + RRF — supports both keyword and semantic recall
Agent toolstdai_memory_search / tdai_conversation_search

---

1.2 Zero-config to enable

Defaults to a local SQLite + sqlite-vec backend.

// ~/.openclaw/openclaw.json
{
  "memory-tencentdb": {
    "enabled": true
  }
}

Once enabled, TencentDB Agent Memory automatically handles conversation capture, memory extraction, scene aggregation, persona generation, and recall before the next turn.

============ Configuration Parameters ============

-e MODEL_* Inject the config parameters above as env vars

🔒 Gateway Security (optional)

The Hermes Gateway listens on :8420 and exposes capture / search / recall HTTP endpoints. Two opt-in switches let you turn it from "open localhost sidecar" into "authenticated network service". Both default to off so existing deployments keep working unchanged.

FieldenvDefaultDescription
server.apiKeyTDAI_GATEWAY_API_KEY_(unset)_When set, every route except GET /health requires Authorization: Bearer <apiKey>; missing or wrong tokens get HTTP 401. Comparison is constant-time.
server.corsOriginsTDAI_CORS_ORIGINS (comma-separated)[]CORS allow-list. Empty list emits **no** Access-Control-Allow-* headers — browsers then block all cross-origin requests. Use ["*"] only for local development.

When apiKey is unset, the gateway prints a startup WARN. If it is bound to a non-loopback host (e.g. 0.0.0.0) without an apiKey, a second louder warning is emitted.

Clients call protected routes with a Bearer token:

curl -H "Authorization: Bearer $TDAI_GATEWAY_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"query":"...","session_key":"..."}' \
     http://127.0.0.1:8420/recall

GET /health stays open without a token so orchestrator probes (docker healthcheck, kubectl liveness) keep working.

🔧 Configurable Parameters

Every field has a sensible default — it runs with zero configuration. When you want to tune, peel back the layers based on how deep you go.

<details> <summary><b>🟢 Level 1 · Daily tuning</b> (covers 90% of use cases)</summary>

FieldDefaultDescription
timezone"system"Timezone for user/LLM-facing timestamps: "system" (follow process tz) / IANA name (Asia/Shanghai) / offset string (+08:00)
storeBackend"sqlite"Storage backend: sqlite
recall.strategy"hybrid"Recall strategy: keyword / embedding / hybrid (RRF fusion, recommended)
recall.maxResults5Number of items returned per recall
recall.maxCharsPerMemory0Max characters injected for one recalled L1 memory; 0 disables this guard
recall.maxTotalRecallChars0Total character budget for auto-recalled L1 memories; 0 disables this guard
pipeline.everyNConversations5Trigger an L1 memory extraction every N turns
extraction.maxMemoriesPerSession20Max memories extracted per L1 pass
persona.triggerEveryN50Generate the user persona every N new memories
offload.enabledfalseWhether to enable short-term compression

</details>

<details> <summary><b>🟡 Level 2 · Advanced tuning</b> (long task / long session)</summary>

FieldDefaultDescription
pipeline.enableWarmuptrueWarm-up: a new session triggers from turn 1, doubling each time up to N (1→2→4→…)
pipeline.l1IdleTimeoutSeconds600Trigger L1 after the user has been idle for this many seconds
pipeline.l2MinIntervalSeconds900Minimum interval between two L2 passes within the same session
recall.timeoutMs5000Recall timeout; on timeout, skip injection without blocking the conversation
extraction.enableDeduptrueL1 vector dedup / conflict detection
capture.excludeAgents[]Glob patterns to exclude specific agents (e.g. bench-judge-*)
capture.l0l1RetentionDays0Local retention days for L0 / L1 files; 0 = never clean up
offload.mildOffloadRatio0.5Mild compression trigger ratio (of context window)
offload.aggressiveCompressRatio0.85Aggressive compression trigger ratio
offload.mmdMaxTokenRatio0.2Token budget ratio for MMD injection
bm25.language"zh"Tokenizer language: zh (jieba) / en

</details>

<details> <summary><b>🔴 Level 3 · Full parameter reference</b> (ops / custom models / remote embedding)</summary>

For all fields, types, and constraints see openclaw.plugin.json

- embedding.* — remote embedding service (OpenAI-compatible API) - embedding.sendDimensions (default true): whether to include the dimensions field in the request body. OpenAI text-embedding-3-* models rely on it for Matryoshka truncation, but some self-hosted / OSS models (e.g. BGE-M3) do not support custom dimensions and will reject the request with HTTP 400 does not support matryoshka representation. Set it to false for those backends, e.g.:

    {
      "embedding": {
        "enabled": true,
        "provider": "openai",
        "baseUrl": "http://your-host:your-port/v1",
        "apiKey": "<KEY>",
        "model": "bge-m3",
        "dimensions": 1024,
        "sendDimensions": false
      }
    }
    
- llm.* — standalone LLM mode (bypass OpenClaw's built-in model and run L1/L2/L3 with a designated API) - offload.backendUrl / backendApiKey — offload the L1/L1.5/L2/L4 flow to a backend service - report.* — metrics reporting

</details>

---

MODEL_API_KEY LLM API key (required) — replace with your own credential

MODEL_BASE_URL LLM endpoint, defaults to Tencent Cloud LKE (Large Model Knowledge Engine)

MODEL_PROVIDER Provider type: "custom" works for any OpenAI-compatible endpoint

MODEL_API_KEY="your-api-key" MODEL_BASE_URL="https://api.lkeap.cloud.tencent.com/v1" MODEL_NAME="deepseek-v3.2" MODEL_PROVIDER="custom"

Hermes plugin side

The Hermes memory_tencentdb plugin is a client of the Gateway. To make it talk to a Gateway that has auth enabled, set:

export MEMORY_TENCENTDB_GATEWAY_API_KEY="<same-secret-as-gateway>"

The plugin will then attach Authorization: Bearer <key> to every request it sends to the Gateway. If the variable is unset, the plugin sends no auth header — which matches the Gateway's legacy default and is fine for a Gateway that has not opted into TDAI_GATEWAY_API_KEY.

Important: the plugin only handles the client half. Whether the Gateway actually enforces a Bearer check is decided on the Gateway side (TDAI_GATEWAY_API_KEY / server.apiKey). Configure the same secret on both ends — the plugin does not propagate the secret across, since the Gateway might be started by Docker, systemd, or any other means outside the plugin's control.

If MEMORY_TENCENTDB_GATEWAY_API_KEY is unset, the plugin also looks at TDAI_GATEWAY_API_KEY as a fallback — handy when both processes share an env file and the operator only wants to set one variable name. The Gateway never reads MEMORY_TENCENTDB_GATEWAY_API_KEY; that name is plugin-side only.

---

🎯 aiskill88 AI 点评 A 级 2026-06-24

高质量的AI工作流项目,提供本地长期内存

⚡ 核心功能

👥 适合人群

自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队

🎯 使用场景

  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同

⚖️ 优点与不足

✅ 优点
  • +GitHub 6.1k Star,社区高度认可
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

TencentDB Agent Memory是一个开源的AI工作流项目,提供本地长期内存 дляAI代理
💡 AI Skill Hub 点评

AI Skill Hub 点评:腾讯DB智能代理 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
📚 深入学习 腾讯DB智能代理
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 TencentDB-Agent-Memory
Topics AI代理内存工作流
GitHub https://github.com/TencentCloud/TencentDB-Agent-Memory
License NOASSERTION
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/TencentCloud/TencentDB-Agent-Memory

收录时间:2026-06-24 · 更新时间:2026-06-24 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →