CRUX-Compress: Command for Claude Code

.cursor/commands/crux-amnesia.md

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

A chat command for temporarily turning off CRUX Memories during the current conversation.

In plain words
What is it for?
Toggling memory use on or off and checking whether the session is using memories or the repository configuration.
Why use it?
It prevents saved project memories from affecting normal work when you need a clean, context-free session. The change lasts only for the current chat and does not alter memory files or settings.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md). 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-amnesia.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-amnesia

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/zotoio/crux-compress/crux-amnesia"><img src="https://agentmods.dev/badge/commands/zotoio/crux-compress/crux-amnesia.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 673 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.00673
Opus 5 $0.00000 $0.00336
Sonnet 5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00067

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

Security

Grade A, and why

crux-amnesia 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 11d 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-amnesia.md · 64 lines

How it starts

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

crux-amnesia

Temporarily disable or restore ambient CRUX memory usage for the current chat session.

Repository: github.com/zotoio/CRUX-Compress

Usage

/crux-amnesia           - Toggle amnesia mode for this chat session
/crux-amnesia on        - Disable ambient memory usage for this chat session
/crux-amnesia off       - Restore normal config-driven memory behavior
/crux-amnesia status    - Show the current session memory mode

Instructions

This command manages a session-scoped override only. It must never edit .crux/crux-memories.json, memory files, trackers, or the memory index.

Argument Handling

  • No arguments: Toggle the current chat session between:
    • Amnesia ON — suppress ambient memory usage for normal work
    • Amnesia OFF — return to normal behavior governed by .crux/crux-memories.json
  • on: Enable amnesia mode for the current chat session.
  • off: Disable amnesia mode and return to config-driven behavior.
  • status: Report whether the current chat session is in amnesia mode or following the repo config.

What Amnesia ON Means

When amnesia mode is active for this chat session:

  1. Do not discover memories from .crux/memory-index.yml
  2. Do not load memory files automatically
  3. Do not annotate output with [memory:{title}]
  4. Do not increment memory reference tracking
  5. Do not suggest /crux-dream automatically after ordinary work
  6. When spawning subagents for ordinary work, explicitly tell them that CRUX memories are disabled for this chat session and they must not use them

This override applies only to ambient memory usage during ordinary work. If the user explicitly invokes a memory command such as /crux-dream, /crux-recall, /crux-forget, /crux-remember, or /crux-meditate, treat that as direct user intent to interact with the memory system.

What Amnesia OFF Means

  • Return to the repository's normal behavior
  • Respect .crux/crux-memories.json again
  • If enableMemories is "false" in config, memories remain disabled even after amnesia is turned off

Read the full file on GitHub · 64 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. 11d ago First seen · 64 lines · 0 tokens per session scan A 7dfbabc1598c

Subscribe to this mod's changes

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