Session Wrap Up
End-of-session protocol to preserve context and ensure continuity between sessions.
When Triggered
Run this protocol when the user indicates they want to wrap up the current session before starting a new one.
Protocol Steps
Execute these steps in order:
1. Flush to Daily Log
Write to memory/YYYY-MM-DD.md (create if doesn't exist):
- - Key topics discussed in this session
- Decisions made
- Commands, configs, or code that worked
- Problems solved and how they were solved
- Any gotchas or lessons learned
2. Update Long-Term Memory
If significant learnings occurred, update MEMORY.md:
- - New user preferences discovered
- Important lessons learned
- Long-term decisions made
- Workflow changes
3. Update PARA Notes
Check and update the PARA structure in notes/ (or memory/notes/):
- - Open loops (
notes/areas/open-loops.md): Add new unfinished items, mark completed items with ✅ - Projects (
notes/projects/): Update progress on active projects - Areas (
notes/areas/): Add new ongoing responsibilities - Resources (
notes/resources/): Add new reference material, how-tos
4. Commit Changes
CODEBLOCK0
Notes:
- - The wrap-up
git push is automatic (no confirmation prompt). - If
git push fails, report the error and leave the commit locally.
5. Report Summary
Provide a brief summary to the user:
- - What was captured
- Files updated
- Any items that need follow-up next session
- Confirmation that changes were committed (and pushed, if successful)
Example Output
CODEBLOCK1
Notes
- - Always create the daily log file if it doesn't exist
- Use the current date for filenames and commit messages
- Keep summaries concise but complete
- Include the ⚡ emoji at the end (GigaBot signature)
会话总结
结束会话协议,用于保留上下文并确保会话之间的连续性。
触发时机
当用户表示要在开始新会话前结束当前会话时,执行此协议。
协议步骤
按顺序执行以下步骤:
1. 写入每日日志
写入 memory/YYYY-MM-DD.md(若不存在则创建):
- - 本次会话讨论的关键主题
- 已做出的决策
- 有效的命令、配置或代码
- 已解决的问题及解决方式
- 任何注意事项或经验教训
2. 更新长期记忆
若学到重要内容,更新 MEMORY.md:
- - 发现的新用户偏好
- 学到的重要经验
- 做出的长期决策
- 工作流程变更
3. 更新PARA笔记
检查并更新 notes/(或 memory/notes/)中的PARA结构:
- - 开放循环(notes/areas/open-loops.md):添加新的未完成事项,用 ✅ 标记已完成事项
- 项目(notes/projects/):更新活跃项目的进度
- 领域(notes/areas/):添加新的持续职责
- 资源(notes/resources/):添加新的参考资料、操作指南
4. 提交变更
bash
cd <工作空间>
git add -A
git status
git commit -m 总结:YYYY-MM-DD 会话摘要
git push
注意:
- - 总结时的 git push 是自动执行的(无需确认提示)。
- 若 git push 失败,报告错误并将提交保留在本地。
5. 报告摘要
向用户提供简要摘要:
- - 已记录的内容
- 更新的文件
- 下次会话需要跟进的事项
- 确认变更已提交(若成功,则已推送)
示例输出
会话总结完成 ✅
已写入每日日志:
- - 配置了PARA第二大脑
- 修复了笔记的向量索引
- 设置了每周记忆审查定时任务
已更新:
- - MEMORY.md:添加了记忆系统学习内容
- notes/areas/open-loops.md:标记.gitignore任务已完成
已提交: 总结:2026-01-30 会话摘要
下次会话需跟进:
- - 检查LanceDB自动捕获设置
- 考虑设置晨间简报定时任务
准备开始新会话!⚡
注意事项
- - 若每日日志文件不存在,务必创建
- 文件名和提交信息使用当前日期
- 保持摘要简洁但完整
- 结尾包含 ⚡ 表情符号(GigaBot签名)