end_episode
End the current episode and provide a summary. The summary is the main value for future recall — it captures the narrative of the work session.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
summary | string | Yes | What was attempted, what worked, what was decided |
Return Value
Section titled “Return Value”Confirmation with the episode ID and memory count.
Examples
Section titled “Examples”End a debugging episode
Section titled “End a debugging episode”{ "summary": "Root cause: refresh token rotation race condition when two tabs make simultaneous requests. Fixed with mutex around token refresh. Also discovered token cache wasn't clearing on logout — fixed that too."}- Always provide a summary — it’s the primary value for future recall
- Summaries should capture: what was attempted, what worked, what was decided
- Episodes also auto-end after 30 minutes of inactivity (without summary)
Related Tools
Section titled “Related Tools”- begin_episode — Start an episode
- recall_episode — Retrieve episode contents