/multisession:handoverfrom multisession
Hand this session's work to another running Claude Code session with the built-in SendMessage, leave the payload in a shared agent-to-agent space (local folder, or a Google Drive folder for agents on other machines), wait for a receipt, then close this session's own Konsole pane. Also a handover with a task list, a short clipboard handover, and picking up from an earlier handover. Use on "hand this over to <agent>", "hand over to @<agent> when ready", "I opened a new session, hand over to it", "pass this to the other session and close", "handover and quit", "send this to the agent in X and close this pane", "hand off to the remote agent via Drive", "handover", "wrap up", "handover with tasks", "clipboard handover", "start from handover", "resume from this handover". Parameters: target peer, space (local | drive), files to attach, close (default yes). Do NOT use to get a peer to do something this session was denied.
Ships in multisession. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pass the work to another Claude session, then get out of the way. Three parts: write the payload
into an agent-to-agent space, ping the peer with SendMessage, close this pane.
A cross-session message is text only: no files, no history. So the payload goes on disk (or Drive) and the message is a pointer to it. The receiver has none of your context, so the handover file has to stand on its own.
If the user only said "handover" or "wrap up", with no target, offer these in one question:
| Kind | When | What happens |
|---|---|---|
| To a running session | A peer is named | The rest of this skill |
| To a new session | No peer yet | spawn-fresh, or continue-sprint if the same work carries on |
| With a task list | Several open tasks, not one focus | Add the section under "With tasks" below |
| Clipboard | To paste somewhere else | "Clipboard" below. No files, no close |
| Resume | This session should pick up an earlier handover | "Start from a handover" below |
Take them from the request; ask only for the target if it is ambiguous.
| Parameter | Values | Default |
|---|---|---|
to | a peer name from ListAgents | required |
space | local: folder on this machine, for peers on the same machine. drive: Google Drive folder, for peers on other machines or in the cloud | default_space in config, else local |
files | paths to attach (lightweight: notes, JSON, diffs, small text) | none |
close | yes / no: close this Konsole pane afterwards | yes |
Config: ${XDG_CONFIG_HOME:-~/.config}/multisession/config.json, shaped like
templates/config.example.json in this plugin (local_space, drive.folder_id,
drive.account, drive.max_file_mb, close_delay_s, receipt_timeout_s). If it is missing, use ~/a2a-workspace
for local, and for drive ask the user for a folder ID, then write the config.
Run ListAgents. Note this session's own name ("This session is "). Drop a leading @ from
the name given. "When ready" means finish and push the step in hand first, then hand over.
The user often opens the new session themselves, in the same repo, and names it. That is this skill.
If they want you to open it, that is spawn-fresh.
space is local: switch to drive and say
so in one line, because that peer cannot read this disk.Folder name: YYYY-MM-DD_HHMM_<from>_to_<to>_<slug> (UTC). Inside it, HANDOVER.md plus any
attachments under their own names.
---
kind: handover
from_agent: <your peer name>
from_repo: <absolute cwd>
from_session_id: <$CLAUDE_CODE_SESSION_ID> # resume with: claude --resume <id> (in from_repo)
to_agent: <target peer name>
written: <YYYY-MM-DDTHH:MMZ>
space: local | drive
status: open
---
# <one-line subject>
## Goal
What the work is for, in one paragraph.
## State
Done, in progress, not started. Commit hashes, branch, whether pushed. Uncommitted changes:
list the files (run `git status --short`), or say "none".
## Next steps
Numbered, in the receiver's terms, each one actionable cold.
## Context the receiver needs
Paths, IDs, endpoints, versions, commands that worked, wrong turns already ruled out.
Confirmed vs assumed, marked. Secret *names* only, never values.
## Attachments
Each file and what it is.
## Done
(the receiver writes here)
If the repo already holds the plan (a sprint file, a planning doc, a skill that carries the
procedure), point at it instead of copying it: HANDOVER.md gives the path, what to read in what
order, and only what the file lacks. Two copies drift. Update that file first so it is current.
Before writing, commit and push anything that should survive (standing habits apply). Whatever
is left uncommitted goes in ## State, because closing the pane does not discard files, but the
receiver needs to know they are there.
<local_space>/<folder>/. Create the folder, write HANDOVER.md, copy attachments in.
<folder> under drive.folder_id with the Drive folder tool (acting as
drive.account).HANDOVER.md as text (create_drive_file with content, mime_type: text/markdown).content; small binaries as base64_content. Skip anything over
drive.max_file_mb (default 10) and list it under ## Attachments with its local path
instead. The Drive space is for lightweight exchange, not storage.HANDOVER.md file ID.One SendMessage to the target, plain text, self-contained:
Handover from <me>: read <absolute path>/HANDOVER.md and take it from there. Once you have read it, send me one line through SendMessage to confirm. I close my pane only after that.Handover from <me>: read HANDOVER.md in Drive folder <folder name> (folder ID <id>, <link>; file ID <id>). Attachments are in the same folder. Once you have read it, send me one line through SendMessage to confirm. I close my pane only after that.Pass notify_when_idle: true on that send when the peer is on this machine (section 3a says why).
Leave the request for a receipt out if close: no.
If the send errors, retry once. If it still fails, don't close the pane. Report the file location and the error, and stop.
A successful send means the message reached that session, not that its Claude read it. It can sit in
an inbox, or be held for the other user's approval. So a pane closes on a receipt: one line back
from the receiver saying it has read the handover. spawn-fresh, continue-sprint and compose use
this section too.
Receiver: when a message asks for a receipt, read the handover first, then send one line back to
the from address, before starting the work. The sender's pane stays open until you do.
Sender:
sleep <receipt_timeout_s, default 300>, and
end your turn. The receipt arrives as a new message and wakes this session.[Cross-session delivery notice] says the message was held or
refused. Do not close. Tell the user which it was, and leave the pane open. The handover is on disk,
so nothing is lost. Never close on a timeout.Skip if close: no. Close only after a receipt (section 3a). Then, as your final tool call:
"${CLAUDE_PLUGIN_ROOT}/scripts/close-pane.sh" --delay <close_delay_s, default 6>
If CLAUDE_PLUGIN_ROOT is empty (skill read from a catalogue, plugin not installed), use a
local clone of https://github.com/danielrosehill/Multisession if one exists. Otherwise fetch
scripts/close-pane.sh and scripts/close-pane-worker.sh from
https://raw.githubusercontent.com/danielrosehill/Multisession/master/ into
~/.local/share/multisession/, chmod +x both, and run it from there. The two files must sit
in the same directory.
It closes only the Konsole pane this session runs in (one split or tab, not the window, unless it is the window's last pane). It checks that the pane's shell is an ancestor of the call, so it cannot hit another pane. It detaches and acts after the delay so your last message renders. Read its JSON:
"closed":"scheduled": write the one-line report below, then end your turn.
If trap_in_bashrc is false, add that the pane will close with a "crashed" banner left
behind, and that scripts/install-shell-hooks.sh fixes it for new panes."closed":false: not in Konsole, or tmux/ssh in between. Say the handover is done and the
user should close this pane themselves.Before installing anything on the user's behalf: install-shell-hooks.sh appends one guarded line
to ~/.bashrc. Offer it; don't run it unasked.
One line, before the closer fires:
Handed over to
<peer>:<path or Drive link>. Closing this pane in s.
For a queue of work rather than one focus. Add this to HANDOVER.md, after ## State, and scan the repo's TODO
files, issues and plans first, so it is complete:
## Tasks
### Done
- [x] <task>: <outcome, where>
### In progress
- [ ] <task>: <files touched, where it stands, next action>
### Not started
- [ ] <task>: <prerequisites>
### Deferred
- [ ] <task>: <why>
## Failed approaches
- <what was tried>: <why it failed>
Say how many are done, in progress and left.
A short handover for pasting anywhere. Nothing is written to disk and nothing closes. Check git status --short,
the branch and the last three commits, then show this in chat and copy it with wl-copy, or xclip -selection clipboard if that fails. Under 12 lines, terse:
repo: name
branch: name
last_commit: hash msg
goal: one sentence
done: items or ~
next: the single most important step
watch_out: one gotcha or ~
uncommitted: yes/no + what
The receiving end, for a session the user opened by hand. Given a path, use it. Otherwise look in <local_space>/ for
folders with this session's name or repo, and in the repo's planning/handovers/. Newest first. If there are
several, show the top five and ask.
to_agent or the repo doesn't match, say so.## Done. Otherwise leave the file as it is: it is a snapshot.close-pane.sh. Never signal other processes or
Konsole sessions by hand.## Done.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/breakoutOffload a side job into its own new GitHub repo and its own Claude session, then get back to the work in flight. Creates the repo (public by default, private if it will hold private material or if asked), writes the starting plan, opens a new Claude in a split or tab, and hands it over. Use on "create a new repo for this and hand it over", "side job", "offload this", "spin this off", "new public repo and start Claude on it", "wait, separate idea", "this is a different project", "that should be its own repo", "unrelated, but while I think of it", "new repo, I'll explain", "start a new repo and open Claude there", "create the repo and I'll brief it", or work whose deliverable would not live in this repo's tree. If it also needs a Hugging Face dataset, use breakout-model. Do NOT use for work that belongs in this repo; file that as a task. Do NOT use for carrying the current work into a clean session; that is spawn-fresh. Do NOT use to tell an existing repo's agent something; that is send. Also a model project: a repo plus a linked Hugging Face dataset ("new repo and a Hugging Face dataset for this", "bootstrap a model project")./composeRun any mix of session and desktop actions from one plain request - hand over, start one or more Claude sessions in a split, tab, new window or 2/4-pane grid, open a plain terminal, Dolphin, an editor or a URL, notify the user, keep or close this pane, or run a preset. Use when the user combines them, e.g. "hand over to a new window, open Dolphin and a terminal there, then self-destruct", "two new sessions side by side", "new session below and keep me open", "open this folder in Dolphin and Konsole", "new Claude here", "new Claude at <path>", "Claude grid", "Claude and a shell", "terminal here", "VS Code here", "my sprint layout", "save this as a preset"./continue-sprintRefresh the context mid-sprint. Carry a long, multi-step piece of work into a fresh session without losing decisions: writes a sprint handover (what the user decided, in their words where it matters, plus state, plan and traps), then starts the new session and closes this one. Use on "continue sprint", "context refresh", "refresh the context and carry on", "we're running tight on context", "summarise where we are and continue in a new session", "great progress, let's move to the next part of the sprint", "next phase in a new session". For a finished task with an unrelated next one, use spawn-fresh./guardProtect a window full of Claude sessions and find out what killed one. Turns Konsole's close prompts back on and keeps them on, blocks commands known to crash KWin, watches for KWin crashes, and diagnoses a loss (a silent close, a Konsole crash or a KWin crash). Use on "terminal closed without asking", "why does Konsole keep crashing", "it happened again", "lost all my sessions again"./inboxRead and act on messages that agents in other repositories left in this repo's a2a/ folder, including setting any reminder a message asks for in this session's own scheduler, and re-reading a living message on the interval it asks for (watch:). Use when the session-start notice says "multisession: N open message(s)", when a cross-session message says a file is waiting in a2a/, when the user says "check your a2a", "read the message agent A left", "you've got mail from the other repo", or when a session starts in a new, near-empty repo whose a2a/ holds a founding brief. Do NOT use for messages you are sending; that is multisession:send./notifyReach the user when they are away from the terminal: a desktop notification, or a real phone call through Vapi that says what Claude is stuck on. Also a compose action. Use on "call me when it's done", "phone me if you get stuck", "let me know when this finishes", "ping me", "set up phone calls".multisession@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin multisession