forget

forget is a skill for Claude Code, Codex from mem0ai/mem0. It costs 31 tokens per session (225 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 CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the mem0 plugin — 6 skills, 1 agent, 9 hooks, 1 MCP server shipped together

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/forget
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, Codex.

Or install mem0, the plugin that ships this one along with the rest of its 6 skills, 1 agent, 9 hooks, 1 MCP server.

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.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.svg" alt="Measured on agentmods" 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 225 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 $0.00031 $0.00225
Opus 5 $0.00015 $0.00112
Sonnet 5 $0.00006 $0.00045
Haiku 4.5 $0.00003 $0.00022

Measured yesterday against content hash 23fd9fbec2d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

integrations/claude-code-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 "${CLAUDE_PLUGIN_ROOT}/core/memory_cli.py" 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. yesterday Changed · -45 lines · -9 tokens per session 23fd9fbec2d3
  2. 4d 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 (64,662 stars, last pushed today), licensed Apache-2.0. It adds 31 tokens to every session and 225 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

browserwing-executor

Control browser automation through HTTP API. Supports page navigation, element interaction (click, type, select), data extraction, accessibility snapshot analysis, screenshot, JavaScript execution, and batch operations.

MemTensor/MemOS · 42 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

ask-user-question

Ask users questions via the UI. Use when you need clarification, user preferences, or confirmation before proceeding. The user CANNOT see CLI output - this tool is the ONLY way to communicate with them.

MemTensor/MemOS · 44 tokens

memos-memory-guide

Use the MemOS Local memory system to search and use the user's past conversations. Use this skill whenever the user refers to past chats, their own preferences or history, or when you need to answer from prior context. When auto-recall returns nothing (long or unclear user query), generate your own short search query…

MemTensor/MemOS · 131 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens

safe-file-deletion

Enforces explicit user permission before any file deletion. Activates when you're about to use rm, unlink, fs.rm, or any operation that removes files from disk. MUST be followed for all delete operations.

MemTensor/MemOS · 46 tokens