forget

forget is a command for Claude Code from major7apps/pensyve. It costs 10 tokens per session (521 once invoked), scanned A, original, Apache-2.0.

A memory deletion command for Pensyve, a system that stores information across sessions. It removes every stored memory associated with a specified entity.

In plain words
What is it for?
Use it to delete all memories linked to a person, project, or other entity.
Why use it?
It provides a way to clear an entity’s saved context when that information should no longer be retained.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the pensyve plugin — 3 skills, 7 commands, 2 agents, 5 hooks shipped together

Good fit Use it to delete all memories linked to a person, project, or other entity.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/major7apps/pensyve/forget
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.

Clone the repo
git clone --depth 1 https://github.com/major7apps/pensyve

Made for: Claude Code.

Or install pensyve, the plugin that ships this one along with the rest of its 3 skills, 7 commands, 2 agents, 5 hooks.

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/commands/major7apps/pensyve/forget/github.svg)](https://agentmods.dev/commands/major7apps/pensyve/forget)
Your own site
<a href="https://agentmods.dev/commands/major7apps/pensyve/forget"><img src="https://agentmods.dev/badge/commands/major7apps/pensyve/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/commands/major7apps/pensyve/forget"><img src="https://agentmods.dev/badge/commands/major7apps/pensyve/forget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 521 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.00010 $0.00521
Opus 5.5 $0.00004 $0.00208
Sonnet 5.5 $0.00002 $0.00104
Haiku 4.5 $0.00001 $0.00052

Measured 3mo ago against content hash 77630b89aab5, 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 3mo 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/claude-code/commands/forget.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/forget

Delete all memories associated with an entity in Pensyve. This is a destructive operation that requires confirmation.

Instructions

When the user invokes /forget <entity>, follow these steps:

  1. Parse the entity name. Normalize to lowercase, hyphenated format.

  2. Confirm before deleting. This is a destructive operation. ALWAYS ask the user to confirm before proceeding:

    You are about to delete all memories for entity <entity>. This cannot be undone.

    Type "yes" to confirm, or anything else to cancel.

    Do NOT proceed unless the user explicitly confirms with "yes", "y", "confirm", or equivalent affirmative.

  3. Call the MCP tool. After confirmation, use pensyve_forget with:

    • entity: The entity name
  4. Report the result. Tell the user:

    • The entity name
    • The number of memories deleted (forgotten_count from the response)
    • If the entity was not found, report that clearly

Examples

User: /forget auth-service

  • First ask: "You are about to delete all memories for entity auth-service. This cannot be undone. Type 'yes' to confirm."
  • After "yes": Call pensyve_forget with entity auth-service
  • Report: "Deleted 12 memories for entity auth-service."

User: /forget old-project

  • If entity not found: "Entity old-project was not found. No memories were deleted."

Constraints

  • Never read or write .claude/ memory files. All memory operations go through the Pensyve MCP tools.
  • MUST confirm before deleting. Never skip the confirmation step. This is a hard requirement.
  • Entity names MUST be lowercase and hyphenated.
  • Do not offer to "undo" the deletion -- it is permanent.
  • If the user asks to forget multiple entities, process them one at a time with individual confirmations.

Error Handling

  • If pensyve_forget returns an error, display the error message and suggest checking that the Pensyve MCP server is running.
  • If the entity is not found, report it clearly -- this is not an error, just an empty result.
  • If the MCP server is not connected, instruct the user to verify their MCP server configuration.

Read the full file on GitHub · 57 lines

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. 3mo ago First seen · 57 lines · 10 tokens per session scan A 77630b89aab5

Subscribe to this mod's changes

forget is a command published in the GitHub repository major7apps/pensyve (101 stars, last pushed 2d ago), licensed Apache-2.0. It adds 10 tokens to every session and 521 once invoked, about $0.0000 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 commands from other repositories

forget next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
forgetmajor7apps/pensyveCommand1012d agoApache-2.0A10Claude Code
save-memory0xK3vin/MegaMemoryCommand9297mo agoMITA0Claude Code
bootstrap-memory0xK3vin/MegaMemoryCommand9297mo agoMITA0Claude Code
memory-bootstrapjscott3201/aionforge-memoryCommand124mo agoApache-2.0A15Claude Code
memory-sessionjscott3201/aionforge-memoryCommand124mo agoApache-2.0A19Claude Code
memory-handoffjscott3201/aionforge-memoryCommand124mo agoApache-2.0A15Claude Code
gsd:threadmrboups/xbrainCommand22mo agoMITA13Claude Code