defragmenting-memory
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_filesystemblock in your system prompt. If it shows a tree structure starting with/memory/including asystem/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.