Skip to main content
Store user preferences persistently so your AI assistant remembers them across sessions.

Use Case

An AI assistant that helps users with coding tasks. It should remember:
  • Preferred programming languages
  • Editor settings
  • Notification preferences
  • Timezone

Implementation

Store Preferences

memoclaw store "Prefers TypeScript over JavaScript" \
  --importance 0.9 --type preference --namespace user-prefs

memoclaw store "Uses VS Code with Vim extension" \
  --importance 0.8 --type preference --namespace user-prefs

memoclaw store "Prefers dark mode" \
  --importance 0.85 --type preference --namespace user-prefs

memoclaw store "Timezone is PST" \
  --importance 0.95 --type preference --namespace user-prefs

Recall on Session Start

memoclaw recall "user preferences for coding assistant" \
  --namespace user-prefs --limit 10

Update When Changed

memoclaw update <memory-id> \
  --content "Now prefers React over Vue" \
  --importance 0.9

Memory Types

Use memory_type: "preference" for user preferences. This gives them a 180-day half-life, meaning they persist for a long time but eventually decay if not reinforced.

Next Steps