bytedance/agentkit-samples is a collection of examples and tutorials for Volcengine AgentKit, an AI-agent development platform for building, deploying, and operating agent applications. Developers use the samples to learn agent creation, multi-agent collaboration, memory, retrieval, MCP integrations, media generation, customer service, and other workflows. The catalogue skills provide agent workflows based on these examples.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add bytedance/agentkit-samples --skill byted-mem0-memory-managementgit clone --depth 1 https://github.com/bytedance/agentkit-samplesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bytedance/agentkit-samples/byted-mem0-memory-management)<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-mem0-memory-management"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-mem0-memory-management/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-mem0-memory-management"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-mem0-memory-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.04497 |
| Opus 5.5 | $0.00039 | $0.01799 |
| Sonnet 5.5 | $0.00020 | $0.00899 |
| Haiku 4.5 | $0.00010 | $0.00450 |
Grade A, and why
byted-mem0-memory-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill 概览
本 Skill 用于在对话中充当 火山引擎记忆库 Mem0 的智能运维代理:
- 理解用户的自然语言需求(中文或英文),在用户需要查询火山 Mem0 项目或管理其长期记忆时使用;
- 直接调用内置脚本
scripts/call_mem0.py查询记忆项目、操作记忆并获取实时结果; - 当获取到结果或用户粘贴错误信息时,进一步解释、诊断并给出后续建议。
工作模式:
- 控制面:查询记忆项目列表、项目详情和已有 API Key 信息,仅支持读操作;
- 数据面:支持服务探活、记忆添加、列举、搜索、读取、更新、删除及异步任务查询;
- 使用
scripts/call_mem0.py脚本直接获取 Mem0 的实时响应。
自建开源 mem0 的部署配置、内部 MemoryBase 运维和日志查询不属于本 Skill 的范围。
运行方式:
脚本支持两种运行方式,均需要 Python 3.9+,无第三方依赖:
# 方式 1:使用 uv
uv run ./scripts/call_mem0.py [action] [options]
# 方式 2:使用 python
python3 ./scripts/call_mem0.py [action] [options]
以上相对路径以本 Skill 目录为基准;在其他目录执行时,使用脚本的完整路径。
标准使用流程
-
确认任务类型与参数
- 判断用户意图:查询记忆项目列表、查看项目详情、添加记忆、搜索记忆、更新或删除记忆等。
- 收集必要参数(如未指定则使用环境变量或默认值):
action:操作类型,如list-projects、describe-project、search-memories等,为位置参数。--region:地域 ID,读取VOLCENGINE_REGION,默认cn-beijing,支持cn-shanghai。--project-id:Mem0 记忆项目 ID,默认读取MEM0_PROJECT_ID。--api-key-id:已有 API Key ID,默认读取MEM0_API_KEY_ID。--user-id、--agent-id、--run-id:需要操作的记忆范围。--memory-id、--event-id:单条记忆或异步任务的 ID,部分操作必需。
-
构造请求并调用脚本
-
配置 AK/SK、地域和项目环境变量,详见“环境变量配置”。
-
控制面使用 AK/SK 签名;数据面默认通过控制面只读接口发现项目公网地址,并读取已有 API Key 完成鉴权。自动读取的 Key 仅发送到该项目
VisitAddrs中列出的 HTTPS 地址。 -
示例(以下命令可使用
uv run或python3运行):# 查询记忆项目列表 uv run ./scripts/call_mem0.py list-projects # 或 python3 ./scripts/call_mem0.py list-projects # 查询已配置项目的详情 uv run ./scripts/call_mem0.py describe-project # 检查数据面连接和 API Key uv run ./scripts/call_mem0.py ping # 搜索指定用户的记忆 uv run ./scripts/call_mem0.py search-memories \ --user-id user-001 --query '用户喜欢喝什么?' --top-k 5
-
-
解析结果并后续处理
- 将 Mem0 的响应用自然语言解释给用户;列表查询默认只返回一页,按需继续分页。
- 异步添加返回
event_id表示任务已接收,需调用get-event检查状态和error,完成后再读取记忆。可每隔数秒查询并设置有限等待时长;超时保留事件 ID,不重复提交添加。 - 更新或删除记忆前,明确目标项目与记忆 ID 或用户、智能体、运行范围。用户明确要求清空指定范围时,才使用
delete-memories --confirm。 - API Key 值始终脱敏,不在对话中打印凭证明文。控制面不提供创建、修改或删除项目、API Key 的能力。
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 274 lines · 98 tokens per session scan A 69d18a33f018
byted-mem0-memory-management is a skill published in the GitHub repository bytedance/agentkit-samples (496 stars, last pushed 5d ago), licensed Apache-2.0. It adds 98 tokens to every session and 4,497 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.
byted-mem0-memory-management compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| byted-mem0-memory-managementbytedance/agentkit-samples | Skill | 496 | 5d ago | Apache-2.0 | A | 98 | Claude Code, Codex |
| agent-state-barbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 105 | Claude Code, Codex |
| knowledge-orgbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |
| aatmf-t04-memory-manipulationPurpleAILAB/Decepticon | Skill | 6.9k | 10d ago | Apache-2.0 | A | 39 | Claude Code, Codex |
| hive.note-takingaden-hive/hive | Skill | 11k | today | Apache-2.0 | A | 30 | Claude Code, Codex |
| kb-buildertinyfish-io/tinyfish-cookbook | Skill | 2.3k | 6d ago | MIT | A | 158 | Claude Code, Codex |
| rem-source-codexopenonion/connectonion | Skill | 1.6k | today | Apache-2.0 | A | 49 | Claude Code, Codex |