CRUX-Compress: Command for Claude Code

.cursor/commands/crux-forget.md

crux-forget is a command for Claude Code, Cursor from zotoio/CRUX-Compress. It costs 0 tokens per session (766 once invoked), scanned A, original, MIT.

A chat command for deleting saved items from the CRUX memory collection.

In plain words
What is it for?
Finding memories by ID, name, file path, or search text, listing them for selection, and deleting the chosen items.
Why use it?
It helps remove outdated or unwanted project knowledge while requiring confirmation before deletion.

Command for Claude CodeCursor

Written for Claude Code and Cursor: $ARGUMENTS substitution, but also installed under .cursor/. Also seen: mentions subagents.

This is zotoio/CRUX-Compress's own configuration. It tells Claude Code and Cursor how to work on CRUX-Compress itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CRUX-Compress configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zotoio/CRUX-Compress. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zotoio/CRUX-Compress/main/.cursor/commands/crux-forget.md
Clone the repo
git clone --depth 1 https://github.com/zotoio/CRUX-Compress

Made for: Claude Code, Cursor.

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 crux-forget

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/zotoio/crux-compress/crux-forget"><img src="https://agentmods.dev/badge/commands/zotoio/crux-compress/crux-forget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 766 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.00000 $0.00766
Opus 5 $0.00000 $0.00383
Sonnet 5 $0.00000 $0.00153
Haiku 4.5 $0.00000 $0.00077

Measured 12d ago against content hash 8fc0593e045d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

crux-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 12d 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.

.cursor/commands/crux-forget.md · 59 lines

How it starts

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

crux-forget

Remove memories from the CRUX memory corpus.

Repository: github.com/zotoio/CRUX-Compress

Usage

/crux-forget <memory-id>           - Forget a specific memory by its short hash ID
/crux-forget <slug>                - Forget a memory by slug
/crux-forget <file-path>           - Forget a memory by file path
/crux-forget "search query"        - Search memories and select which to forget
/crux-forget                       - List all memories for selection

Instructions

This command uses Pattern B (work first, then escalate) — the subagent must search and resolve memory matches before the user can choose which to delete. The parent agent (you) orchestrates the workflow: spawn a subagent to resolve matches, confirm deletion with the user via AskQuestion, then resume the subagent to perform confirmed deletions. The subagent never calls AskQuestion directly.

Argument Handling

  • Memory ID(s) (7-char hex hash, e.g. a1b2c3d): Pass $ARGUMENTS to the subagent to resolve.
  • Slug(s) (e.g. validate-checksums-before-overwrite): Pass $ARGUMENTS to the subagent to resolve.
  • File path(s) (e.g. memories/learning/foo.memory.md): Pass $ARGUMENTS to the subagent to resolve.
  • Quoted text (e.g. "performance optimization"): Pass $ARGUMENTS to the subagent as a search query.
  • No arguments: The subagent loads the memory index and returns all memories for selection.

What Happens

Phase 1 — Subagent resolves matches:

  1. Spawn a crux-cursor-memory-manager subagent in Forget mode, passing $ARGUMENTS
  2. The subagent resolves the input to matching memory files and returns them with ID, title, type, strength, and file path
  3. If the subagent returns needs_user_input with the resolved matches, proceed to Phase 2

Phase 2 — Parent confirms deletion with user:

  1. Display matched memories to the user with their details
  2. Use the AskQuestion tool to confirm which memories to delete — present each memory as a multi-select option. Always confirm before deletion — this operation is destructive and irreversible.

Read the full file on GitHub · 59 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. 12d ago First seen · 59 lines · 0 tokens per session scan A 8fc0593e045d

Subscribe to this mod's changes

crux-forget is a command published in the GitHub repository zotoio/CRUX-Compress (8 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 766 tokens. 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-31.