Laptop sync + handoff: agent hooks, agent session sync, agent session handoff#24
Merged
Conversation
…ssion handoff` (stacked on #21) (#22) * Laptop transcript sync: agent hooks install/enroll + agent session sync - agent hooks install|uninstall|status: idempotently manage the Stop + SessionEnd command hooks (async, never block a turn) in ~/.claude/settings.json, preserving user-authored hooks - agent hooks enroll|unenroll: per-repo opt-in consent gate, stored in the CLI config (cwd -> origin remote -> owner/name) - agent session sync: hook-driven (stdin JSON) or manual (flags); checks enrollment (silent no-op otherwise), redacts client-side, gzips + base64, POSTs /v1/sessions/sync; network failures spool to ~/.config/ellipsis/spool (latest snapshot per CC session wins) and flush on the next healthy sync; every hook-mode failure path is a quiet exit 0 so a sync problem can never disturb a Claude Code session * agent session handoff: push WIP snapshot + start a cloud handoff session git stash create snapshots the dirty tree without disturbing it (clean tree hands off HEAD), pushed to refs/ellipsis/handoff/<sha12>; then POST /v1/sessions with handoff params + the instructions as the prompt. Requires --parent (the synced laptop session to chain from). --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands the CLI half of laptop ingestion + handoff (originally #22, whose merge landed on the orphaned
session-renamestack base instead ofmain). Branch rebuilt asmain+ cherry-pick of #22's squash commit; the duplicate rename diff is gone and thefirst_run_yamlchanges from #19/#20 are preserved.Server half: ellipsis-dev/ellipsis#5575 (merged). Supersedes #23 (duplicate agent run; its server half ellipsis-dev/ellipsis#5578 is also being closed).
See #22 for the full feature description:
agent hooks install|uninstall|status|enroll|unenroll,agent session sync(hook-driven transcript sync with client-side redaction + spool-and-retry),agent session handoff(WIP stash → hidden ref → cloud session via handoff params onPOST /v1/sessions).Verified:
tsc --noEmitclean, vitest 108/108 passing.