How to give Claude stable memory of your preferences and context
Wann einsetzen: Every new chat starts from scratch and you want continuity.
Voraussetzungen
- uvx installed — brew install uv
Ablauf
-
Seed preferencesmemory_store: 'I work on iOS + Swift projects. Prefer MVVM with @Observable. Always comment in English.' with tags [preference, coding].✓ Kopiert→ Stored confirmation
-
In a future session, retrievememory_search: 'my coding style preferences'.✓ Kopiert→ Preferences returned, agent applies them
-
Decay cleanupShow me memories older than 90 days with no recent hits — offer to prune.✓ Kopiert→ Stale list for review
Ergebnis: Claude behaves like it remembers you.
Fallstricke
- Storing sensitive PII that becomes retrievable forever — Don't — treat memory like a public notebook. Use tags to compartmentalize.