End the current session with a structured summary and memory update. ## Steps 1. Review all changes made during this session: - Run `git diff --stat` for uncommitted changes. - Run `git log --oneline --since="4 hours ago"` for recent commits. - Scan for TODO/FIXME comments added during the session. 2. Compile a session summary: - What was the original goal or task? - What was actually accomplished? - What is remaining or deferred? 3. Extract learnings to save: - New patterns or conventions established. - Gotchas or bugs discovered and how they were resolved. - Useful commands or techniques discovered. - Performance insights or optimization findings. 4. Update project CLAUDE.md with relevant learnings. 5. Commit any outstanding changes if appropriate. 6. Create a brief handoff note for the next session. 7. List any blocking issues that need external resolution. ## Format ``` ## Session Wrap-Up () ### Goal ### Accomplished - ### Deferred - ### Learnings - ### Blockers - ### Next Session Start with: ``` ## Rules - Always commit or stash changes before wrapping up; do not leave a dirty tree. - Keep the summary actionable, not narrative. - Save learnings to CLAUDE.md so they persist across sessions. - Flag any time-sensitive items (expiring tokens, pending reviews). - Do not wrap up with failing tests unless the failure is documented.