Command Palette

Search for a command to run...

Назад к скиллам
скилл № 84024

bip-conductor-prepare-reboot

Quiesce the whole tmux host before a PLANNED reboot — ask every Claude session by message to tuck in and report whether it can be paused, resolve each Claude…

БесплатноБез исполняемых скриптов
matsenот matsen★ 35 звёзд на GitHub

Установить bip-conductor-prepare-reboot в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/bip-conductor-prepare-reboot

/bip-conductor-recover reconstructs a killed fleet after an unplanned reboot by scanning ~/.claude/projects/*/<id>.jsonl and inferring which sessions were live from file mtimes. That inference is lossy: mtime is last activity, not "window was open", and it cannot tell which of several concurrent sessions in one cwd were on screen.

When the reboot is planned, we can do better: capture ground truth while tmux is still alive. This skill walks every pane on every tmux server on the host in one run, resolves each Claude window's current session_id from the live process, and writes a host-wide manifest. Before the manifest, the skill asks every Claude session by message to persist its state and say whether it can be paused. bip-conductor-recover then replays that manifest after the reboot — rebuilding every session by its real name, windows in order, each Claude window resumed to the right id — instead of guessing.

The deterministic engine is the bundled epic-prepare-reboot shell helper; this skill is the brain that runs it, sanity-checks the resolved table with the user, and triggers the manifest write / shutdown. Run it on the box about to reboot — that is where tmux, the jsonl files, and the clones live.

Usage

/bip-conductor-prepare-reboot [--shutdown]

Run it once, host-wide, before the reboot. There is no project argument — the manifest spans the entire tmux host, not one epic project.

The bundled helper

This skill ships the epic-prepare-reboot helper next to SKILL.md — no separate install. At the start of the run, set HELPER to its absolute path (this skill's base directory, given at invocation, + /epic-prepare-reboot) and use "$HELPER" in every command below:

HELPER="<this-skill-dir>/epic-prepare-reboot"

It needs tmux, jq, bash ≥ 4, and a GNU date (or gdate): it runs on Linux out of the box, and on macOS with brew install coreutils bash. Session-id resolution reads Linux /proc first and falls back to ps (so it is fully functional on macOS too, just second-resolution start times). It exits 2 with guidance if a prerequisite is missing.

Workflow

Step 1: Dry-run and review the resolved table

Always look before you write. --dry-run walks every pane, resolves each window, and prints the table without writing or shutting anything down:

"$HELPER" --dry-run

Each row shows SESSION IDX WINDOW METHOD CONF SESSION_ID/CWD. The resolution method per Claude window, in priority order:

  • registry (high) — ~/.claude/sessions/<pid>.json, which Claude Code keeps current for each live process. The only method that follows /clear: after one, the cmdline and start time still point at the pre-clear conversation.
  • cmdline (high) — --resume <id> was in the Claude process args.
  • starttime (medium) — a fresh session (launched without --resume) carries no id in its cmdline, so the helper correlates the Claude process start time with the cwd's jsonl that began closest. Handles fresh windows, including two fresh windows in one cwd.
  • newest (low) — last resort: the newest jsonl for the cwd.
  • shell (none) — no Claude descendant; a bare shell or editor. Recorded with its cwd so the layout returns, recreated as a plain window.

When start-time correlation finds two jsonls that fit a fresh process nearly equally (within a few seconds), the window is flagged ambiguous and both candidate ids are recorded — recover will ask rather than guess.

Present a short summary to the user: how many sessions/windows, how many Claude windows resolved by each method, and call out any ambiguous rows by name. Also relay the closing list of live Claude sessions that no reachable pane holds — claude --bg sessions, or panes on a tmux server whose socket was unlinked. They are not in the manifest; their ids are, so the user can --resume them by hand. This is the moment to catch a misresolved window before it goes in the manifest.

Step 2: Ask every session to pause

SendMessage every ListAgents peer (not this session) the same message, filling in the reboot time:

Planned reboot of at ; your conversation will be resumed afterwards. Start no new long local work. Run /bip-tuckin (not /bip-cycle, and don't /clear). Then reply READY, or NOT READY: <what would be lost> | <when it will be safe>.

What a reboot loses is local: background shells, monitors, and session-scoped crons; builds or runs on this host; a half-done rebase or land. Jobs on other hosts survive, so a session waiting on a remote job is READY.

Replies arrive as messages. Keep a table of every peer, marked READY, NOT READY (with its reason), or silent. A silent session is not ready: a session in another permission mode holds peer messages until its user approves them. Show the user the table, and re-ask a NOT READY session once its stated time pa

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read

Вложенные файлы

  • epic-prepare-reboot

FAQ

Что делает скилл bip-conductor-prepare-reboot?

Quiesce the whole tmux host before a PLANNED reboot — ask every Claude session by message to tuck in and report whether it can be paused, resolve each Claude pane's exact session id, and write a manifest so bip-conductor-recover can rebuild the workspace deterministically. Use when you know a reboot is coming and want a clean, lossless restart.

Как установить скилл bip-conductor-prepare-reboot?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bip-conductor-prepare-reboot запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bip-conductor-prepare-reboot с