How to give Claude stable memory of your preferences and context
Когда использовать: Every new chat starts from scratch and you want continuity.
Предварительные требования
- uvx installed — brew install uv
Поток
-
Seed preferencesmemory_store: 'I work on iOS + Swift projects. Prefer MVVM with @Observable. Always comment in English.' with tags [preference, coding].✓ Скопировано→ Stored confirmation
-
In a future session, retrievememory_search: 'my coding style preferences'.✓ Скопировано→ Preferences returned, agent applies them
-
Decay cleanupShow me memories older than 90 days with no recent hits — offer to prune.✓ Скопировано→ Stale list for review
Итог: Claude behaves like it remembers you.
Подводные камни
- Storing sensitive PII that becomes retrievable forever — Don't — treat memory like a public notebook. Use tags to compartmentalize.