Add Memory
add_memoryStore important project preferences, decisions, or facts as persistent memories that are automatically retrieved via semantic search in future sessions.
Instructions
Store a memory for future sessions. Memories are persisted as markdown files and automatically retrieved via semantic search when relevant.
Categories:
preferences: Coding style, tool preferences, personal workflow choicesdecisions: Architecture decisions, technology choices, design rationalefacts: Project facts, environment info, codebase structure
Examples:
Add preference: "Prefers TypeScript strict mode"
Add decision: "Chose JWT for authentication because..."
Add fact: "API runs on port 3000"
Optional metadata fields improve ranking and traceability across sessions:
subtype: finer-grained label such asreview_findingorfailed_attemptpriority:critical,helpful, orarchivetags,source,linked_files,linked_plans,evidence,owner, timestamps
Memories are stored in .memories/ directory and indexed for semantic retrieval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags to support filtering and ranking | |
| owner | No | Optional owner for memory maintenance | |
| title | No | Optional title for the memory (useful for decisions) | |
| source | No | Optional source path or identifier | |
| content | Yes | The memory content to store (max 5000 characters) | |
| subtype | No | Optional subtype label (for example: review_finding, failed_attempt, incident) | |
| category | Yes | Category of memory: preferences (coding style), decisions (architecture), or facts (project info) | |
| evidence | No | Optional evidence reference (commands, receipts, or docs) | |
| priority | No | Optional priority used for memory ranking | |
| created_at | No | Optional ISO timestamp for when this memory was first created | |
| updated_at | No | Optional ISO timestamp for the most recent update | |
| linked_files | No | Optional file paths related to this memory | |
| linked_plans | No | Optional plan identifiers related to this memory |