mem0-test-integration

mem0-test-integration is a skill for Claude Code, Codex from mem0ai/mem0. It costs 207 tokens per session (4,573 once invoked), scanned A, original, Apache-2.0.

A verification step for a Mem0 integration created by the integration tool. It installs dependencies, runs the repository's own tests, and performs a real end-to-end check using the user's API key.

In plain words
What is it for?
Use it after adding Mem0 to a project to run its tests, exercise a real memory flow, and receive a verification scorecard.
Why use it?
It catches build, dependency, connection, and runtime problems before the integration is considered ready.

Skill for Claude CodeCodex

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

About the project

mem0 is memory infrastructure that lets AI agents and applications store and retrieve information across interactions. It supports agents and developers who need persistent context for AI systems.

mem0ai/mem0 · 64,748 stars · on GitHub · mem0.ai

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.

agentmods
npx agentmods add skills/mem0ai/mem0/mem0-test-integration
Any agent
npx skills add mem0ai/mem0 --skill mem0-test-integration
Clone the repo
git clone --depth 1 https://github.com/mem0ai/mem0

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 mem0-test-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/mem0ai/mem0/mem0-test-integration.svg)](https://agentmods.dev/skills/mem0ai/mem0/mem0-test-integration)
Your own site
<a href="https://agentmods.dev/skills/mem0ai/mem0/mem0-test-integration"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/mem0-test-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00207 $0.04573
Opus 5 $0.00103 $0.02286
Sonnet 5 $0.00041 $0.00915
Haiku 4.5 $0.00021 $0.00457

Measured 6d ago against content hash d7ffd46f9493, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mem0-test-integration 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 6d 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.

skills/mem0-test-integration/SKILL.md · 369 lines

How it starts

The opening of the file, as written. The whole thing — 369 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mem0-test-integration

Verifies what /mem0-integrate produced. Runs in the same workspace, on the same feature branch. Loose coupling — fast, catches compile and runtime bugs, does not catch logical errors.

Canonical sources (use these, not ambient knowledge)

All static checks and smoke-test shapes validate against these URLs. WebFetch each before running step 3.

Read the Delegated skill: field in .mem0-integration/plan.md — if it names a skill URL, fetch that skill and use its example blocks as the reference for both static checks (step 3) and the smoke test (step 5).

Non-invasiveness contract

Every check in this skill assumes the integration is additive and feature-flagged (see /mem0-integrate "Integration principles"). Specifically:

  • product.json must contain a feature_flag field.
  • Steps 4–6 run in two passes:
    • Pass A — flag unset. All pre-existing tests must pass, smoke/E2E skip. The repo must behave like main. Any failure here is a hard fail — do not let the self-heal loop attempt a patch.
    • Pass B — flag set. New tests must pass, smoke and E2E run.
  • If Pass A fails, the scorecard marks non_invasive: false and sets overall: fail with a distinct reason code the integrator's heal loop refuses to touch.

Preconditions

Refuse to start unless ALL of the following are true:

Read the full file on GitHub · 369 lines

Files

What ships with it

2 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. 6d ago First seen · 369 lines · 207 tokens per session scan A d7ffd46f9493

Subscribe to this mod's changes

mem0-test-integration is a skill published in the GitHub repository mem0ai/mem0 (64,748 stars, last pushed yesterday), licensed Apache-2.0. It adds 207 tokens to every session and 4,573 once invoked, about $0.0010 per session on Opus 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-08-30.