Write memory
memory_writePersist durable project facts—decisions, incident root causes, preferences, references, and snippets—across sessions. Rejects near-duplicates to keep stored memory accurate.
Instructions
Persist one durable fact. Use for: non-trivial fixes and their root cause (kind=incident), architectural choices and why (decision), stable project facts (fact), how the user wants to be worked with (preference), external URLs/dashboards/tickets (reference), reusable code patterns (snippet). Do NOT store what the repo or git history already records. Near-duplicates are rejected with the existing id — update or supersede that instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The fact itself. For incident/decision include the why and how to apply it. Use absolute dates, never 'yesterday'. | |
| kind | Yes | ||
| tags | No | ||
| force | No | Write even if a near-duplicate exists. | |
| title | Yes | One line, specific enough to recognise later. | |
| source | No | File path, URL, or session reference. | |
| project | Yes | Project slug, e.g. 'my-app', 'api', 'website', 'tools', or 'global' for cross-project knowledge. | |
| importance | No | Default 3. |