memory_write
Store durable facts, decisions, insights, and skills with keys, validity windows, and project scopes so agents reuse context and avoid stale or conflicting entries.
Instructions
Write a memory. type: episode|fact|insight|skill|decision; source: writing agent id; ns: '_shared' or 'agent-'. key: stable id for fact/insight/decision (enables conflict review). Write only stable facts (preferences, conventions, environment constraints, pitfalls), not session-temporary details; volatile status notes (in-progress work, remaining todos) either carry valid_until or stay out — a stale status memory is worse than none; prefer reusing an existing key over a new entry. valid_from/valid_until: optional ISO dates (YYYY-MM-DD) marking the fact's validity window — once valid_until has passed, the memory is excluded from search results but still readable via memory_get. project: optional lowercase-slug scope tag (lowercase alphanumeric segments joined by dashes) for workspace-specific memories — tagged memories are hidden from searches that do not pass the same project, while untagged (global) memories stay visible everywhere; declare your workspace project per the host usage rules and pass it on every write/search in that workspace. Returns the stored memory; conflict: true means a different version with the same key exists and a review entry was queued.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ns | No | _shared | |
| key | No | ||
| type | Yes | ||
| links | No | ||
| source | Yes | ||
| content | Yes | ||
| project | No | ||
| valid_from | No | ||
| valid_until | No |