compact-memory
OfficialKeep memory lean and queryable.
Software Engineering#knowledge graph#MCP#deduplication#context optimization#memory hygiene#file maintenance#project facts
AuthorRoentek
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents Claude Code sessions from getting slower and noisier by cleaning up stale and redundant memory artifacts while preserving important facts for future use.
Core Features & Use Cases
- Archive old memory sessions: Compresses
.claude/rules/memory-sessions.mdby keeping the 4 most recent entries and moving entries older than 30 days into a clearly labeled## Archiveblock. - Prune dead memory decisions: Audits
.claude/rules/memory-decisions.mdto remove entries tied to tools, files, or patterns that no longer exist in the project. - Sync durable facts to the memory graph: Extracts 3–5 high-signal project facts and writes them as entities to the
memoryMCP graph viamcp__memory__create_entitiesso future sessions can query them without loading the full files.
Quick Start
Run /compact-memory to perform a full memory hygiene cycle, report what changed, and sync key facts to the memory MCP graph.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: compact-memory Download link: https://github.com/Roentek/Claude_Code_Boilerplate_Framework/archive/main.zip#compact-memory Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.