Day 1 - Block 6
The session (“chat”) is the agent’s context (i.e. short-term memory).
We can also edit this history (e.g. in LangChain)!
But: Context window is finite and session-bound!
Memory system that
-> injects relevant info into context
# AGENTS.md (memory policy)
## Memory policy
- Load `MEMORY.md` at session start.
- Append durable facts to `memory/YYYY-MM-DD.md`.
- If user says "remember this", write it down immediately.
- Promote stable preferences/decisions into `MEMORY.md`.
## Editing rules
- Keep entries short, factual, and timestamped.
- Remove stale items when contradicted by newer evidence.We can post-process MEMORY.md:
Retrieval-Augmented Generation (RAG) (… and fancy systems on top of it)
TI Workshop | D1 B6