Skip to content

Resume Claude sessions after a lost terminal

Mod by matright

Resumes a Claude Code session in a terminal when its root shell is recovered after a loss.

Sessions & history0 starsupdated today
Screenshot of Resume Claude sessions after a lost terminal

What it does

When herdr-core recovers a kept terminal, the original Claude Code program does not run again. This mod stores each terminal's Claude session in its labels, and after recovery types claude --resume into the new shell. A status item and a popup let you see and trigger the resume.

It keeps state in terminal labels and runs a sync loop every few seconds. A setting turns automatic resume on or off. Needs Claude Code installed and sessions written to the usual folder.

When herdr-core recovers a kept terminal (reboot, logout, core crash, its root process killed), it starts a login shell in the terminal's last folder with the same address, the same createdms and the same labels, but a new root pid; the original program never runs again. Build a mod that remembers the Claude Code session in each Herdr terminal and resumes it in the recovered shell, with a status item (status bar or sidebar) and a popup.

From the author's RECIPE.md

Good for

Works with

Needs

Claude Code

More from matright/herdr-mods

2 other entries in the same repository.

Close, confirmed

by matright

Asks before cmd-w closes a tab and before cmd-q quits Herdr, with a don't-ask-again option.

Navigation & shortcutsKeyboard shortcuts0today

Files, open with

by matright

Adds a right-click menu to file rows for opening, revealing and copying the path.

Files, notes & editors0today

Similar mods

Same job, overlapping tags and integrations.

All of Sessions & history

herdr-agent-resume

by jim19950427

Re-types each Claude Code and Codex resume command into a pane whose program was lost.

Sessions & history010 days ago

Agent Resume

by dougcunha

Types each lost agent's resume command into its replacement shell after a reboot or restart.

Sessions & history137 days ago

Herdr Migration

by CiprianSpiridon

Walks you through moving classic Herdr workspaces and resuming their conversations in the desktop app.

Sessions & historyKeyboard shortcuts41 mo ago

Claude tab name

by iml885203

Keeps a tab and its Claude Code session under the same name, with F2 to rename both at once.

Sessions & historyKeyboard shortcuts226 days ago

herdr-import

by arhen

Imports Herdr TUI spaces and tabs into Herdr, resuming each agent's conversation in place.

Sessions & history21 mo ago

Reopen closed tab

by mustafaTokmak

Brings back the last closed tab with its folders, names and agent sessions.

Sessions & historyKeyboard shortcuts21 mo ago

Agent Revive

by Dot-Fun

Counts agents saved for a restart and resumes them in their terminals after a reboot.

Sessions & history1today

Agent Revive

by speardragon

Offers to resume lost Claude Code sessions in their terminals after a core restart or reboot.

Sessions & history13 days ago