byted-mem0-memory-management

byted-mem0-memory-management is a skill for Claude Code, Codex from bytedance/agentkit-samples. It costs 98 tokens per session (4,497 once invoked), scanned A, original, Apache-2.0.

A management skill for Mem0, a service that stores and searches long-term memories for applications. It can query projects and keys and manage stored memories through the listed Python script and service API.

In plain words
What is it for?
Use it to list or inspect Mem0 projects, check service details, and add, find, read, update, or remove memories and asynchronous tasks.
Why use it?
It provides a defined way to inspect or change application memories instead of handling the service requests manually. The control-plane operations are read-only, while memory data can be added, searched, updated, or deleted.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list or inspect Mem0 projects, check service details, and add, find, read, update, or remove memories and asynchronous tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bytedance/agentkit-samples/byted-mem0-memory-management
About the project

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.

bytedance/agentkit-samples · 496 stars · on GitHub

Install

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.

Any agent
npx skills add bytedance/agentkit-samples --skill byted-mem0-memory-management
Clone the repo
git clone --depth 1 https://github.com/bytedance/agentkit-samples

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for byted-mem0-memory-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-mem0-memory-management/github.svg)](https://agentmods.dev/skills/bytedance/agentkit-samples/byted-mem0-memory-management)
Your own site
<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.

agentmods 80×15 button for byted-mem0-memory-management

Your own site · 80×15
<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>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 69d18a33f018, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/call_mem0.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/byted-mem0-memory-management/SKILL.md · 274 lines

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 目录为基准;在其他目录执行时,使用脚本的完整路径。

标准使用流程

  1. 确认任务类型与参数

    • 判断用户意图:查询记忆项目列表、查看项目详情、添加记忆、搜索记忆、更新或删除记忆等。
    • 收集必要参数(如未指定则使用环境变量或默认值):
      • 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,部分操作必需。
  2. 构造请求并调用脚本

    • 配置 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
      
  3. 解析结果并后续处理

    • 将 Mem0 的响应用自然语言解释给用户;列表查询默认只返回一页,按需继续分页。
    • 异步添加返回 event_id 表示任务已接收,需调用 get-event 检查状态和 error,完成后再读取记忆。可每隔数秒查询并设置有限等待时长;超时保留事件 ID,不重复提交添加。
    • 更新或删除记忆前,明确目标项目与记忆 ID 或用户、智能体、运行范围。用户明确要求清空指定范围时,才使用 delete-memories --confirm。
    • API Key 值始终脱敏,不在对话中打印凭证明文。控制面不提供创建、修改或删除项目、API Key 的能力。

Read the full file on GitHub · 274 lines

Files

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.

Changes

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.

  1. 1mo ago First seen · 274 lines · 98 tokens per session scan A 69d18a33f018

Subscribe to this mod's changes

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.

Related

byted-mem0-memory-management compared with skills from other repositories

byted-mem0-memory-management next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
byted-mem0-memory-managementbytedance/agentkit-samplesSkill4965d agoApache-2.0A98Claude Code, Codex
agent-state-barbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A105Claude Code, Codex
knowledge-orgbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A96Claude Code, Codex
aatmf-t04-memory-manipulationPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A39Claude Code, Codex
hive.note-takingaden-hive/hiveSkill11ktodayApache-2.0A30Claude Code, Codex
kb-buildertinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA158Claude Code, Codex
rem-source-codexopenonion/connectonionSkill1.6ktodayApache-2.0A49Claude Code, Codex