I run my coding agents in Herdr, several per machine, and reach them from the desktop and phone apps, which both talk to herdr-core. After a reboot, herdr-core brought the terminals back as empty shells, so I wrote herdr-wake: a single Rust binary of 2 to 3 MB that starts herdr-core at boot and resumes each agent session in the same terminal and folder, with the flags it was started with.
It is MIT licensed, built for macOS and Linux, and has adapters for Claude Code, Codex, Pi and OpenCode. One caveat: the real reboot tests so far cover Claude Code.
curl -fsSL https://github.com/Heretikio/herdr-wake/releases/latest/download/install.sh | shThen run herdr-wake doctor, which checks the setup and prints a fix for anything off. It needs herdr-core 0.1.16 or newer.

Where it fits next to herdr-core
The Herdr TUI resumes agents by itself, but it does not share sessions with herdr-core, and the phone app needs core. A request to restore agent sessions in core (herdr-core #13) was closed as not planned. The open discussion is herdr-core #15, about carrying a resume reference in core itself. I see herdr-wake as a companion to core: if core starts carrying that reference, herdr-wake will read it from there and drop its own hooks.
Others built agent resume for Herdr before me, and herdr-wake borrows from them. herdr-recover had the idea of installing as core's shell, so resume works with no app open. herdr-revive gave me the doctor command and backups before each edit. herdr-agent-resume gave me adopt and the watcher that forgets a session you quit. The TUI's own resume set the shape of the resume commands.
These tools resume agents once something has started core. I did not find one that starts core at boot, and most READMEs say a real reboot had not been tried.
Record, forget, wake
Record. While the machine is up, each agent's hook or plugin calls herdr-wake, which stores the session id, folder and launch flags as a label on that herdr-core terminal.
Forget. When an agent exits and its shell is still alive a moment later, that was a quit, and the record is marked ended. If the machine is going down, the record stays.
Wake. A boot service (a systemd user service on Linux, a launchd job on a Mac) starts herdr-core. Core recreates its kept terminals, and this is the part I like: core has a shell setting, the program it starts in a recovered terminal, and herdr-wake registers itself there. So core launches herdr-wake in each terminal. It reads the record, resumes the agent, and hands over to your normal shell when the agent exits or anything goes wrong.
That makes it independent of your shell and of any app being open. Starts are staggered, so several sessions do not race for the same login token.
What the reboot tests found
I rebooted a Fedora desktop and an Apple silicon Mac with sessions running and nobody at the keyboard.
On Fedora, the boot service started herdr-core before anyone logged in. With a stand-in agent, the first session was back about 21 seconds after boot with nobody connected. A second reboot started a real Claude Code session, which then waited at a trust prompt (below).
The Mac sat at its login screen with auto-login off, where the default service waits for a login. The first connection (the Herdr desktop app on another machine) started core, and two real Claude Code sessions were back within 4 seconds of it.
An interactive zsh ignores SIGTERM, so during a shutdown the shell can outlive the agent, which looks like a quit. herdr-wake now checks for a shutdown in progress before it marks a session ended, and the reboots confirmed that running sessions were kept.
The Fedora desktop's hardware clock runs 130 seconds fast, so the system clock stepped backwards during boot, after herdr-wake had started. The stagger compared wall-clock times, and one agent waited longer than it should have. Timing now uses a monotonic clock, and the next reboot kept its spacing through the same step. I did not expect a boot to move time backwards under a running program.

The first end-to-end run turned up bugs between modules that each passed their own tests. One recorded node as the program instead of the agent.
Claude Code asks whether you trust a folder, and for the home folder it asks each time. My resumed home-folder session waited at that prompt, conversation intact once I answered. A session in a project folder on the Mac came back with no prompt. I have not yet tested a folder I trusted explicitly, but the tip stands: keep agent sessions in trusted project folders, not the home folder.
Terminals created from the command line resume, but the Herdr desktop app does not draw them. The phone app lists them.
Security
herdr-wake restarts agents with nobody watching, and by default it restores the flags they had, permission-bypass flags included. If you do not want that, put this in ~/.config/herdr-wake/config.toml:
restore_bypass = falseIt covers command-line flags, not what an agent's own config files allow.
Before the fixes, a separate security audit of the source, with a second reviewer checking each claim, found no critical or high issues and a handful of medium ones. One of them shaped the design: the record is a label, and a label can be written by anything that reaches the core socket, which includes any process running as you. So herdr-wake keeps a private copy of each record and resumes a session when the label matches that copy. A mismatch gets a plain shell and shows as untrusted in herdr-wake status.
A resumed agent also reloads its folder's hooks and MCP servers, so herdr-wake records and resumes in folders that are yours alone: owned by you and not writable by others. The fixes have automated tests, and the build with them went through real reboots. I have not tried them with a second user account or a sudo install, and no outside party has reviewed them.

How it was built
I built it in one long session with my coding assistant. It started with a design interview, then research agents reading the issue threads and the community tools' source. A throwaway prototype against an isolated herdr-core confirmed the shell mechanism. The plan fixed the shared interfaces first, then several agents built the modules in parallel. After that came an integration pass, the security audit, and the real reboots, which found things the earlier steps did not.
Where it stands
herdr-wake does what I wanted for Claude Code on my machines. It is early: I am not calling any agent and OS pair "supported" until it passes the full reboot test described in the repo. herdr-core ships updates often and has no stable API for this, so run herdr-wake doctor after a herdr-core update.
Next on the list: Windows, real tests with Codex, Pi and OpenCode, a confirmed reboot where the phone app connects first, and --before-login on a Mac, which starts core before anyone logs in.
Comments
// Comments are reviewed before appearing. No spam. No noise.