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