Add or update a key-value pair in the memory persistence system. Performs upsert - updates existing keys or adds new ones. Requires memory.md to exist.
Add or update entries in the memory persistence system (upsert behavior).
Attempt to read memory.md from the current working directory using the Read tool
If memory.md does not exist:
create-memory skill first to set up the memory system."If memory.md exists:
Upsert logic:
- **key**:)<!-- Memory entries below this line --> comment if no entries existConfirm the operation to the user:
Each memory entry follows this format:
- **key**: value
Adding a new entry:
User: "Remember that my favorite color is blue"
Action: Add `- **favorite_color**: blue`
Updating an existing entry:
User: "Actually, change my favorite color to green"
Action: Replace `- **favorite_color**: blue` with `- **favorite_color**: green`