mem_session_end
Capture session goals, accomplishments, and discoveries to provide fresh context for the next session. Automatically updates the latest recap per scope.
Instructions
Save an end-of-session recap so the NEXT session starts with fresh context.
CALL THIS before closing any significant working session. In autopilot mode, the MCP server saves a minimal recap automatically on exit — but calling this manually produces a richer, more useful recap.
HOW IT WORKS: uses topic-upsert — one recap per scope is kept and updated in-place (revision_count increments). get_briefing surfaces the latest recap at the very top of the next session's briefing, before project context.
PARAMETERS: goal — what you were trying to accomplish (1–2 sentences) accomplished — what was actually done (bullet list recommended) discoveries — bugs, surprises, missing knowledge found during this session files_touched — key files read or modified (used as anchor for staleness) next_steps — what should happen in the next session or for a teammate scope — personal (default) | team
RETURNS: { id, scope, action: 'created'|'updated', revision_count }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | What you were trying to accomplish this session (1–2 sentences) | |
| scope | No | Visibility: personal = private to you, team = shared with the team | personal |
| module | No | Module name (required when scope=module) | |
| next_steps | No | What should happen next (for the next session or a teammate) | |
| discoveries | No | Any bugs, inconsistencies, surprises, or missing knowledge found during this session. Empty if nothing surprising was found. | |
| accomplished | Yes | What was actually done — bullet list recommended | |
| files_touched | No | Key files that were read or modified — used as anchor paths |