
memory-optimize
Optimizes Claude Code memory files in 4 interactive steps: removes duplicates
by kochetkov-maFree
Description
A Claude Code skill that cleans up Claude Code's auto-memory files. Auto-memory keeps context across sessions in MEMORY.md files under ~/.claude/projects. The optimizer works in four interactive steps: it removes duplicate entries, moves rules into the proper CLAUDE.md or rules files, compresses what remains, and validates the result. The publisher says a typical run reduces the token count of memory files by 30 to 50 percent, which means faster context loading and lower API cost. Start it with the /memory-optimize command and no arguments. Auto-memory itself is switched with the CLAUDE_CODE_DISABLE_AUTO_MEMORY setting, and the skill is part of the claude-brewcode project by kochetkov-ma.…
Highlights
- Removes duplicate memory entries
- Moves rules into CLAUDE.md or rules files
- Compresses the remaining memory entries
- Validates the result at the end of the four steps
- Starts with the /memory-optimize command
Ratings & Reviews
No ratings yet
Be the first to rate memory-optimize.
People also visit
memory-optimize FAQ
What does it optimize?
Claude Code auto-memory files, which hold context across sessions in MEMORY.md under ~/.claude/projects.
How much does it save?
The publisher says a typical reduction is 30 to 50 percent in the token count of memory files.
How do I start it?
Run /memory-optimize with no arguments. It starts a four-step interactive workflow.
How do I turn auto-memory on or off?
The page says to set CLAUDE_CODE_DISABLE_AUTO_MEMORY to 0 to enable it or 1 to disable it.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Warn. Snyk: Pass.
What are the best memory-optimize alternatives?
Popular alternatives to memory-optimize include claude-memory-curator, memory-md-management and memory-merger. See all memory-optimize alternatives




















