session_end
Record a session summary of accomplishments and lessons learned to provide context for future sessions. Optionally, analyze git commits to automatically learn from changes.
Instructions
Save a session summary when you finish working. Records what was accomplished, files changed, and lesson count. The next session_start will show this summary as "Last session". Call this when ending a work session, before going idle, or before summarizing. Ambient Learning: if workspace_path is provided, reads git log since session start and auto-learns from commits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance | |
| summary | Yes | Brief summary of what was accomplished this session (2-3 sentences) | |
| files_changed | No | Key files changed this session (optional) | |
| lessons_learned | No | Number of new lessons stored this session (optional) | |
| workspace_path | No | Absolute path to the project root (e.g. "/Users/you/myproject"). Enables Ambient Learning — reads git log since session start and auto-learns from commit messages. |