forget

forget is a skill for Claude Code from mem0ai/mem0. It costs 31 tokens per session (236 once invoked), scanned A, original, Apache-2.0.

A memory-removal skill finds saved memories by search or ID and deletes them only after confirmation. A memory ID is a unique identifier for one saved record.

In plain words
What is it for?
It is used to forget selected memories, clean up project history, or undo recent memory additions.
Why use it?
It helps remove outdated, incorrect, sensitive, or experimental memories while reducing the risk of deleting the wrong ones.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It is used to forget selected memories, clean up project history, or undo recent memory additions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mem0ai/mem0/forget
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 · 69,636 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.

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

Made for: Claude Code.

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 forget

README.md
[![agentmods](https://agentmods.dev/badge/skills/mem0ai/mem0/forget/github.svg)](https://agentmods.dev/skills/mem0ai/mem0/forget)
Your own site
<a href="https://agentmods.dev/skills/mem0ai/mem0/forget"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/forget/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 forget

Your own site · 80×15
<a href="https://agentmods.dev/skills/mem0ai/mem0/forget"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/forget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 236 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.00031 $0.00236
Opus 5.5 $0.00012 $0.00094
Sonnet 5.5 $0.00006 $0.00047
Haiku 4.5 $0.00003 $0.00024

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

Security

Grade A, and why

forget 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 2mo 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.

integrations/antigravity-plugin/skills/forget/SKILL.md · 27 lines

What it actually says

Forget this repository's memories

This permanently deletes remote memories. Before running anything, tell the user exactly what will be deleted: their own memories for this repository only. The repository's project memory is shared by everyone who works in it, so it stays unless the user explicitly asks to delete that too.

After the user confirms, run:

python3 "${ANTIGRAVITY_PLUGIN_ROOT}/core/memory_cli.py" --harness "antigravity"  forget --remote --yes

If the user also asked to delete the repository's shared project memory, add --include-project-memory and say that this removes it for every teammate.

Report what the command output says was deleted. If the user only wants local data cleared (evidence log, pending queue), run the same command without --remote. Never pass --yes before the user has confirmed in this conversation.

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. 2mo ago Changed 9645050b5e82
  2. 2mo ago Changed · -45 lines · -9 tokens per session 23fd9fbec2d3
  3. 3mo ago First seen · 72 lines · 40 tokens per session scan A 97564eea13ce

Subscribe to this mod's changes

forget is a skill published in the GitHub repository mem0ai/mem0 (69,636 stars, last pushed 2d ago), licensed Apache-2.0. It adds 31 tokens to every session and 236 once invoked, about $0.0001 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-08-30.

Related

forget compared with skills from other repositories

forget next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
forgetmem0ai/mem0Skill70k2d agoApache-2.0A31Claude Code
browserwing-executorMemTensor/MemOSSkill13k3d agoApache-2.0A42Claude Code, Codex
dev-browserMemTensor/MemOSSkill13k3d agoApache-2.0A84Claude Code, Codex
ask-user-questionMemTensor/MemOSSkill13k3d agoApache-2.0A44Claude Code, Codex
memos-memory-guideMemTensor/MemOSSkill13k3d agoApache-2.0A131Claude Code, Codex
browserwing-adminMemTensor/MemOSSkill13k3d agoApache-2.0B47Claude Code, Codex
safe-file-deletionMemTensor/MemOSSkill13k3d agoApache-2.0C46Claude Code, Codex