Overview
Thememory save command stores a memory in your vault. Memories can capture decisions, patterns, bugs, context, or learnings with structured metadata.
Syntax
Required Options
Title of the memory. Keep it concise and descriptive.
What happened or was learned. The core content of the memory.
Optional Options
Why it matters. Explanation of the reasoning or importance.
Impact or consequences. What changed as a result.
Comma-separated tags for categorization (e.g.,
auth,security,api).Category of the memory. One of:
decision, pattern, bug, context, learning.Comma-separated file paths related to this memory.
Extended details or context. Use for longer explanations.
Path to a file containing extended details. Cannot be used with
--details.Populate
--details with a structured template for decisions.Source of the memory (e.g., agent name like
cursor, claude, codex).Project name. Defaults to the current directory name.
Examples
Save a simple memory
Save with full metadata
Save with extended details from file
Save with decision template
--details field with:
Save from an agent
Output
On success, the command displays:- The memory title
- The generated memory ID (12-character prefix)
- The file path where the memory was saved
- Any warnings (e.g., if embeddings couldn’t be generated)
Details Template Structure
When using--details-template, you get a structured format ideal for documenting decisions:
- Context: Background and why this decision was needed
- Options considered: List alternative approaches
- Decision: What was decided
- Tradeoffs: Pros/cons of the chosen approach
- Follow-up: Future actions or considerations
Related Commands
memory search- Find saved memoriesmemory details- View full details of a memorymemory delete- Remove a memory
Never include API keys, secrets, or credentials in any memory field. Use
<redacted> placeholders if you need to reference them.