Write a handoff before the prompt cache goes cold #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/handoff-on-cold"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Before a large session's prompt cache goes cold, fork the session while the cache is still warm and save a handoff, so the user can start a fresh Claude or Codex session from it instead of paying for a cold cache rewrite.
~/.claude/skills/handoff/SKILL.mdread at fire time, with an embedded fallback. Saved to<main checkout>/.handoffs/<YYYYMMDD-HHMM>-auto.md(resolved viagit rev-parse --git-common-dir, so worktrees share it).forkAnswerhelper normalizes the publishedModelForkResult | nulland the{isAnswered, …}shape Claude Code 2.1.285 actually returns, for pings and handoffs alike.Checks:
claude plugin test .50 pass, 0 fail;tsc -p .clean. Not yet verified live against a real cache.🤖 Generated with Claude Code