remember
Store key development artifacts (decisions, bug fixes, patterns) with automatic embedding and deduplication to prevent duplicates.
Instructions
Store a new memory with automatic embedding and deduplication.
Primary write path — call after a significant decision, tricky bug fix, or new pattern discovery. Auto-generates embeddings via Ollama (1024d) or local all-MiniLM-L6-v2 (384d fallback). Detects project scope from CWD. Deduplicates at cosine similarity > 0.82 — boosts existing memory instead of creating duplicates.
Read-only: no. Creates or updates a row in LanceDB. Triggers background consolidation if interval has elapsed (non-blocking, fire-and-forget).
Args: content: Full memory content in Markdown. Required. First 200 chars auto-summarized if summary is omitted. summary: One-line summary shown in recall results. Default: auto-generated. type: 'episodic' (session captures, decay 0.15/day), 'semantic' (extracted knowledge, decay 0.03/day), or 'permanent' (decisions/ conventions, never decays). Default: 'episodic'. scope: Isolation prefix. Auto-detected from project config or CWD path hash. Use 'global' for cross-project memories. weight: Initial importance 0.0–1.0 (default 0.5). Decays exponentially per type's decay_rate. Frequently-accessed memories get counteracting boost. tags: Optional labels for filtering, e.g. ['testing', 'api', 'pitfall']. embedding: Pre-computed vector. Auto-generated from first 2000 chars of content if omitted. Padding/truncation handled automatically. diff_text: Optional unified diff for code-change memories. diff_files: Optional list of changed file paths. error_trace: Optional stack trace for error/bug memories.
Returns: dict: {'id': <memory_id>, 'summary': , 'action': 'created'} On dedup match: action='boosted' with existing ID and similarity score.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Full memory content in Markdown. Required. First 200 chars auto-summarized if summary omitted. | |
| summary | No | One-line summary for recall display. Auto-generated from first 200 chars of content if omitted. | |
| type | No | Memory type: 'episodic' (session captures, decay 0.15/day), 'semantic' (extracted knowledge, decay 0.03/day), or 'permanent' (conventions/decisions, never decays). | episodic |
| scope | No | Scope prefix for isolation. Auto-detected from project config or CWD. Use 'global' for cross-project memories. | |
| weight | No | Initial importance 0.0–1.0. Decays exponentially per type. Frequently accessed memories get counteracting boost. | |
| tags | No | Optional labels for filtering, e.g. ['testing', 'api', 'pitfall']. Auto-detected from content if omitted. | |
| embedding | No | Pre-computed embedding vector. Auto-generated from first 2000 chars of content via Ollama or local model if omitted. | |
| diff_text | No | Optional unified diff text for code-change memories. | |
| diff_files | No | Optional list of changed file paths for code-change memories. | |
| error_trace | No | Optional stack trace for error/bug memories. |