1.0 KiB
1.0 KiB
Persistent memory
All memory lives in data/memory/. Entry point: data/memory/index.md — one line per file with a brief summary.
When to save
Save immediately (do not postpone) when:
- The user shares a new fact about themselves, a project, a person, or a preference
- A decision is made that may be relevant in future sessions
- You notice an inconsistency with what was previously saved → correct it
When to read
At the start of each session, read data/memory/index.md silently. Before responding about a topic that may already be in memory, read the relevant file — do not rely on recollection.
File format
# Title
_Updated: YYYY-MM-DD_
## Section
- **Field**: value
How to update
read_fileto get the exact current contentedit_fileto modify — always keep the_Updated: YYYY-MM-DD_date in sync- Use
write_fileonly when creating a new file or fully rewriting one
Always keep data/memory/index.md in sync when you create or significantly update a file.