compact-off

A project cleanup command that removes Recall's automatic context-recovery setup. Recall is a tool for saving and restoring Claude Code conversation context.

In plain words
What is it for?
Use it to remove Recall hooks, its context-file reference, the generated context file, and its ignore-rule entry from a project.
Why use it?
It lets you turn off automatic recovery without removing unrelated project hooks or instructions. Existing project configuration outside Recall is preserved.

Command

Part of the recall plugin — 3 commands shipped together

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.

agentmods
npx agentmods add commands/flinedev/recall/compact-off
Clone the repo
git clone --depth 1 https://github.com/FlineDev/Recall

Or install recall, the plugin that ships this one along with the rest of its 3 commands.

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 338 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00338
Opus 5 $0.00000 $0.00169
Sonnet 5 $0.00000 $0.00068
Haiku 4.5 $0.00000 $0.00034

Measured 3d ago against content hash f0452c538fb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

compact-off 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 3d 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.

commands/compact-off.md · 43 lines

What it actually says

Disable Compaction Integration

You are removing Recall's compaction integration from the current project. Follow these steps exactly:

Step 1: Remove hooks from project settings

Read .claude/settings.json. Remove all Recall-related hook entries:

  • In PreCompact: remove any entry where the command path contains recall
  • In SessionStart: remove any entries where the command path contains recall
  • If PreCompact or SessionStart arrays become empty after removal, remove the entire key
  • If the hooks object becomes empty, remove it entirely

Important: Preserve all other keys and non-Recall hooks.

Step 2: Remove @-reference from CLAUDE.md

Read CLAUDE.md. Remove the line @.claude/recall-context.md if present. Do not remove any other lines.

Step 3: Delete the recall context file

rm -f "$(pwd)/.claude/recall-context.md"

Step 4: Remove from .gitignore

Read .gitignore. Remove the line .claude/recall-context.md if present. Do not remove any other lines. If .gitignore becomes empty, delete it.

Step 5: Confirm

Tell the user:

Compaction integration disabled. Recall hooks have been removed from this project. You can still use /recall:session <session-id> manually in any session. To re-enable, run /recall:compact-on.

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. 3d ago First seen · 43 lines · 0 tokens per session scan A f0452c538fb3

Subscribe to this mod's changes

compact-off is a command published in the GitHub repository FlineDev/Recall (10 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 338 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.