memory_search
Search shared memory by semantic similarity to recall past experiences, decisions, and solutions. Filters by project or global scope to reduce noise and find relevant context.
Instructions
Semantic search over the shared vector memory store (paraphrase-multilingual-MiniLM-L12-v2, 384-dim embeddings + sqlite-vec KNN). Returns top-k memories by cosine similarity. By default filters by scope (current project + guessed platform + global) to avoid cross-project noise — pass scope='global' to search only global knowledge, or pass an explicit category for exact-match filtering. Optional min_length filters out short structural segments (e.g. 40). Lazy-loads the ONNX model + sqlite-vec on first call. Complements keyword search (project_search) for 'have I seen something like this before' recall across agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Caller working directory, used to infer current project name when scope is omitted. | |
| query | Yes | ||
| scope | No | Search scope: 'global' for global-only, 'project:<name>' to search that project + its platform + global. Omit and pass cwd to auto-infer project from working directory. | |
| top_k | No | ||
| category | No | ||
| min_length | No | Optional: filter out memories shorter than this many chars (default 0 = no filter). Use e.g. 40 to drop short structural segments. |