--- name: mem0-remember description: > Quick-add a memory from the user's input. No extraction pass — stores verbatim. TRIGGER: user runs /mem0:remember , or says "remember this", "save this", "store this fact", "don't forget that". --- # Mem0 Remember Store a fact or learning directly into mem0. ## Execution ### Step 1: Extract the content The user provides the content as an argument: `/mem0:remember ` If no text was provided, ask: "What should I remember?" ### Step 2: Classify the memory Based on the content, pick the best `metadata.type`: | Content signal | Type | |---|---| | "we decided...", "always use...", "never..." | `decision` | | "X doesn't work because...", "don't try..." | `anti_pattern` | | "I prefer...", "use X instead of Y" | `user_preference` | | "the convention is...", "we always..." | `convention` | | "learned that...", "figured out..." | `task_learning` | | setup, env, tooling, config | `environmental` | | anything else | `task_learning` | ### Step 3: Store Call `add_memory` with: - `messages=[{"role": "user", "content": ""}]` - `user_id=` - `app_id=` - `metadata={"type": "", "branch": "", "confidence": 1.0, "source": "remember_command"}` - `infer=False` `infer=False` because the user stated the fact explicitly — no extraction needed. `confidence=1.0` because the user explicitly asked to store this. ### Step 4: Confirm Print: ``` Remembered as : "..." Memory ID: ```