Remember
Quick-save a memory with automatic dedup and size reporting.
Procedure
- Decide scope — if content is clearly project-specific, set
projectto git remote origin repo name (e.g.,memcannotmemcan-2); otherwise omit (global). - Check for duplicates —
search(query=<content summary>, project=<if scoped>). If a similar memory exists, useupdate_memoryinstead of creating a new one. - Count before —
count_memories(project=<if scoped>), note the count. - Save —
add_memory(memory=<text>, project=<if scoped>, metadata={"type": "<lesson|decision|preference>", ...}). Orupdate_memoryif updating. - Count after —
count_memories(...)again, note the new count. - Report — tell the user: what was saved/updated, scope (global or project name), memory count before and after (e.g., "5 -> 6").
