I run my coding agents in Herdr, and herdr-wake is the small tool I wrote to bring them back after a reboot. Version 0.2.0 adds herdr-wake resurrect: a list of the sessions I closed or lost, each with a one-line summary, and a way to reopen one in a new terminal (a new tab, in the panel). On my Mac the first listing showed 140 closed sessions from weeks of work.
It comes with a side panel for the Herdr desktop app, so bringing a session back is a click.

The idea and the panel's look come from herdr-sessions, an MIT-licensed mod by inlet. It showed me how useful a list of closed sessions is once it sits next to the tabs. herdr-wake already recorded each session so it could resume it after a reboot, so I built the same idea into that record and added more agents, more machines and the safety checks a wake already runs.
Install
To install or upgrade:
curl -fsSL https://github.com/Heretikio/herdr-wake/releases/latest/download/install.sh | sh
herdr-wake doctorThe panel is a mod folder in the repo. From a checkout:
cp -R mods/herdr-wake-sessions ~/.config/herdr-app/mods/
herdr-app check ~/.config/herdr-app/mods/herdr-wake-sessionsAfter that you clone the tab bar and add the panel to your layout. Those steps are in the README section The Sessions panel.
Where the list comes from
herdr-wake now keeps a small private journal file per session: the folder, the flags, when it started and ended, and how it ended (quit, killed and so on).
Sessions from before the install, or run outside Herdr, are read from the agents' own files: Claude Code and Codex transcripts, Pi's session files, and OpenCode's database, which is read through sqlite3 in read-only mode. That is why the list was full on day one. Of my 140 sessions, 92 were Claude Code, 26 OpenCode, 16 Pi and 6 Codex, and most came from the agents' files, since the journal was a few days old.

A summary on each row
A list of 140 session titles is hard to scan, so each row leads with what the session was about: the first sentence of a short summary.
The summaries come from the local claude -p, on Claude Haiku at low effort, with no tools, settings or MCP servers. Each one is saved until its session changes. When Claude Code already wrote its own recap and nothing came after it, that is used as it is. The panel makes summaries in the background for the newest sessions. They cost a little Claude usage, and this line in ~/.config/herdr-wake/config.toml turns them off:
summaries = falseOpening a session shows its facts: branch, duration, cost at API rates, lines added and removed, models, pull requests and how it ended. A yellow dot in the list marks a session that stopped mid-work.

Resume
Resume opens a new tab in the session's folder and resumes the agent there, with the flags herdr-wake recorded. For sessions read from an agent's own files less is known: Claude Code's permission mode is rebuilt from the transcript, and the other agents come back without extra flags.
Before anything starts, resume runs the same checks as a wake after a reboot. The folder exists and is safe, the program is safe, the agent's session file is still there, and the session is not running somewhere else. A running session is left out of the list, and a second start of the same session is refused with "that session is running now".
Permission-bypass flags are replayed, because you asked for this session by hand. restore_bypass = false drops them. Fork, for Claude Code, resumes the session as a copy.
The list shows flag names without their values (except the permission mode, model, sandbox and approval settings), and a title that looks like a credential is hidden.

More than one machine
The panel asks each machine Herdr knows for its closed sessions, in parallel, with 15 seconds for each. A machine picker filters the list, and Resume opens the tab on the session's own machine. A machine that does not have 0.2.0 yet shows the reason in the picker, and the rest of the list loads as usual.
From the command line
The panel calls the same command you can run yourself:
herdr-wake resurrect # a numbered table
herdr-wake resurrect 1 # open row 1 in a new terminal
herdr-wake resurrect 1 --print # print the command insteadThere are also --fork and --json. It works over SSH or from a phone, since all it needs is herdr-core's hc.
What I tested
On an Apple silicon Mac with macOS 27.2, the panel's resume path brought back a real Claude Code session, with its conversation, in a new tab. A second launch of the same session was refused. The panel showed that Mac's sessions with their summaries and details, and my other machines, still on the previous version, appeared in the picker with the reason they gave no list.
Caveats
Claude Code deletes transcripts after 30 days by default (cleanupPeriodDays), and a session without its transcript cannot be resumed. Such a row says transcript gone, and herdr-wake doctor shows the current setting.
Not run for this release: the reboot tests, resurrect with real agents on Linux (the test suites run there in CI), and resuming another machine's session through the panel, which I tested with a stand-in. Other machines need 0.2.0 for their sessions to show. herdr-core has no stable API for this, so run herdr-wake doctor after a core update.
Verdict
resurrect does what I wanted on my Mac: a closed session is a click away, and the list reads as a short account of weeks of work. I did not expect that much history to be sitting in the agents' own files already, waiting to be listed.
It is early, and the recorded tests so far are on one Mac. Next I would like full-text search inside conversations, a shortcut to reopen the last closed tab, and a way to put idle agents to sleep.
Sources
- herdr-wake: github.com/Heretikio/herdr-wake and the 0.2.0 release
- herdr-sessions by inlet: github.com/inlet/herdr-sessions
- Herdr: herdr.dev
- Earlier post: herdr-wake: a Small Rust Tool That Resumes Coding Agents in Herdr After a Reboot
Comments
// Comments are reviewed before appearing. No spam. No noise.