Handoff
Carry work from one session to the next through a single file, HANDOFF.md, at the repository root. Whichever agent opens the repository next — Claude Code, Codex, Gemini CLI, Antigravity, Grok, or another — reads that file first and continues from it. It holds only what a fresh session needs, and points to files instead of copying them.
Start here
- Decide which job the user asked for:
- Resume — a new session, the user says "continue", or the repository has a
HANDOFF.mdyou have not read yet. - Save — the user asks for a handoff, to wrap up, or to save where things stand.
- Bootstrap — the repository has no
HANDOFF.mdor no handoff rule in its agent instructions.
- Resume — a new session, the user says "continue", or the repository has a
- Read the matching workflow below, then follow the handoff format for the file's shape.
- Apply what to capture when deciding what goes in and what stays out. Never record secrets, tokens, one-time codes or personal data.
Choose the workflow
| Requested outcome | Read | Expected result |
|---|---|---|
| Continue from the last session | Resume a handoff | Work picks up at the first open step, with the recorded constraints respected |
| Save the session for next time | Save a handoff | HANDOFF.md rewritten in place, short, current, and committed when allowed |
| Set a repository up for handoffs | Bootstrap a repository | HANDOFF.md plus a short rule in the repository's agent instructions |
Resources
- Handoff format: the five sections, their order, and length limits.
- What to capture: include, exclude, and how to keep it current.
- Agent setup: installing the skill globally for each agent, and the rule text for agents without skills.
- Handoff template: a ready
HANDOFF.mdskeleton. - Agent instructions snippet: the rule to add to
AGENTS.md,CLAUDE.mdorGEMINI.md.
Rules that always apply
HANDOFF.mdis rewritten, never appended to. Old, finished items are removed, not archived.- Keep it under about 80 lines. A long handoff defeats its purpose.
- Respect the repository's own instructions and the user's standing constraints (protected branches, commit conventions, what not to touch). Record those constraints in the handoff so the next session keeps them.
- Commit the file only when commits are allowed in the session, on its own, following the repository's commit rules.
Validate the package
Run python3 scripts/validate-skill.py from this directory (Python 3.9+, standard library only), or the shell or PowerShell wrapper. The validator checks the manifest, required files, local links and anchors, and that every resource is reachable from this file. After changing the validator, run its regression suite.