memory-compact

Compacts aging memory files while preserving linked wiki decisions and retained notes.

Updated Jun 23, 2026
One-click install
npx skills add https://github.com/Walliiee/agent-harness --skill memory-compact-walliiee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-compact
Source: https://github.com/Walliiee/agent-harness/tree/main/skills/memory-compact
Command: npx skills add https://github.com/Walliiee/agent-harness --skill memory-compact-walliiee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents daily memory files from growing into noisy archives by trimming entries that have already been promoted to durable wiki content, while preserving important retained notes.

Core Features & Use Cases

  • Compacts aging daily memories: Rewrites memory files older than the active window into a thin record.
  • Preserves durable context: Keeps wiki-linked decisions and explicitly marked keep items, while dropping ephemeral sections like What Happened and Carry Forward.
  • Protects recoverability: Backs up the original file into cold storage before rewriting, making the process idempotent and reversible.
  • Use Case: After a week of daily logs, run this Skill to reduce clutter and keep your workspace memory searchable and maintainable.

Quick Start

Ask the assistant to compact workspace memory files older than seven days while preserving wiki pointers and keep-marked items.

Frequently Asked Questions about memory-compact

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

FAQPage Schema
How do I compress old daily memory files while preserving wiki-linked decisions?

Workspace memory compaction shrinks old daily memory files into thin records while preserving wiki-linked decisions and explicitly retained notes. It drops ephemeral sections like What Happened and Carry Forward to reduce clutter and keep memory searchable.

How do I safely back up memory files before running a compaction cleanup?

Before rewriting memory files, the compaction process backs up the original file into cold storage. This makes the memory maintenance operation idempotent and reversible, ensuring safe recoverability for your workspace.

When should I run memory compaction on my workspace daily logs?

You should run memory compaction when daily memory files exceed your active retention window, such as after a week of daily logs. This scheduled cleanup applies section filtering to reduce clutter and maintain searchable workspace memory.

Does memory compaction support backfilling and retro-promotion for legacy files?

Yes, memory compaction applies to backfill compaction and safe handling of legacy files that still need retro-promotion. It requires idempotent rewriting to ensure legacy files are processed safely without losing important retained notes.

What is the best way to retain important notes during memory file compaction?

The best way to retain important notes during memory file compaction is to explicitly mark keep items and wiki-linked decisions. The process preserves these durable entries while dropping ephemeral sections like What Happened and Carry Forward.

Are there limitations when compacting memory files with cold storage backups?

A limitation of compacting memory files is that ephemeral sections are dropped during rewriting into thin records. However, cold storage backups of the original file ensure the process remains idempotent and reversible for safe recoverability.