Expert guidance for Claude's memory_user_edits tool. Helps users understand how to effectively use memory edits for persistent facts across conversations...
Memory edits work for FACTS, not BEHAVIORS.
| ✅ Works (Facts) | ❌ Doesn't Work (Behaviors) |
|---|---|
| "Backend stores 7KB per user" | "Always check docs first" |
| "Architecture: two-layer model" | "Prioritize architecture over details" |
| "User prefers TypeScript" | "Never suggest JavaScript" |
| Command | Purpose | Parameters |
|---|---|---|
view |
See current edits | None |
add |
Create new edit | control (max 200 chars) |
remove |
Delete by line number | line_number |
replace |
Update existing | line_number, replacement |
Constraints:
Use for:
Don't use for:
✅ Good (atomic, factual):
"Backend: PostgreSQL 15 with Knex.js" (36 chars)
"User timezone: CET (UTC+1)" (26 chars)
"Project deadline: January 2026" (30 chars)
❌ Bad (vague, behavioral):
"Uses good database practices" (vague)
"Always check architecture first" (behavioral)
"Remember to prioritize user needs" (instruction)
When approaching 30 edits, prioritize:
| Priority | Type | Action |
|---|---|---|
| P0 | Facts Claude gets wrong repeatedly | Keep always |
| P1 | Important preferences, key definitions | Keep if space |
| P2 | Nice-to-haves, well-documented info | Remove first |
When user asks about memory:
When user says "remember X":
"Claude ignores my memory edits"
"Memory edits work inconsistently"
"Hit 30-edit limit"
Add a fact:
add control="[concise fact under 200 chars]"
View all edits:
view
Remove an edit:
remove line_number=[N]
Update an edit:
replace line_number=[N] replacement="[new text]"
Memory edits work best as part of a complete system:
| Layer | Purpose |
|---|---|
| Project Instructions | HOW Claude should work (behaviors) |
| Documentation | Detailed project knowledge |
| Memory Edits | Critical facts always in focus |
| Active Steering | Real-time corrections |
Key: Memory edits amplify Project Instructions—they don't replace them.
Memory User Edits Guide by Francesco Marinoni Moretto — CC BY 4.0