Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

forget — Claude Code skill: what it does, how to install

Deletes selected durable memories from agentmemory after explicit confirmation. Useful when scrubbing secrets or obsolete notes.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rohitg00/agentmemory --skill forget -a claude-code
Open on GitHub

What forget does

The skill queries agentmemory via memory_smart_search with a 20-item limit on the memory layer. Before erasing anything, it displays matching memory IDs, titles, and scopes while redacting secret values. It pauses until you provide an explicit yes.

Once confirmed, it invokes memory_governance_delete with comma-separated memoryIds and an optional reason (defaults to plugin skill request). The deletion is destructive and irreversible. It cannot wipe entire sessions or handle observation IDs, and lessons require memory_lesson_delete instead.

What it helps with

  • remove obsolete notes and private information from agentmemory
  • scrub exposed credentials or keys after redacting them in the prompt
  • delete specific memory records matched by search query or file path

Example prompts for the agent

  • forget the old api key from the config
  • remove the memory note about deploy credentials
  • delete durable records found for file config.json

How to install forget

1Skills CLI (Vercel)

npx skills add rohitg00/agentmemory --skill forget -a claude-code

2Manually: put the files in place

~/.claude/skills/forget/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/forget/

From the same set11

The whole set →
remember rohitg00 Saves insights, decisions, and learnings to agentmemory long-term storage with concept tags so agents can retrieve them later. Claude Code CX Codex Cursor +1 14,000installs recall rohitg00 Searches past observations, sessions, and learnings through agentmemory. Use it to recover context when you need to know what a project already covered. Claude Code CX Codex Cursor +1 13,900installs session-history rohitg00 Shows recent project sessions as a clean timeline. Use it to recover past decisions, observations, and session status. Claude Code CX Codex Cursor +1 13,800installs commit-history rohitg00 Lists git commits linked to agent sessions with optional filters for branch, repo, and limit. Claude Code CX Codex Cursor +1 13,700installs handoff rohitg00 Resumes the latest agent session for the current directory and surfaces any unanswered questions first. Claude Code CX Codex Cursor +1 13,400installs agentmemory-agents rohitg00 Guides coding agents on linking the memory server via agentmemory connect. It safely merges host configurations without wiping existing MCP servers. Claude Code CX Codex Cursor +1 11,000installs agentmemory-mcp-tools rohitg00 Index of every agentmemory MCP tool with its parameters and workflows. Helps agents pick the right memory tool and format valid arguments. Claude Code CX Codex Cursor +1 10,900installs agentmemory-config rohitg00 This skill helps configure local agentmemory and check its MCP connection. Use it to enable features, inspect authentication, or diagnose a connection failure. Claude Code CX Codex Cursor +1 10,900installs

Similar

firebase-basics official google This skill sets up the Firebase CLI, handles sign-in, creates or switches projects, and downloads Android or iOS app configuration files. Claude Code Gemini CLI CX Codex 14,100installs knowledge-agent thedotmack Builds focused knowledge corpora from claude-mem observations and lets you query them in an AI session. Useful for reviewing past work by topic or project. Claude Code CX Codex Cursor +1 5,700installs stitch::generate-design official google-labs-code Turns a text prompt or an image into a finished UI screen through Stitch MCP, then edits it with targeted prompts. Claude Code CX Codex Cursor +1 10,700installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. Claude Code CX Codex Cursor +1 4,900installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. Claude Code CX Codex 282,859installs stitch-loop official google-labs-code Guides agents through iterative website creation with Stitch MCP. The agent reads the baton file, generates UI, integrates the page, and prepares tasks for the next run. Claude Code CX Codex Cursor +1 56,300installs

Questions about forget

How do I install forget in Claude Code?

Run npx skills add rohitg00/agentmemory --skill forget -a claude-code.

What does forget do?

It searches agentmemory records, previews the matches with redacted secrets, and deletes them upon explicit confirmation.

Can forget erase full sessions or lessons?

No, it only deletes specific durable memory records by ID. Whole-session wipes are unsupported, and lessons must be deleted with memory_lesson_delete.

Source text

SKILL.md · Apache-2.0
---
name: forget
description: Delete selected durable memories from agentmemory after showing them and getting explicit confirmation. Use when the user says "forget this", "delete memory", "remove that note", or wants to scrub specific data for privacy.
argument-hint: "[what to forget - session ID, file path, or search term]"
user-invocable: true
---

The user wants to remove data from agentmemory: $ARGUMENTS

## Quick start

```json
memory_smart_search { "query": "old api key in config", "targetLayer": "memory", "limit": 20 }
```

Show the matches, get a yes, then:

```json
memory_governance_delete { "memoryIds": "abc12345,def67890", "reason": "user privacy request" }
```

Expected output:

```text
Found 2 matching memories. Confirmed. Deleted 2 memories.
```

## Why

This is destructive and irreversible. Show exactly what will be deleted and get
an explicit yes before calling delete. Delete by memory ID, never a bare session.

## Workflow

1. Search with `memory_smart_search`, the user's text as `query`,
   `targetLayer: "memory"`, `limit: 20`, and the requested project/agent scope.
   These are selected relevance matches, not an exhaustive inventory.
2. Show what matched: memory ids, titles, and scope. Redact secret values. Ask for explicit
   confirmation. Do not proceed on silence or a vague "sure, whatever".
3. On confirmation, call `memory_governance_delete` with `memoryIds` as a
   comma-separated string and optional `reason` (default `plugin skill request`).
4. Observation or whole-session erasure is not supported by this operation.
   Explain that limit before proceeding; never label selected memory deletion
   as a complete session wipe. Do not pass observation IDs or a `sessionId`.
5. Lessons are separate: delete one with `memory_lesson_delete` and its
   `lessonId`; `memory_governance_delete` does not touch lessons.
6. Check `deleted`, `notFound`, and `failed` in the response. Report actual
   deletions and unresolved IDs separately. Recheck the selected IDs before
   retrying a failed request; an interrupted response may hide a completed write.

## Anti-patterns

WRONG: search returns matches, you immediately call `memory_governance_delete`
without showing them or waiting for a yes.

RIGHT: list the matches, ask "Delete these 2? (yes/no)", and only delete after
an explicit yes.

## Checklist

- Matches were shown to the user before any delete.
- An explicit yes was received, not assumed.
- `memoryIds` holds real ids from the search, never a bare `sessionId`.
- Final message states the actual count deleted.

## See also

- `remember`: the write side; forget is its undo.
- `recall`: find the exact memory id before deleting.

## Troubleshooting

See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_smart_search` or `memory_governance_delete` is not available.

© rohitg00 · Apache-2.0 · rohitg00/agentmemory

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor