| name | memory |
| description | Read long-term memory files to get historical context, code references, and error fix records. Use when user wants to read memory, get context, check history, avoid repeating errors. |
Memory - Long-term Context
Read the current session's long-term memory files to access historical context preserved across compacts.
Background
Claude Code's /compact compresses conversations to save context. Repeated compaction causes "memory decay" - important early details gradually get lost.
Max's memory system automatically saves accumulated content to files during each compact, ensuring important information is never lost.
Memory Files
| File | Content | Priority |
|---|
errors.md | Error fix records | Highest - Avoid repeating mistakes |
context.md | User messages + technical concepts | Medium - Full background |
files.md | Code file references | Low - Only when needed |
Instructions
Use the memory.py script to read files with automatic truncation (large files are trimmed to last ~15000 chars to save context):
cd /path/to/skills/memory && uv run memory.py errors.md
cd /path/to/skills/memory && uv run memory.py errors.md context.md
cd /path/to/skills/memory && uv run memory.py all
The script automatically: