EXECUTE NOW
Run all steps sequentially. Do not skip any step.
Step 1: Inventory changes
git status
git diff --stat
List all modified, added, and deleted files.
Step 2: Summarize the session
Answer these questions by reviewing the conversation history and current state:
- What changed? — files modified, runs completed, claims updated
- What did we learn? — key findings, surprises, pattern changes
- What's next? — the most valuable next experiment or task
- What should I remember? — decisions made, preferences expressed, context that would be lost
Step 3: Update memory
Update .letta/memory/threads/research-log.md
Append a session entry:
## {date} — {session focus}
**Ran:** {experiments or tasks completed}
**Found:** {key results}
**Learned:** {insights}
**Next:** {next steps}
**Run pointers:** {run_ids if any}
Update .letta/memory/threads/current.md
Replace the content with:
- Current hypothesis (carried forward or updated)
- What we're testing next
- This session's summary (moved to "Last session summary")
- Next experiment
- Any blockers
Update .letta/memory/runs/latest.md
Add any new run pointers to the table.
Step 4: Commit and push
git add <changed files> # stage code changes
bd sync # sync beads
git commit -m "<summary>" # commit with descriptive message
bd sync # sync any new beads changes
git push # push to remote
Step 5: Confirm
Print:
Session closed.
Summary: {one-line summary}
Memory updated: threads/current.md, threads/research-log.md
Committed: {commit hash}
Pushed: {branch}
Next session: {what to do first}