memory_search
Search persistent project and personal memory by keyword to recall past decisions, conventions, or preferences before asking the user again.
Instructions
Search persistent memory by keyword (BM25 full-text). Returns matching memories from the current project and/or personal scope. Call before asking the user about past decisions, conventions, or preferences they may have told you before. Search well: break the question into its concepts and try 2–3 phrasings per concept — synonyms, the user's other language, shorter keyword forms — and check the other scope too, before concluding nothing is stored. Results are ranked by BM25 within review tiers — reviewed (approved/published) project memories come first. limit caps how many come back (default 8) and type restricts to one memory type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Restrict to memories of this type (e.g. decision, preference, gotcha). | |
| limit | No | Max results to return (default 8). | |
| query | Yes | Free-text query. File paths, error strings, identifiers work well. | |
| scope | No | Which scope(s) to search. Default: both. |