memory-compact

Compress AI memory by classifying entries and generating summary files.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/bketelsen/truenas-mcp --skill memory-compact
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-compact
Source: https://github.com/bketelsen/truenas-mcp/tree/main/.gaai/core/skills/cross/memory-compact
Command: npx skills add https://github.com/bketelsen/truenas-mcp --skill memory-compact

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses high context window pressure and overgrown memory by performing a targeted, single-pass compression of AI memory.

Core Features & Use Cases

  • Emergency Compression: Ideal for mid-task scenarios when token limits are being approached.
  • Selective Archiving: Differentiates between durable and ephemeral memory, archiving only the latter or explicitly superseded durable entries.
  • Summary Generation: Creates concise summary files for compacted categories, preserving key decisions and constraints.
  • Use Case: When an AI assistant is working on a complex, long-running task and its memory usage is nearing its limit, this skill can be activated to quickly reduce the memory footprint without losing critical information.

Quick Start

Run the memory-compact skill to compress the AI's memory.

Frequently Asked Questions about memory-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress AI agent memory to reduce context window pressure?

To compress AI agent memory, you can run a single-pass compression process that classifies memory entries by durability, generates summary files for compacted categories, and archives original ephemeral or superseded durable entries to reduce context window pressure.

When do I need to archive ephemeral memory versus durable memory entries?

You need to archive ephemeral memory during standard compression, while durable memory entries are only archived if explicitly superseded. A classification gate ensures durable memory is protected and only superseded entries are removed.

What is the best way to summarize AI memory during a complex task?

The best way to summarize AI memory during a complex task is to use a single-pass compression that generates concise summary files for compacted categories, preserving key decisions and constraints without losing critical information.

Can I trigger emergency memory compression when token limits are being approached?

Yes, you can trigger emergency memory compression mid-task when token limits are being approached. This single-pass compression quickly reduces the AI memory footprint by archiving ephemeral entries and generating category summaries.

How does the memory index update after compacting AI agent memory?

After compacting AI agent memory, the memory index is updated automatically upon completion of the compression process. This ensures the index reflects the newly generated summary files and the archived original entries.

Does memory compression work without losing critical AI context constraints?

Yes, memory compression works without losing critical constraints by generating concise summary files for compacted categories. This preserves key decisions and constraints while archiving original ephemeral or explicitly superseded durable entries.