MEMORY.md file in your project root. The agent reads it at session start and can update it, so hard-won context survives across sessions.session starts ──▶ agent reads MEMORY.md ──▶ works with that context │ learns something worth keeping ▼ agent updates MEMORY.md ──▶ next session benefits
/new-worktree moves the session into a worktree).MEMORY.md to the repo so memory is shared across machines and teammates.