Skip to main content
Load memories relevant to the current session when an agent starts.

Use Case

An AI coding assistant that loads context about:
  • Current project being worked on
  • Recent files being edited
  • Current task goals

Implementation

Store Session Summary

memoclaw store "Session 2026-02-13: Working on memoclaw-api, added rate limiting. Files: src/routes/store.ts, tests/api.test.ts" \
  --importance 0.7 \
  --type observation \
  --session session-123 \
  --tags session,project-memoclaw-api

Load Context at Session Start

memoclaw recall "recent work on memoclaw-api project" \
  --limit 5 \
  --tags project-memoclaw-api

Track Session History

# List all session memories
memoclaw list --tags session --limit 20

# Recall from a specific session
memoclaw recall "" --session session-123

Best Practices

  1. Use session IDs to scope memories to specific conversations
  2. Store summaries at session end for faster retrieval later
  3. Set importance based on relevance to future sessions
  4. Use namespaces to separate different projects or clients
  • Store — Store session memories
  • Recall — Search memories
  • List — List by filters