mem_save
Record observations, user prompts, session summaries, and key learnings to persistent memory. Store decisions, architecture, bugs, and patterns for recall across AI coding sessions.
Instructions
Save memory. This single write tool handles observations, user prompts, session summaries, and passive learning capture.
For durable observations, use kind=observation and structured content: What: [concise description] Why: [reasoning or problem] Where: [files/paths affected] Learned: [gotchas, edge cases]
Use topic_key for evolving topics that should update in-place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Write mode. Defaults to observation | |
| type | No | Observation category for kind=observation | |
| scope | No | Observation scope | |
| title | No | Short searchable title. Required for kind=observation | |
| content | Yes | Memory content, prompt text, session summary, or text containing a Key Learnings section | |
| project | No | Project name | |
| topic_key | No | Stable key for observation upserts | |
| session_id | No | Session ID (default: manual-save-{project}) |