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 IvanWng97/dotfiles --skill mem0git clone --depth 1 https://github.com/IvanWng97/dotfilesWrote 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/ivanwng97/dotfiles/mem0)<a href="https://agentmods.dev/skills/ivanwng97/dotfiles/mem0"><img src="https://agentmods.dev/badge/skills/ivanwng97/dotfiles/mem0/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/ivanwng97/dotfiles/mem0"><img src="https://agentmods.dev/badge/skills/ivanwng97/dotfiles/mem0.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.00050 | $0.00688 |
| Opus 5.5 | $0.00020 | $0.00275 |
| Sonnet 5.5 | $0.00010 | $0.00138 |
| Haiku 4.5 | $0.00005 | $0.00069 |
Grade A, and why
mem0 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 yesterday.
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.
What it actually says
mem0
- Shared cross-tool memory lives in the mem0 MCP server
mem0-mcp(hosted,https://mcp.mem0.ai/mcp), shared by Claude, Codex, and openclaw. Free tier = 1 project, so partition logically with metadata — never by separate projects. - Identity: always pass
user_id: "ivanwng97"on every call (add_memory/search_memories/get_memories); the hosted endpoint has no pinned default. Never setagent_id(fragments scope, breaks reads) and never AND two entity IDs — e.g.AND(user_id, app_id)returns empty due to null-default mismatch. - Repo scoping lives in
metadata, not entity IDs. Every write carriesmetadata.scope:- cross-repo profile fact →
metadata={"scope":"global"} - repo-specific fact (architecture, bug root-cause, runbook, local convention) →
metadata={"scope":"repo","repo":"<repo-name>"}
- cross-repo profile fact →
- Reads must AND the metadata — a bare
user_idfilter mixes global + every repo together. Metadata keys MUST be nested under ametadataclause; a bare top-level{"repo":…}/{"scope":…}ERRORS (onlyuser_id/agent_id/app_id/run_id/metadata/categories/timestamps are valid top-level filter keys — verified vs the live hosted API 2026-06-30):- repo:
filters={"AND":[{"user_id":"ivanwng97"},{"metadata":{"repo":"<repo-name>"}}]} - profile:
filters={"AND":[{"user_id":"ivanwng97"},{"metadata":{"scope":"global"}}]}
- repo:
- Free-tier budget: ~1,000 searches/mo (~33/day) is the binding limit; 10,000 writes/mo. Guard searches, not writes. ≤1
search_memoriesper session (top_k=3, default threshold, no rerank); reuse it. Useget_memories(filters=...)(list op) for "everything in scope". The SessionStart hook already loads the global profile. - Write: batch durable facts into one
add_memorywithinfer=true(extracts atomic memories + MD5-dedups). Store only durable signal — preferences, decisions, env, corrections — never secrets, scratch output, or speculation. No per-turn chatter; writes are model-judged (no auto Stop-hook). Don't mixinfer=true/falsefor the same fact (double-stores). - Verify a write for free via
get_event_status(event_id); never re-searchto confirm. - A repo's own
metadata.repotag is declared in that repo's agent guide (AGENTS.md, orCLAUDE.mdwhere the repo has one; one line).
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.
- yesterday First seen · 20 lines · 50 tokens per session scan A 792728ca2070
mem0 is a skill published in the GitHub repository IvanWng97/dotfiles (94 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 688 once invoked, about $0.0002 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-12-03.
mem0 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mem0IvanWng97/dotfiles | Skill | 94 | 2d ago | MIT | A | 50 | Claude Code |
| save-pipeline-memorymagic3007/dotfiles | Skill | 11 | 2d ago | MIT | A | 154 | Claude Code, Codex |
| save-memoryaiya000/dotfiles | Skill | 21 | 1mo ago | MIT | A | 34 | Claude Code |
| sync-memoryaiya000/dotfiles | Skill | 21 | 1mo ago | MIT | A | 92 | Claude Code |
| apply-to-agents-md-git-rootaiya000/dotfiles | Skill | 21 | 1mo ago | MIT | A | 77 | Claude Code |
| decline-handoff-suggestionaiya000/dotfiles | Skill | 21 | 1mo ago | MIT | A | 61 | Claude Code |
| apply-to-claude-md-home-rootaiya000/dotfiles | Skill | 21 | 1mo ago | MIT | A | 66 | Claude Code |