session_end
Save a session summary at the end of a work session. Records accomplishments, changed files, lesson count, and optionally learns from git commits for next session start.
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. |