restore

restore is a skill for Claude Code from motlin/claude-code-plugins. It costs 54 tokens per session (848 once invoked), scanned A, original, Apache-2.0.

A command that rebuilds Herdr workspaces, tabs, pane splits, and coding-assistant sessions from a saved snapshot after a reboot. Herdr is the terminal workspace manager described by the snapshot format.

In plain words
What is it for?
Use it to preview and restore saved sessions, optionally limiting which workspaces or panes are rebuilt.
Why use it?
It restores a previous multi-pane working setup without manually recreating every workspace and restarting each agent.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the herdr-reboot plugin — 2 skills shipped together

Good fit Use it to preview and restore saved sessions, optionally limiting which workspaces or panes are rebuilt.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add motlin/claude-code-plugins
Claude Code
/plugin install herdr-reboot

Made for: Claude Code.

Or install herdr-reboot, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for restore

README.md
[![agentmods](https://agentmods.dev/badge/skills/motlin/claude-code-plugins/restore/github.svg)](https://agentmods.dev/skills/motlin/claude-code-plugins/restore)
Your own site
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/restore"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/restore/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for restore

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/restore"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00848
Opus 5.5 $0.00022 $0.00339
Sonnet 5.5 $0.00011 $0.00170
Haiku 4.5 $0.00005 $0.00085

Measured 1mo ago against content hash 1a8edebe60ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

restore scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/herdr-reboot/skills/restore/SKILL.md · 38 lines

What it actually says

Restore Herdr Workspaces

Rebuild the sessions from the snapshot written by /herdr-reboot:snapshot, each through its own herdr server: each workspace and tab with its label, panes split at the captured direction and ratio, then the resume command fired into each pane.

Resolve <plugin-root>: ${CLAUDE_PLUGIN_ROOT} in Claude Code; in Codex, the plugin root containing this loaded skills/restore/SKILL.md, even when installed outside the repository.

Preview the plan and show it to the user:

python3 "<plugin-root>/scripts/restore.py" .llm/resume-after-reboot-state.json

The preview prints workspaces, tabs, split right 0.6 lines, and the pane each slot lands in. Once the user confirms, fire it:

python3 "<plugin-root>/scripts/restore.py" .llm/resume-after-reboot-state.json --go

--skip 3,7 leaves slots out (a split left with one pane collapses, and a tab left with none is not created). Agent launches are spaced 0.4s apart (--delay).

Only schema resume-after-reboot/v3 is accepted. Any other snapshot is rejected rather than half-restored.

Tell the user before firing:

  • A captured session whose server is not running is skipped with the herdr session attach <name> command that starts it, the other sessions are restored, and the run exits non-zero. After a reboot only the session the user reopened is usually up. Have the user start the rest in a terminal, then re-run; never start one yourself. Re-running leaves the sessions already restored alone.
  • command panes fire by default, since bringing back dev servers like just dev is most of the point. --no-commands leaves dev servers (restore_default: false) alone when one outlived the reboot and holds its port. Read-only viewers (git log, less FILE, htop, tig) fire either way, from the top, without scroll position, search, or selection.
  • herdr may already have brought the session back, agents included, leaving only command panes at a prompt. In the preview, (adopt …) on a workspace line and (live …) on a tab line mean restore reuses what exists. Each captured tab pairs with the live tab of the same label and split structure; its idle panes are fired into in place, and a pane already running its agent prints LIVE. Only a captured tab with no live counterpart (renamed or re-laid-out since the snapshot) is created fresh.
  • Nothing is typed into a pane that is not an idle shell. herdr pane run types into whatever the pane holds, so firing into a resumed agent would submit the command as a prompt. Panes not confirmed at a shell prompt with no live agent are skipped with a printed reason, so re-running is safe.
  • A live workspace with the same label and working directory is adopted, not duplicated.
  • Focus comes back last: each workspace's active tab, then the focused workspace. In-tab focus is restored by creating the focused pane focused.
  • Verify codex panes whose note says herdr reported no session; their ids are best guesses from matching the working directory against rollout files. If one opens the wrong conversation, run codex resume in that pane and use the picker.
  • claude-rc panes are Remote Control servers, fired like any agent pane. --continue errors if nothing was recorded for the directory in roughly the last 4 hours, which is expected after any reboot you did not come straight back from. The pane is left at a prompt; start a fresh server by hand if wanted.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 1a8edebe60ee
  2. 2mo ago Changed · -31 lines a620a0795e05
  3. 2mo ago Changed · +3 lines · -16 tokens per session 0cbc677b3093
  4. 2mo ago Changed · +6 lines 4a229de49f57
  5. 3mo ago First seen · 59 lines · 70 tokens per session scan A 60eae2a6bc06

Subscribe to this mod's changes

restore is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed 2d ago), licensed Apache-2.0. It adds 54 tokens to every session and 848 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

restore compared with skills from other repositories

restore next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
restoremotlin/claude-code-pluginsSkill202d agoApache-2.0A54Claude Code
orbit-notionnexu-io/open-designSkill111ktodayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill120ktodayMITA30Claude Code, Codex
rowboat-spacesrowboatlabs/rowboatSkill18ktodayApache-2.0A60Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k16d agoMITA184Claude Code
feishuHmbown/CodeWhaleSkill41k5d agoMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex