mem_session_end
Save an end-of-session recap to give the next session fresh context, capturing goals, accomplishments, and next steps.
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 }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"goal": "<goal>",
"accomplished": "<accomplished>"
},
"name": "mem_session_end"
}
}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) | |
| session_id | No | Task session to checkpoint independently of the rolling recap. | |
| 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 |