Write today's daily summary to memory/YYYY-MM-DD.md (use today's date). Read recent conversation history and session logs to determine what happened today. Include: 1. **Conversations** — key topics discussed with the user today 2. **Actions Taken** — tasks completed, files changed, emails sent, calendar events created 3. **Decisions** — important choices made and their reasoning 4. **Pending** — open items or follow-ups for tomorrow 5. **Lessons** — anything learned that future sessions should know If nothing happened today (no conversations, no heartbeat activity), write nothing and exit silently. After writing the daily summary, review the last 7 days of memory/ files and update MEMORY.md if any patterns, recurring topics, or important long-term context should be captured. Remove outdated info from MEMORY.md that's no longer relevant.