Why memory belongs in files
Model context is rented: clear the session or compress it, and the rules you explained are gone. Files are yours: diffable, versionable, readable by any tool, and readable by the next agent too.
So the three files below are all Markdown, kept in the Records note area (per piece, edited over time) rather than scattered in some project root — cross-project rules and keys never belonged to a single project.
Three files, three jobs
| File | What it governs | When to read it |
|---|---|---|
MEMORY.md | Collaboration rules: how you want AI to work, how it coordinates daily, what must ask you first | At the start of every session |
YYYY-MM-DD.md | Daily work log: what was done, where it stalled, which files changed | When tracing a problem back to when it was introduced |
ENGINEERING.md | Overall direction and architecture decisions: keep multi-round development on course | On handover or starting a new module |
- MEMORY.md holds rules, not progress: analyze-before-edit, ask on decisions, stability first — long-lived collaboration requirements.
- The log is one file per day, facts and change locations only, no prose; later it pinpoints “which day introduced this”.
- The engineering file holds direction and trade-offs, not a running account; it stops AI drifting across many rounds.
Keep them in Records
The Records Markdown editor natively fits all three: write them there, or import existing md from outside. Diaries are per day, notes per piece — the memory trio belongs in notes, because they are edited repeatedly over time.
A starter template you can copy
# MEMORY.md — collaboration rules
1. Analyze before editing: explain the plan, wait for my go-ahead.
2. Ask me on decisions; do not decide alone.
3. Stability first: slow is fine, wrong is not.
4. Read existing code before fixing; never edit from memory.
# 2026-01-01.md — log
## Done
- change: file path + reason
## Stalled / next
- …
# ENGINEERING.md — direction
## Goals and boundaries
- what this project wants, and refuses
## Architecture decisions
- decision + reason + rejected optionHanding over to a new agent
- Read the three first
Have the new agent read MEMORY.md, recent logs and the engineering file before discussing requirements.
- Then act
Have it restate the rules and direction it understood; confirm no drift before starting.
- Log at wrap-up
Land the day’s changes in the log; update MEMORY.md when rules change, the engineering file when direction changes.