/multisession:restorefrom multisession
Bring back Claude Code sessions: ones lost when Konsole or the terminal crashed or closed, the last N, or ones picked from a menu, each resumed in its own repo in one split window, tabs or separate windows. Use on "restore my sessions", "Konsole crashed", "bring back my sessions", "reopen the last five", "which sessions can I restore".
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.
When a terminal dies, every Claude session in it writes its transcript on the way out, within about a
second of the others. That burst identifies the sessions that were open. Each is resumed in the
directory it was started in. After a crash, restore first, then use guard to find out why.
SR="${CLAUDE_PLUGIN_ROOT}/scripts/session_restore.py" # empty root: see spawn-session section 1
python3 "$SR" list # default: the most recent crash burst
python3 "$SR" list --last 12 --json # id, repo, title, active_ago, last_prompt, prompt_ago, in_crash
Sessions still running, and this session, are already left out.
| User says | Selection |
|---|---|
| Lost, crashed, closed | The crash burst, no flags. If it looks wrong: --minutes 15, --cluster-seconds 60 or --last 5 |
| "The last five" | --last 5 |
| Named or numbered ones | Id prefixes: restore b23972c1 634a69af |
| "Which sessions", no clear set | The menu below |
Show the list (repo, title, how long ago, last prompt) unless the user already named the set.
python3 "$SR" restore # crash burst, split panes
python3 "$SR" restore --minutes 15 --layout tabs
python3 "$SR" restore --last 5 --dry-run # plan as JSON, if the selection is in doubt
Use the same selection flags as list. The layout is the user's stated one, else one window of
side-by-side panes. Ask only if there are more than six sessions and no stated layout: offer tabs or
windows, because panes get narrow.
Report what opened (repo and title) and any skipped_missing_cwd (the repo moved or was deleted).
Put everything in one AskUserQuestion call: up to three multi-select session questions, then a
single-select "Open as" question.
in_crash sessions first, then by recency, up to 12. Groups of at most 4, never a group of 1
(5 is 3 + 2, 9 is 4 + 3 + 2). One session: skip the menu and ask only the layout.<repo>: <2-3 words of title>, all unique. Description: <title>. Active <active_ago> ago[, lost in the crash]. Last: "<last_prompt, about 70 chars>". The tool can't preselect, so the description
carries the suggestion.One Konsole, split (Recommended) is --layout split, One Konsole each is
--layout windows. "Other" text such as "all", "the crash ones" or "tabs" maps to the same flags.| Flag / env | Default | Meaning |
|---|---|---|
--layout / SESSION_RESTORE_LAYOUT | split | split, tabs or windows |
--orientation / SESSION_RESTORE_ORIENTATION | horizontal | panes side by side, or vertical for stacked |
--command / SESSION_RESTORE_COMMAND | claude --resume {id} | what each pane runs. {id} and {cwd} are replaced |
--cluster-seconds / SESSION_RESTORE_CLUSTER_SECONDS | 10 | width of the crash burst |
--all | off | include sessions still running |
--command 'echo {id}'. A real claude --resume in a test would run the session in two places.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".multisession@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin multisession