Pan handoff

From eltmon/overdeck · View interactive version

Pan handoff is an AI agent skill from the GitHub repository eltmon/overdeck. pan handoff <conv> — agent-authored conversation handoff that spawns a new conversation. Keep the focus short and steering; the hard cap is 10000 characters (PAN-3737). Pass --title to name the successor. --fresh starts a clean conversation with no summary and no parent link.

How to use this skill

Skill file

pan handoff

Create a new conversation seeded by a handoff document written by the live source agent.

Quick command

pan handoff [conv] [focus text...]

The trailing text after the conversation reference becomes the focus — no flag required.

Keep the focus short and steering; do NOT pack backstory/context into it — the author reads the full source transcript for that, and long briefs belong in a file the focus points at. The hard cap is 10,000 characters (multi-line is fine; PAN-3737) — a longer focus is rejected with Fork request rejected: focus must be 10000 characters or fewer and no conversation is created.

Where to run it, and where the successor lives

Two separate directories are involved, and each has its own rule:

Handing off the conversation you are in (the common case)

*If you are an agent inside a conversation and want to hand off your own*

conversation, omit <conv> — or pass self.** Do NOT run pan conv scan,

pan conv list, or pan conv show to "find yourself" and then guess an id.

That scan-and-guess pattern picks the wrong source (PAN-1520); the command

identifies your conversation deterministically from the session you are running

in.

pan handoff                              # hand off this conversation, no focus
pan handoff self wire the Stripe webhook # hand off this conversation, with focus

Because focus text is positional, prefer the explicit self token whenever you

pass focus — a bare first word like pan handoff continue the wiring is

interpreted as a conversation reference named "continue", not focus. self

removes the ambiguity.

If you want to know which conversation you are resolved to, run pan conv current

(alias pan conv whoami). It prints the deterministic answer with no guessing.

Self-detection works for non-Docker claude-code conversations. If it cannot

resolve (run outside a conversation, or a Docker workspace), the command errors

and asks for an explicit <conv> — it never falls back to a guess.

Usage

pan handoff                              # hand off the conversation you are in
pan handoff self continue the API wiring # same, with focus
pan handoff 42
pan handoff source-conv continue the API wiring
pan handoff source-conv --model claude-sonnet-4-6
pan handoff source-conv --effort low cheap follow-up
pan handoff source-conv --harness pi
pan handoff source-conv --cwd /home/you/Projects/project/workspaces/feature-pan-123
pan handoff source-conv --cwd /home/you/Projects/isolated-worktree --project mind-your-now
pan handoff source-conv --model claude-opus-4-7 wire the Stripe webhook into checkout
pan handoff source-conv --author external --author-model claude-haiku-4-5 cheap clean handoff
pan handoff source-conv --author source uses-source-agent-and-pollutes-its-context
pan handoff source-conv --issue PAN-1234 continue the API wiring
pan handoff self --issue PAN-1234 --role review "review the PR"
pan handoff source-conv --title "Checkout webhook repair" continue the API wiring

Project and issue association

Use --project <key-or-name> when the successor runs from a --cwd outside the registered project's directory, such as an isolated worktree. The --cwd value must be an absolute path to an existing directory under your home directory (see "Where to run it, and where the successor lives" above). The explicit project wins over the source association; without the flag, the successor inherits the source conversation's project. Unknown projects reject the request and create no conversation.

Use --issue <id> to attach the new conversation to a specific issue (e.g. PAN-1234). The flag is validated; an invalid ID rejects the request and creates no conversation. When --issue is omitted, the new conversation inherits the source conversation's issue association, if any. With --issue and no --cwd, the new conversation starts in the issue workspace (workspaces/feature-<issue>) when it exists.

Use --role <role> to set the new conversation's pane role: conversation (the default), work, review, test or plan. A handoff with --issue and --role review appears as that issue's Review row in the dashboard; without --role it is an issue-scoped conversation. The role sticks across every respawn and resume of that conversation.

Use --effort <level> to set the new conversation's reasoning effort: low, medium, high, xhigh or max. Without the flag, the successor inherits the source conversation's effort (clamped to the new model when it differs). The server validates the value; an invalid level is rejected.

Skills for the new conversation

Use --skill <name> (repeatable) to turn a skill on for the successor only — a native skill name, or a pack skill id <pack>/<skill> (e.g. mattpocock/grilling). Use --pack <id> (repeatable) to turn on every non-opt-in skill of a cached skill pack for the successor only. Both apply to the new conversation's own skill layer: the successor inherits the source's skill map, then these entries win on top of it. Nothing is written to any global, project, or issue skill setting.

pan handoff self --skill grilling continue the refactor
pan handoff self --pack mattpocock wire the Stripe webhook

An unknown skill name, an unknown pack id, or a pack that is not cached (pan skills pack sync <id>) rejects the request before any conversation is created.

Hold the new conversation

Use --hold to create and launch the successor without sending the kickoff — the operator inspects it before it starts working (useful on a recorded stream, or to edit the brief first):

pan handoff self --hold Read .pan/handoff-brief.md FIRST and follow it exactly.

The successor's session comes up and the dashboard composer shows a waiting notice with the kickoff text already in it; pressing Send there starts it. From the terminal, run pan handoff start <conv> (id or name) instead:

pan handoff start 371

This sends the held kickoff exactly once. A second pan handoff start on the same conversation — or any attempt on a conversation that was never held — exits 1 with "No held kickoff: the conversation was already started or was never held".

Fresh start

Use --fresh when you want a clean conversation that only borrows the source's defaults (project, cwd, model, effort) — not its context. No handoff document is authored, no summary is generated, the source transcript is never read, and the successor has no parent link. The focus becomes the successor's first message verbatim, instead of being handed to an author.

pan handoff self --fresh build a new Dwarf Fortress fort
pan handoff 2185 --fresh --model claude-haiku-4-5 --cwd /home/you/Projects/df-wt start a new fort

This is the right tool for starting unrelated work from a conversation you're already in — e.g. kicking off a Dwarf Fortress fort on a cheaper model from a Project Zomboid research conversation — without carrying any of that context forward. --fresh is handoff-only: combining it with --author source or --author-model is rejected (there is no document to author), and --fresh --hold needs focus text, since there would otherwise be nothing to hold.

When to use

To launch a parallel lane, use pan lane start, not pan handoff.

The successor nests under the source conversation in the Command Deck and the Agents History, and shows continues ← #<id> — except a --fresh successor, which is a top-level conversation with no continues ← link.

Use a normal summary fork when a quick passive summary is enough. Use a plain fork only when staying within Claude Code-compatible raw history.

Focus

The positional text after <conv> is the focus — a short statement of what the successor should concentrate on. Quotes are optional; everything after the conversation reference (excluding flags) is joined with spaces. Keep it short and task-oriented; the focus is injected into the handoff-authoring prompt, not used as the new conversation's user request.

Hard ceiling: 10,000 characters (PAN-3737; multi-line focus is allowed). Don't pack the backstory into the focus even so; the detail belongs in the transcript the author reads or in a brief file in the successor cwd. The focus only steers what the author emphasizes.

Title

Without --title, the new conversation is titled Handoff: <first ~70 chars of focus> (or Handoff: <source title> when there is no focus). Pass --title "<title>" to name it explicitly — useful when the focus is a file pointer like "Read .pan/handoff-brief.md FIRST" and would otherwise become the title verbatim:

pan handoff self --title "Checkout webhook repair" Read .pan/handoff-brief.md FIRST and follow it exactly.

A blank --title falls back to the default naming above.

Authoring modes

--author external (default) spawns a separate authoring session that reads the source JSONL transcript and writes the handoff document. The source conversation is never contacted — its context stays clean, and the source can be ended. Use --author-model and --author-harness to choose the authoring model and harness independently of the source and of the new conversation. Cheaper models work well for routine handoffs; reach for a larger model when the conversation has nuance the document needs to preserve.

--author source asks the live source agent to write the handoff document in-conversation. This adds the prompt and the doc to the source's transcript (polluting its context) and uses whatever model the source is currently running. It can still be the right choice when the source agent has live state — open files, recent commands, in-flight reasoning — that a transcript reader would miss.

Fallback behavior

pan handoff <conv> always attempts to create a usable new conversation. If the live-agent handoff cannot complete, Overdeck falls back to a summary fork and prints the fallback reason. An oversized source conversation is never a hard failure: it is auto-degraded through a truncated smart summary, then a heuristic fallback, then a focus-only seed, and the handoff still spawns.

Common fallback reasons:

Output

Successful handoffs print the new conversation id, tmux session, model, harness, dashboard link, and handoff doc path. Fallbacks print the same new conversation details plus a yellow fallback notice.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.