861 B
861 B
description, allowed-tools, argument-hint
| description | allowed-tools | argument-hint | |
|---|---|---|---|
| Hand off to fresh session, work continues from hook | Bash(gt handoff:*) |
|
Hand off to a fresh session.
User's handoff message (if any): $ARGUMENTS
Execute these steps in order:
-
Ask the user: "Ready to hand off? This will restart the session. (y/N)"
- If the user says no or doesn't confirm, stop here. Do NOT run gt handoff.
- Only proceed if the user explicitly confirms with 'y' or 'yes'.
-
If user provided a message, run the handoff command with a subject and message:
gt handoff -y -s "HANDOFF: Session cycling" -m "USER_MESSAGE_HERE" -
If no message was provided, run the handoff command:
gt handoff -y
Note: The new session will auto-prime via the SessionStart hook and find your handoff mail. End watch. A new session takes over, picking up any molecule on the hook.