/multisession:spawn-freshfrom multisession
Start the next task in a fresh Claude Code session with a clean context. Splits this Konsole pane (or opens a new tab), launches a new named Claude there (its own peer name and session ID), writes a handover, sends it with the built-in SendMessage, and optionally closes this pane. Use on "spawn fresh", "start fresh", "new pane and hand over", "split and hand over", "new session for the next task", "break out to a new session", "context is full, carry on in a new one", "split and hand over", "clear the decks and continue", "clean up the context", "open another Claude here and hand over to it", "new instance in this repo and pass it this", "sideclaude", "spin this off", "do this on the side", "tackle a leftover", "what's parked". For an idea that needs its own new repo, use breakout instead; for handing to a session that is already running, use handover.
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.
The context cleaner. This session has finished a task, or its context is heavy, and the next piece of work should start clean. You open the new session yourself, beside this one, give it a name you choose, and hand the work over through Claude Code's own agent-to-agent messaging.
This is a context-pruning operation. The aim is a new top-level Claude session, the orchestrator for this repo from here on, with a clean context. It is not a subagent: a subagent works under this session and reports back, so this thread's context stays and keeps growing. The new session replaces this one. It talks to the user directly and can run its own subagents.
The right moment is a natural break in the workflow, when the current sprint has wrapped up. That is when the thread's history stops being useful, and when a handover can be comprehensive, because the work is shipped and the state is settled. A handover cut mid-step passes on loose ends.
So work towards that point. If the user asks for this while work is in hand, or you see a break coming, finish the sprint to its wrap-up, ship it, write the full handover, and then go. You can decide that yourself, without asking at each step. If the user says to do it now, do it now.
This skill and continue-sprint share this objective. The difference is what comes next: a new task
is this skill; the next part of the same sprint, where decisions and approvals must carry over, is
continue-sprint.
The handover is the only thing that crosses over, so it has to carry everything the next orchestrator needs. Side tasks (below) are the exception: this session stays, and nothing is being pruned.
Claude Code has no built-in "continue in a new session" command. --fork-session copies the
conversation, which is the opposite of what this skill is for. The parts this skill uses are
built in: claude --name (sets the peer name SendMessage addresses), claude --session-id
(lets you pick the UUID in advance), ListAgents and SendMessage.
| Parameter | Values | Default |
|---|---|---|
task | what the new session should do next | from the conversation; ask if unclear |
name | peer name for the new session | <cwd folder, lowercased>-<2–3 word task slug>, e.g. multisession-docs-pass |
dir | where the new session works | current directory |
layout | split (a new pane beside this one, Konsole's split view) or tab. Map the user's words with vocabulary in ~/.config/multisession/config.json first (see spawn-session) | split |
direction | for a split: right (side by side) or down (stacked) | right |
close | close this pane once the new session confirms it read the handover | yes |
spawn-session.sh checks both and says what is
missing. If the hooks are missing, offer scripts/install-shell-hooks.sh, which appends one
guarded line to ~/.bashrc. Don't run it unasked. It takes effect in new panes; the tab or
split it makes is new, so it works straight away.## State.Scripts are in this plugin's scripts/. If CLAUDE_PLUGIN_ROOT is empty (skill read from a
catalogue), multisession:spawn-session says where to get them, plus scripts/close-pane.sh and
scripts/close-pane-worker.sh.
Use the handover format and the local space from the handover skill (section 2): a folder
<local_space>/YYYY-MM-DD_HHMM_<me>_to_<name>_<slug>/HANDOVER.md (default local space
~/a2a-workspace; config ~/.config/multisession/config.json). Set to_agent: <name>, and
put the next task under ## Goal and ## Next steps. Write it before launching, so the new
session never waits on you. If the repo already holds the plan (a sprint file, a planning doc), point
at it rather than copying it.
The receiver starts with nothing: no memory of this conversation, possibly not the same
skills. Name skills by catalogue id or SKILL.md path, not by bare name.
Follow multisession:spawn-session with name, dir, layout, direction, and this message:
Handover from <me>. You were started for this task. Read <absolute path>/HANDOVER.md and take it from there. Record what you did under ## Done in that file. Once you have read it, send me one line through SendMessage to confirm. I close my pane only after that.
Send it with notify_when_idle: true. Leave out the closing sentence if close: no. If that skill stops at a failure, stop here too and
keep this pane open.
If close: yes, wait for the receipt as in the handover skill (section 3a). No receipt means the pane
stays open. With the receipt, run this as your final tool call:
"${CLAUDE_PLUGIN_ROOT}/scripts/close-pane.sh" --delay 6
Same rules as in the handover skill (section 4). It closes only this pane, and it refuses if
it can't prove the pane is its own.
Closing is the last step, not an offer. Once the receipt is in, close without being asked. Don't
leave the pane open for the user to read a report, don't tell them they can close it, and don't reply
to the receipt with a message of your own. Put anything they need in the handover, for the new session
to carry. The one-line report below goes out in the same turn as the close. Keep the pane only with
close: no, or if the user said so.
One line:
Started
<name>(session<uuid>) in a split <right/below> / a new tab, handed over<path>, receipt in. Closing this pane in 6s.
An idea came up mid-thread, and it should be done without disturbing this one. This session stays: close: no,
in a split. Write the brief to planning/side-tasks/<YYYY-MM-DD>-<slug>.md in the repo as well as the handover, or just
use the handover if the repo has no planning/. Give it a ## Out of scope naming what this session is working on,
so the two don't collide. If it should land on its own branch, say so in the plan, and don't switch branches here. Then
tell the user this session is unchanged.
Parked tasks live in planning/leftover-tasks.md, entries that start ## YYYY-MM-DD HH:MM - <summary> with a
**Status:** open | in-progress | done line.
open entries, newest first, and let the user pick one, several, or none. Never pick for them. An
in-progress entry may belong to another session: warn before taking it.in-progress and add a **Started:** line with the date and session name. Keep the file's order.close: no, with the entries as its task. Tell it to work through them in order, mark each
done with a one-line outcome, and ask before going on if one is bigger than its stated scope.The session that did the work marks it done. This one doesn't.
What SKILL.md sets; muted values are Claude Code's defaults
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".Other plugins' skills for the same job
multisession@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin multisession