Skip to main content

Store User Preference

memoclaw store "User prefers dark mode" \
  --importance 0.8 \
  --tags preferences,ui

Store After Correction

memoclaw store "Correction: The database connection uses port 5433, not 5432" \
  --importance 0.95 \
  --tags corrections

Recall Before Responding

memoclaw recall "user's theme preference"

Filter by Namespace

memoclaw recall "database configuration" \
  --namespace project-api \
  --limit 10

Batch Import

memoclaw store-batch \
  '{"content": "Uses PostgreSQL 15", "importance": 0.9}' \
  '{"content": "Deploys to Railway", "importance": 0.8}' \
  '{"content": "Team of 3 developers", "importance": 0.7}'

Extract Facts from Conversation

memoclaw ingest \
  --messages '[{"role":"user","content":"I prefer dark mode and use vim."},{"role":"assistant","content":"Got it!"},{"role":"user","content":"My timezone is PST."}]' \
  --auto-relate

Proactive Memory Suggestions

memoclaw suggested --category stale --limit 5

Error Handling

# CLI exits with non-zero codes on errors
memoclaw delete some-id || echo "Delete failed"