fix: auto-save uncommitted implementation work (te-3tj, gt-pvx safety net)
This commit is contained in:
24
.claude/commands/handoff.md
Normal file
24
.claude/commands/handoff.md
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
description: Hand off to fresh session, work continues from hook
|
||||
allowed-tools: Bash(gt handoff:*)
|
||||
argument-hint: [message]
|
||||
---
|
||||
|
||||
Hand off to a fresh session.
|
||||
|
||||
User's handoff message (if any): $ARGUMENTS
|
||||
|
||||
Execute these steps in order:
|
||||
|
||||
1. 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'.
|
||||
|
||||
2. 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"`
|
||||
|
||||
3. 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.
|
||||
Reference in New Issue
Block a user