memory_save
Persist a verified insight, decision, or preference to an exact project for later recall. Requires project and content; supports source observation links and optional agent scoping.
Instructions
Persist a verified insight, decision or preference in an exact project; '*' is rejected for writes. Optional sourceObservationIds must resolve to official observations in that project. Similar content may supersede an existing memory, so repeated calls can create new versions. Returns the saved memory and, when present, an advisory similarTo match. Use memory_lesson_save for reusable lessons with confidence and reinforcement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Memory type: pattern, preference, architecture, bug, workflow, or fact | |
| files | No | Comma-separated relevant file paths | |
| agentId | No | Agent identity to scope this memory to. When set, agent-scoped recall and search only surface it for the same agentId. Omit for shared memory. | |
| content | Yes | The insight or decision to remember | |
| project | Yes | Stable canonical project identifier this memory belongs to (e.g. a slug, UUID, or registry key). Must match the value used when the session was started. Do not use filesystem paths or ad-hoc display names — those change across machines and will silently break project scoping. | |
| concepts | No | Comma-separated key concepts | |
| sourceObservationIds | No | Official observation IDs in the exact project supporting this memory |