/handoff:handoff [--bg | --catchup | --recover [session id or topic]] [what the next session will work on]from handoff
Manual command that carries work across a gap, in three modes. Default: compacts the current conversation into a handoff document a fresh session can pick up, and with --bg launches that session as a background agent. --catchup: rebuilds a returning human's context from live project state, read-only. --recover: recovers a session that died without a handoff, from a transcript digest. Not for restoring a conversation whole (claude --resume).
Ships in handoff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Carry work across a gap. The default mode writes a handoff document so a fresh agent can continue the work. Two flags change the direction: --catchup briefs a human who lost the thread, and --recover rebuilds the document for a session that ended without one.
$ARGUMENTS may start with one flag:
--bg: write the document, then launch it as a background agent (below).--catchup: read references/catchup.md and follow it. The rest of the arguments is what the human wants to know (a term, "what next", a topic).--recover: read references/recover.md and follow it. The rest of the arguments picks the session (an id, a prefix or a topic). The reference's <script> is python3 -I ${CLAUDE_SKILL_DIR}/scripts/session_recover.py and <this-session-id> is ${CLAUDE_SESSION_ID}; run the script exactly that way.With none, write the handoff document. Strip the flag and treat the rest as a description of what the next session will focus on; tailor the document to that. With no description, cover the work as it stands.
Save it to the OS temporary directory, not the workspace: mktemp "${TMPDIR:-/tmp}/handoff-XXXXXX.md" (%TEMP% on Windows).
Include:
Redact secrets and personal data: API keys, tokens, passwords, and personally identifiable information.
Without --bg, finish by giving the file path and a one-line way to use it, for example starting a new session with claude "$(cat <file>)".
With --bg, the document becomes the prompt of a new background session that starts in the current working directory and returns immediately:
claude --bg --name "<descriptive name>" -- "$(cat <file>)"
--name (alias -n) with a short descriptive name such as "Fix login bug". It is the display name in claude agents, the session picker and the terminal title.$(cat <file>), never inline in the command, so the shell doesn't run backticks or expand $ in it.claude agents lists it, claude attach <id|name> opens it, claude logs <id|name> shows recent output, claude stop <id> stops it.claude --help doesn't list --bg (older Claude Code), skip the launch, give the file path, and say why.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin handoff