Write Handoff Note
memory-handoff-writeWrite a structured session checkpoint before compaction or context loss, capturing tasks, decisions, next steps, and file references so another session can resume without losing state.
Instructions
Write a structured "where we left off" snapshot (a.k.a. session checkpoint). Call BEFORE /compact, before session end, when context_pressure returns hot/critical, or when the user asks to "save this session." Pass an optional name (e.g. "engram-named-checkpoints") so the user can later list-and-pick rather than scanning timestamps. This is the lifeline if the context window fills before compaction runs. Handoffs stay in this session's lane (its Claude Code config directory). Pass to with another lane's name to send the handoff to sessions there instead; it waits in their inbox.
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": {
"currentTask": "<currentTask>"
},
"name": "memory-handoff-write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Send to another lane instead of saving a resume note here, e.g. "claude-work". Only when the user asks for work to be handed to their other session. | |
| name | No | Human-friendly checkpoint name (kebab-case recommended) for list-and-pick resume. Optional — omit for an unnamed timestamped handoff. | |
| notes | No | Free-form additional context, quirks, gotchas. | |
| reason | No | Why this handoff is being written (default: manual). | |
| fileRefs | No | File paths (ideally path:line) the next agent needs. | |
| completed | No | What has been completed this session. | |
| decisions | No | Key decisions made this session. | |
| nextSteps | No | Concrete next actions to take on resume. | |
| sessionId | No | Session/conversation ID for cross-referencing. | |
| currentTask | Yes | One-sentence description of what you are working on. | |
| openQuestions | No | Unresolved questions or blockers. |