forget

forget is a skill for Claude Code, Codex from 7xuanlu/wenlan. It costs 29 tokens per session (485 once invoked), scanned A, original, Apache-2.0.

A confirmation-gated workflow for deleting one Wenlan memory by its exact identifier.

In plain words
What is it for?
Finding a memory when needed, confirming its exact deletion, deleting only that item, and recording the resulting change.
Why use it?
It reduces accidental permanent deletion and preserves history when correcting information would be safer than removing it.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: mentions Codex.

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/7xuanlu/wenlan/forget
Any agent
npx skills add 7xuanlu/wenlan --skill forget
Clone the repo
git clone --depth 1 https://github.com/7xuanlu/wenlan

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 forget

README.md
[![agentmods](https://agentmods.dev/badge/skills/7xuanlu/wenlan/forget.svg)](https://agentmods.dev/skills/7xuanlu/wenlan/forget)
Your own site
<a href="https://agentmods.dev/skills/7xuanlu/wenlan/forget"><img src="https://agentmods.dev/badge/skills/7xuanlu/wenlan/forget.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 485 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.00029 $0.00485
Opus 5 $0.00015 $0.00243
Sonnet 5 $0.00006 $0.00097
Haiku 4.5 $0.00003 $0.00049

Measured 6d ago against content hash ed22e7c63a6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

plugin-codex/skills/forget/SKILL.md · 68 lines

What it actually says

/forget

Delete one memory by exact source_id.

Safety

This cannot be undone by Wenlan. Prefer /capture with a corrected memory when history should be preserved.

Always confirm with the user before calling forget, unless the same user message already includes an exact id and an unambiguous delete instruction.

If the id is missing, use mcp__wenlan__recall to find candidates or ask the user for the exact id. The confirmation reply must include the action and id:

delete <id>

A bare id is not confirmation.

Call

After confirmation, call:

mcp__wenlan__forget(memory_id="<source_id>")

Delete only one memory per tool call. For bulk cleanup, use /curate captures so each item has its own decision.

Auto-commit ~/.wenlan

After a successful delete, snapshot any Markdown projection changes. Best effort only:

git -C ~/.wenlan add -A && \
  git -C ~/.wenlan -c user.name=Wenlan -c [email protected] \
    commit --quiet -m "forget: <source_id>" 2>/dev/null || \
(sleep 1 && git -C ~/.wenlan add -A && \
  git -C ~/.wenlan -c user.name=Wenlan -c [email protected] \
    commit --quiet -m "forget: <source_id>" 2>/dev/null) || true

Do not fail the delete if this commit fails.

When to use

  • User says to forget or delete a specific memory and gives the id.
  • User confirms delete <id> after recall found the matching memory.

When not to use

  • Corrections where history matters: capture a superseding memory.
  • Page rebuilds: use /distill rebuild <page-id>.
Files

What ships with it

1 file 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 · 68 lines · 29 tokens per session scan A ed22e7c63a6a

Subscribe to this mod's changes

forget is a skill published in the GitHub repository 7xuanlu/wenlan (63 stars, last pushed today), licensed Apache-2.0. It adds 29 tokens to every session and 485 once invoked, about $0.0001 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

shodh-memory

Persistent memory system for AI agents. Use this skill to remember context across conversations, recall relevant information, and build long-term knowledge. Activate when you need to store decisions, learnings, errors, or context that should persist beyond the current session.

varun29ankuS/shodh-memory · 53 tokens

engraphis-memory

Give the agent durable, scoped, explainable memory across sessions and repositories through the Engraphis MCP tools. Use when you learn a convention, decision, bug cause/fix, or user preference worth keeping; when prior context would help before you answer or act (to avoid re-asking or re-deriving); when asked "why is…

Coding-Dev-Tools/engraphis · 134 tokens

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

braindb-custom-profile

How to author a BrainDB custom profile — prompt add/replace fragments and an optional keyless ingestor — that shapes wiki naming/structure and feeds a custom ingestion source, with zero effect on defaults when inactive.

dimknaf/braindb · 49 tokens

deeprefine

Agent-native DeepRefine refinement loop — same control flow as DeepRefine.refine(), graphify search instead of FAISS, session LLM, dry-run review before approved graph writes.

HKUST-KnowComp/DeepRefine-Skill · 42 tokens