defragmenting-memory

Installation
SKILL.md

Memory Defragmentation Skill

Requires Memory Filesystem (memfs)

This skill works by directly editing memory files on disk. It requires the memory filesystem feature to be enabled.

To check: Look for a memory_filesystem block in your system prompt. If it shows a tree structure starting with /memory/ including a system/ directory, memfs is enabled.

To enable: Ask the user to run /memfs enable, then reload the CLI.

This skill helps you maintain clean, well-organized memory blocks by spawning a subagent to decompose and reorganize memory files in-place.

The focus is on decomposition—splitting large, multi-purpose blocks into focused, single-purpose components—rather than consolidation.

Memory files live at ~/.letta/agents/$LETTA_AGENT_ID/memory/ and are synced to API blocks automatically by memfs sync on CLI startup.

When to Use

  • Memory blocks have redundant information
Related skills
Installs
26
GitHub Stars
2.5K
First Seen
Jan 27, 2026