handoff
Skill0 starsChanged 2 months agoMITView on GitHub
Transfer conversation context between agentic CLIs (Claude Code, GitHub Copilot CLI, OpenAI Codex CLI) locally and across machines. Reads a source session transcript by UUID and produces either an inline summary, a paste-ready handoff digest, a written markdown file, or a branch in a user-owned private git repo that another machine can fetch. Use when switching agents mid-task, recovering context, or moving between Windows/Linux/macOS setups. Triggers on: "handoff", "transfer context", "continue in codex", "continue in claude", "continue in copilot", "switch to codex", "switch to claude", "what was that session about", "claude --resume", "copilot --resume", "codex resume", "find the session where", "search sessions", "which session did I", "push handoff", "fetch handoff", "handoff to other machine", "resume on my other laptop".
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- obie/auto-handofftheir own version, first seen Oct 4, 2026
- jesse-merhi/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use which-skill, wait-what and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 5 projects that use this
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 51 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 41 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 20 projects that use this
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
- +5 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- mattpocock/skills★ 335ksame name
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- compozy/compozy★ 2.8ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- stevesolun/ctx★ 588same name
185 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
When invoking dotbabel handoff push without a query positional, include --from <your-cli> where <your-cli> is the agent the host LLM is …
- Very specific: line 79
Approach A (opt-in via
--state-file): When dotbabel handoff push --state-file <path> is passed, the file's raw content (typically a … - Very specific: line 90
When the dotbabel binary cannot be executed for any reason — permission denied, binary not found, network failure, sandbox restriction — do …
- Distinctive: line 101
Do not infer, summarize, or proceed as if the call had succeeded.
“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Handoff — Cross-CLI Session Context Transfer
Thin wrapper around the dotbabel handoff binary. The binary is the
authoritative contract; run dotbabel handoff --help for the full
sub-command list and flag reference. This file maps natural language to
the right invocation.
Auto-trigger phrase mapping
| Trigger phrase | Invocation |
handoff <id> / resume-command fragments | dotbabel handoff pull <id> |
continue in <cli> / switch to <cli> / pull from <cli> | dotbabel handoff pull <id> --from <cli> |
what was that session about + identifier | dotbabel handoff pull <id> --summary |
push handoff / send to other machine / save this | dotbabel handoff push --from <host-cli> [--tag …] |
pull handoff / fetch handoff / continue from yesterday's machine | dotbabel handoff fetch [<query>] |
Extract <id> from the user message (UUID, short UUID, or a deliberate-label
alias: claude customTitle/aiTitle, codex thread_name, copilot
workspace.yaml:name, or gemini checkpoint). Aliases match
case-insensitively. Resolution precedence: UUID > short-UUID > latest >
alias (no fall-through on miss).
The resolver probes Claude / Copilot / Codex / Gemini roots automatically. If the
query is missing or ambiguous, ask one clarifying question before proceeding.
The --from filling rule
When invoking dotbabel handoff push without a query positional,
include --from <your-cli> where <your-cli> is the agent the host LLM
is running in (claude for Claude Code, copilot for GitHub Copilot CLI,
codex for Codex). The flag is required in that mode; the binary exits
64 without it.
Layered fidelity (Approach A and Approach B)
The digest combines two layers of context fidelity. Justification and
tradeoffs are captured in
docs/experiments/handoff-hardening-2026-05-08.md (added in PR #206;
this PR must merge after #206 for the link to resolve).
- B-floor (always on). Mechanical extraction the binary performs
unconditionally: TodoWrite mining in claude/codex transcripts,
user-prompt cap of 50 (prompt 1 pinned + last 49), and assistant
turn sampling (first turn + last 3). This is what every
pushandpullproduces with no extra flags. Seereferences/digest-schema.mdfor the schema and size bounds. - Approach A (opt-in via
--state-file). Whendotbabel handoff push --state-file <path>is passed, the file's raw content (typically a<handoff-state>YAML block authored by the source agent) is prepended above the mechanical<handoff>block. This lets the agent author intent, decisions, and goals verbatim instead of relying on extraction heuristics. The block flows through the same secret scrubber. Seereferences/digest-schema.mdfor the rendered shape.
Tool execution failures
When the dotbabel binary cannot be executed for any reason —
permission denied, binary not found, network failure, sandbox
restriction — do NOT fabricate, reconstruct, or synthesize a
<handoff> block from raw session JSONL files. Report the
tool-execution error verbatim and stop; instruct the user to run
the command manually in a shell where dotbabel is available.
Specifically:
- Quote the exact command attempted and the failure message.
- Tell the user to run it themselves and paste the output back.
- Do not infer, summarize, or proceed as if the call had succeeded.
Why: the binary is the authoritative producer of <handoff> blocks
— it owns the scrub passes (push redaction) and the extraction
logic §4 data flow depends on. Fabricated output may pass shape
validation but bypasses scrubbing entirely; the consumer cannot
distinguish a hand-rolled block from a real one.
Cross-cutting flags
Brief reference. dotbabel handoff --help is authoritative.
--from <cli>narrows source-CLI auto-detection onpush,fetch,pull; filterslist,search, andprune. Forpull latest, omitting--fromtriggers host auto-detection:CLAUDECODE=1/COPILOT_*/CODEX_*/GEMINI_CLI*env signals → narrowed to that CLI's root; host undetectable → cross-root union (newest mtime across all four roots).--summaryispull-only;fetch --summaryexits 64 becausefetchretrieves the rendered remotehandoff.md.-o <path>(onpull) controls output:-forces stdout;autowrites to<repo>/docs/handoffs/<date>-<cli>-<short>.md; any other string is a literal path.--since <ISO>cuts offlistandsearch(default 30 days forsearch).--limit <N>caps the row count.--tag <label>annotates apush(repeatable). Onfetch <tag>, exact-tag matches are preferred over description substring fallback.--fixed/-Ftreats thesearchquery as a literal string instead of a regex.--jsonis honoured bylist,pull,search.--state-file <path>(onpush) prepends a free-form state block (Approach A) to the digest before the mechanical extraction. The block is scrubbed for secrets like any other content.
Out of scope
- Invoking the target CLI directly. The skill prints; the user pastes. Keeps the transfer auditable.
- End-to-end encryption. The git transport is access-controlled by the host (private repo + auth); content is plaintext on the remote.
pushruns the scrubber and fails closed (exit 2) if it can't run. Best-effort pattern pass — seereferences/redaction.md. - Fuzzy or semantic search.
searchis substring/regex only.
Internal references
dotbabel handoff --help— authoritative flag and sub-command list.references/prerequisites.md— install matrix and remote-transport setup.references/from-codex.md— Codex-specific notes.references/redaction.md— scrubber behavior.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

