CRUX-Compress: Command for Claude Code

.cursor/commands/crux-recall.md

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

A command for searching and displaying stored CRUX project memories in readable form.

In plain words
What is it for?
It can show relevant memories, search by a query, display a specific memory file or specification’s memories, and create an interactive view of the whole memory system.
Why use it?
It makes relevant project context easier to retrieve instead of relying only on the current conversation or manually opening memory files.

Command for Claude CodeCursor

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

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-recall.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-recall

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/zotoio/crux-compress/crux-recall"><img src="https://agentmods.dev/badge/commands/zotoio/crux-compress/crux-recall.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 1,481 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.01481
Opus 5.5 $0.00000 $0.00592
Sonnet 5.5 $0.00000 $0.00296
Haiku 4.5 $0.00000 $0.00148

Measured 1mo ago against content hash e48bb2a79f05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

crux-recall scanned grade B with 1 finding 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 1mo 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

**User input escalation — CRITICAL**: This command uses **Pattern B (work first, then escalate)**. The subagent NEVER calls `AskQuestion` directly — the parent agent handles every post-display prompt (delete, consolidate
.cursor/commands/crux-recall.md · 93 lines

How it starts

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

crux-recall

Decompress, query, and display CRUX memories in human-readable form.

Repository: github.com/zotoio/CRUX-Compress

Usage

/crux-recall                                    - Show contextually relevant memories
/crux-recall "search query"                     - Search memories by keyword
/crux-recall 20260403-crux-memories              - Show memories from a specific spec
/crux-recall memories/core/some-memory.memory.md - Display a specific memory file
/crux-recall --total                             - Visualize the entire memory system as an interactive canvas

Parameters

Parameter Description
--total Generate an interactive canvas visualization of the entire memory system using only cursor/canvas SDK primitives. The canvas includes: summary stats, type/search filters, an SVG force-directed graph (2D, pre-computed at module scope via Verlet simulation), a detail panel for selected memories, type/strength distribution charts (PieChart/BarChart), and a filterable memory table. Nodes represent memories (sized by strength, colored by type, labeled by title). Edges connect memories sharing tags or source specs. Supports click-to-detail, hover highlighting, type filter toggles, and text search.

Instructions

When this command is invoked, spawn a crux-memory-recall subagent to query and display memories. Recall is read-only — it never modifies memory files on disk.

User input escalation — CRITICAL: This command uses Pattern B (work first, then escalate). The subagent NEVER calls AskQuestion directly — the parent agent handles every post-display prompt (delete, consolidate, promote, skip) and resumes the subagent with the answers. For the full Pattern A / Pattern B contract and the needs_user_input YAML schema, see .cursor/skills/_memory-shared.md#user-input-escalation and AGENTS.md.

Argument Handling

  • No arguments: The subagent loads the memory index (.crux/memory-index.yml) and surfaces memories most likely to be relevant to the current conversation context. For each memory, it shows title, type, strength, reference count, and a brief rationale for why it was surfaced.
  • Quoted text (e.g. "performance optimization"): The subagent searches existing memories by title, description, tags, and body content. Results are ranked by relevance with decompressed body content shown for compressed memories. Pass $ARGUMENTS to the subagent as the search query.
  • Spec name(s) (e.g. 20260403-crux-memories): The subagent finds all memories whose source field matches the given spec slug(s). Results are grouped by type. Pass $ARGUMENTS to the subagent as the spec name(s).
  • File path(s) (e.g. memories/learning/foo.memory.md): The subagent reads the specified memory file(s) directly. Compressed files (.memory.crux.md) are decompressed for display. Full frontmatter and body are shown. Pass $ARGUMENTS to the subagent as the file path(s).
  • --total: The subagent gathers the complete memory corpus — index metadata, all memory files, and their relationships — then generates an interactive canvas visualization of the entire memory system using only cursor/canvas SDK components and inline SVG. The crux-memory-recall agent owns the structural template loaded on this cold path. No table or text output is produced; the canvas is the deliverable.

Read the full file on GitHub · 93 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. 1mo ago Changed · -5 lines scan A → B e48bb2a79f05
  2. 2mo ago First seen · 98 lines · 0 tokens per session scan A e004e50d64d4

Subscribe to this mod's changes

crux-recall is a command published in the GitHub repository zotoio/CRUX-Compress (8 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,481 tokens. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

crux-recall compared with commands from other repositories

crux-recall next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
crux-recallzotoio/CRUX-CompressCommand814d agoMITB0Claude Code, Cursor
context-savewshobson/agentsCommand42kyesterdayMITA12Claude Code
kiro-steering-customgotalab/cc-sddCommand3.8k15d agoMITA0Claude Code
wiki-queryzosmaai/pi-llm-wikiCommand6233d agoMITA18Claude Code
save-session-learningsCloudAI-X/claude-workflow-v2Command1.4k1mo agoMITA28Claude Code
wiki-digestzosmaai/pi-llm-wikiCommand6233d agoMITA20Claude Code
memory-whyFerroxLabs/ijfwCommand2144d agoMITA18Claude Code