handoff
Create a compact continuation document from the current session's state to start a fresh session without losing established context or decisions.
Instructions
Package the current (or a given) session's state into a compact continuation document for starting a fresh session, without losing decisions/context already established.
Use when the current session has grown long (many turns, large context) and continuing it is getting expensive, or when the user explicitly asks to "hand off", "continue this in a new session", or "start fresh but keep context". If session_id is omitted, resolves the current session from the CLAUDE_SESSION_ID environment variable; if that isn't set, pass session_id explicitly. Returns a markdown document to paste as the first message of a new session — this does not end the current session for you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | ||
| include_diffs | No | ||
| max_diff_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||