Repository navigation
Releases
herdr-revive v0.3.1
Changed
- herdr-revive is now licensed under the Apache License 2.0 instead of MIT. Every source file carries
SPDX-FileCopyrightTextandSPDX-License-Identifier: Apache-2.0lines. Releases up to 0.3.0 remain available under MIT. - On the desktop app,
initand the hook's saves now wait at least 5.5 s for a session lock another operation holds, whatevertimeout_msandsettle_msare, so they outlast a save that waits for Claude's record. - The README is now an overview with a benchmark chart; the full reference moved to
docs/GUIDE.md.
Fixed
- On the desktop app (
--host core), a pane running a bareclaudeorcodexno longer fails every save with "agent session metadata did not arrive" (#1). herdr-core reports no agent sessions, so for Claude, Revive now reads Claude Code's own record of the running process (sessions/<pid>.jsonin its profile) and checks that this very process wrote it. Claude writes it up to a few seconds after it starts, so a save waits up to 4 s in all for a young Claude's record. An agent that still cannot be identified, such as a barecodex, is saved without a command, with a warning, and the other panes still save; so is a bareclaudewhose session has no transcript yet in a profile the save cannot reproduce.migrate --to tuifollows: a space with such a pane is now copied, the pane as a shell in its cwd with a warning in the plan, where it used to be skipped as uncapturable.
herdr-revive v0.3.0
Added
herdr-revive migrate --to appcopies a herdr TUI session into Herdr desktop app spaces, and--to tuicopies the app's spaces into a TUI session: workspaces or spaces, tabs and their names, the split layout, each pane's cwd and command, with agents resumed. The source is never changed. It prints a plan (create,skipwith a reason,unchangedwhen an earlier copy still exists) and asks first;--yesapplies,--dry-runonly prints,--jsonprints a report.--sessionpicks the TUI session,--onlythe sources, and--machine Mcopies between another machine's TUI and its app spaces (needs herdr-revive 0.3.0 on M).- Each copy is recorded in
~/.local/state/herdr-revive/migrated.json(and on M for--machine M), so running migrate again, in either direction or from another machine, does not copy the same thing twice. A copy that stops part way stays recorded as a partial copy until its space is closed. - Copied commands start through the user's login shell, so they find programs on the login PATH that herdr-core lacks, and the pane keeps its own shell when the command ends or is stopped with Ctrl-C.
- The app dialog gets a Migrate section: a machine picker and "Copy TUI session here" / "Copy app spaces to TUI", each showing the plan before it copies.
Changed
- Into the app, split sizes are not kept (the app's splits come out even). Into the TUI, the layout is rebuilt with
restore --recreate's journal; mod panes are left out.migrateuses both hosts, so--hostis refused. - herdr-revive started from the dialog also finds
herdr,hcandherdr-appin~/.local/binand~/.cargo/bin.
Fixed
--host core saveand the core relaunch record an idle shell pane's cwd as the folder its shell is in (herdr-core's foreground process), instead of the folder the terminal started in.
Limits
- Overlapping runs on one machine are safe; two machines must not migrate to or from the same machine at the same time. See README, "Moving between the TUI and the app".
Validation
- Linux (Herdr TUI, hc 0.1.21): formatting, Clippy, locked release build, 376 Rust tests, 47 TUI PTY cases (1 skipped), 9 core PTY cases and 17 migrate cases passed. Live in the desktop app: TUI to app (login shell, cwd and revive hook in every pane), re-planning (
unchanged/skip), a pane moved between app spaces, app to TUI round trip, and a--machinecopy into a second Linux machine's app. - macOS 27.2 on Apple Silicon (hc 0.1.20, herdr-app 0.1.15): formatting, Clippy, locked release build, 376 Rust tests, 47 TUI PTY cases, 9 core PTY cases and 17 migrate cases passed.
migratewas not run against the live app on macOS. - The dialog's Migrate section was checked by reading only; it was not run in the app.
Update
TUI plugin:
herdr plugin install cantona/herdr-revive --ref v0.3.0 --yesHerdr desktop app (herdr-core):
cargo install --locked --git https://github.com/cantona/herdr-revive --tag v0.3.0
herdr-revive --host core install --write # dialog mod, key bindings and the bash hookherdr-revive v0.2.0
Added
- Run against the Herdr desktop app (herdr-core) with
--host core: the same capture, policy, snapshots, journal and recovery over a second host. A bash hook saves when an allowlisted program starts or ends in a pane; a lost pane's fresh shell relaunches its program before the first prompt, journaled per pane per core start.REVIVE_AUTO=0in a pane's environment skips its relaunch. New commandsinit bash,install [--write|--remove]andstatus, and a dialog mod undermods/herdr-revive(RECIPE.md,keys.jsonbindingctrl-alt-r). Named spaces andrestore --recreatestay TUI-only;eventon the app only saves.
Changed
- Direct invocations outside the Herdr plugin environment, except
config, now need--host herdr|core(orHERDR_REVIVE_HOST); before, they assumed the TUI host. The plugin manifest and scripts pass--host herdr, so the plugin's actions and events are unchanged.
Fixed
- A pane whose foreground program is protected from inspection (setuid, such as Apple's
toporsudo) no longer fails the whole save. It is saved with the pane's cwd and the program's full command line on Linux; on macOS, the bare program name, or the line the bash hook saw the shell run when it is plain words. A warning names the pane. - A process that exits during the Linux process table scan no longer fails the capture.
Validation
- Linux (Herdr TUI plugin and herdr-core 0.1.19): formatting, Clippy, locked release build, 138 Rust tests, 47 TUI PTY cases (zsh skipped), 9 core PTY cases and 14 real-host cases (1 skipped) passed.
- macOS 27.2 on Apple Silicon (bash 3.2 and 5.3, hc 0.1.18, herdr-app 0.1.13): formatting, Clippy, locked release build, 138 Rust tests, 47 TUI PTY cases and 9 core PTY cases passed; a real
hc server restartrelaunchedbtop,git logandtop -o cpu -s 5in the Herdr desktop app, and the dialog mod was checked in the running app.
Update
TUI plugin:
herdr plugin install cantona/herdr-revive --ref v0.2.0 --yesHerdr desktop app (herdr-core):
cargo install --locked --git https://github.com/cantona/herdr-revive --tag v0.2.0
herdr-revive --host core install --write # adds the hook line to the bash rc fileConfig lives in ~/.config/herdr-revive/config.toml (same keys as the plugin's); the dialog mod is mods/herdr-revive with keys.json.
herdr-revive v0.1.6
Fixed
- Save Claude Code panes that reopened a background session as
claude attach <short id>. Capture now looks the id up inclaude agents --json --all, using the pane'sCLAUDE_CONFIG_DIR,HOMEandPATH, and saves the pane as--resume <uuid>; before, the save failed and the last snapshot went stale. The resolved session takes precedence over Herdr's record, which can name another pane's session because the daemon's hooks report to the pane that started it. An attach that cannot be resolved falls back to Herdr's record when there is one.
Validation
- Linux, Herdr 0.9.3: formatting, Clippy, locked release build, 36 Rust tests, 47 PTY integration cases, 14 real-host cases and 4 OpenSSH cases passed (zsh and one platform-specific case skipped).
- macOS was not re-run for this release.
Update
herdr plugin install cantona/herdr-revive --ref v0.1.6 --yesherdr-revive v0.1.5
Fixed
- Save panes of agents Revive cannot resume as ordinary programs instead of failing the save. A pane reporting an agent such as
annotator(the herdr-file-annotator review pane), opencode or pi no longer blocks autosave; restore runs it only if allowlisted, freshly. Claude, Codex, Gemini, Copilot and Cursor behind an unrecognized launcher still fail capture. - Keep status events of non-resumable agents debounced, so they no longer write a snapshot per status change and rotate retained snapshots out.
Validation
- Linux, Herdr 0.9.3: formatting, Clippy, locked release build, 36 Rust tests, 40 PTY integration cases, 14 real-host cases and 4 OpenSSH cases passed (zsh and one platform-specific case skipped).
- macOS was not re-run for this release.
Update
herdr plugin install cantona/herdr-revive --ref v0.1.5 --yesherdr-revive v0.1.4
Fixed
- Accept every Herdr release from
min_herdr_version(0.9.1) onward. v0.1.3 refused any host other than Herdr 0.9.1 / protocol 22; on Herdr 0.9.3 that check failed startup and lifecycle events, so autosave and the startup restore stopped without a visible error. Herdr enforces the minimum version at install and link time.
Validation
- Linux, Herdr 0.9.3: formatting, Clippy, locked release build, 36 Rust tests, 37 PTY integration cases, 14 real-host cases and 4 OpenSSH cases passed (zsh and one platform-specific case skipped); local installer lifecycle passed.
- macOS was not re-run for this release; the change removes a host-version check and does not touch platform code.
Update
herdr plugin install cantona/herdr-revive --ref v0.1.4 --yesherdr-revive v0.1.3
Fixed
- Preserve exact agent sessions across automatic shell-state saves, including timer and forced autosave. Manual Save at a shell prompt intentionally clears the retained session.
- Retry delayed native metadata, refresh capture after waiting, and preserve the previous snapshot on failure. New detection events with conflicting explicit/native session IDs wait for matching metadata; in-process session switching retains native precedence.
- Keep unchanged queued status events debounced while allowing changed sessions to be captured.
- Preserve untouched bare Claude sessions with their UUID using
--session-id; use--resumeonce a nonempty transcript exists. - Keep
CLAUDE_CONFIG_DIRunset for standard Claude, preserve its captured HOME, and retain explicit profiles such asclaude-local. - Restore saved agents into verified idle shells after restart without interrupting foreground or background work.
Validation and performance
- Latest adversarial review: NO FINDINGS; six confirmed findings fixed.
- macOS: 37 Rust tests, 36 PTY cases, 14 private real-host cases, four OpenSSH cases, and three benchmark-contract cases passed.
- Linux: 35 Rust tests, 35 PTY cases, 13 private real-host cases, four OpenSSH cases, and three benchmark-contract cases passed. Unavailable platform-specific cases were skipped.
- Formatting, Clippy, locked release builds, and disposable installer lifecycle passed. Intel macOS was compile-checked; Intel runtime validation remains outstanding.
- Final 30-sample paired comparison against
b21bc41: 100-pane save medians were 62.27 → 62.02 ms on macOS and 41.18 → 40.60 ms on Linux. Autosave medians were 62.72 → 63.57 ms and 40.77 → 41.64 ms respectively. All corresponding median intervals overlap, but this is not a zero-cost claim: Linux autosave p95 increased from 42.25 to 45.23 ms. Raw samples, earlier diagnostic runs, memory results, and limitations are retained in docs/MACOS.md. - Ordinary debounced events retain zero host requests; direct transport launches no Herdr/process-inspection helper processes. Measurements concern plugin overhead, not end-to-end agent readiness or a universal fastest claim.
Update
herdr plugin install cantona/herdr-revive --ref v0.1.3 --yesCapture a fresh snapshot while the intended agents are running before restarting Herdr. Keep Herdr's native resume_agents_on_restore disabled when Revive handles startup, especially for custom launchers.
Known limitations: untouched bare Codex without an exact session reference remains unsupported. A bare picker with an inherited native ID exposes no process-bound freshness signal; that pre-existing ambiguity cannot safely be resolved by guessing. Older snapshots cannot establish that a missing transcript was an untouched session.
herdr-revive v0.1.2
Fixed
- Preserve exact bare-agent sessions when an agent internally redirects stdout or stderr to
/dev/null, including Codex on macOS. - Accept Git's single plain system-shell wrapper around system
lessormore, preventing an active pager in another pane from blocking atomic autosave. - Continue rejecting shell expansions, operators, pipelines, queued commands, redirected pager output, and malformed null-stream snapshots.
Validated with live bare Codex on macOS and bare Claude/Codex in Linux Herdr workspace 8, full cross-platform regression suites, and randomized before/after performance benchmarks.
herdr-revive 0.1.1 — Linux and macOS prerelease
Native macOS support and faster idle-shell checks for Linux and macOS.
- Native macOS process, exact argv/cwd and launcher-environment capture, terminal validation, OpenSSH output recovery and Apple Git pager support.
- Authenticated macOS server identity and kqueue-based autosave shutdown.
- Separate Linux and macOS adapters; narrow, checked Darwin FFI exceptions.
- Direct child checks avoid repeated whole-host scans. Linux retains its original fallback; newly created panes retry transient metadata reads before sending commands.
Install from source with Herdr 0.9.1 / protocol 22, Rust/Cargo 1.97.1+, Git and a C linker (Xcode Command Line Tools on macOS):
herdr plugin install cantona/herdr-revive --ref v0.1.1Automatic behavior remains off by default. Existing configuration and snapshots do not require migration; follow the configuration and agent startup handoff before enabling automation.
Validation covers native Apple Silicon and Linux x86_64 runtime suites, real OpenSSH and disposable installation lifecycle checks. Intel macOS is compile-checked only. The implementation review found no remaining issues.
Same-host Linux baseline/candidate measurements showed no meaningful save/preview regression. The isolated idle-shell check improved about 212 times (100 checks: 652.09 ms to 3.07 ms); this is not an end-to-end resume speedup. See methodology, raw measurements and platform limits.
This remains a prerelease. Windows, power-cut qualification and full-session rollback observation remain outstanding. Existing-pane restore retains the documented host check/send and shell-prompt readiness limits.
herdr-revive 0.1.0 — Linux prerelease
Initial MIT-licensed Linux prerelease for restoring Herdr commands, layouts and exact agent conversations.
- Retained session snapshots, preview, reusable named workspaces and layout reconstruction.
- Exact resume for Claude, Codex, Gemini, Copilot and Cursor, including configured wrappers such as claude-local.
- Opt-in automatic save/restore, command allowlists and persistent recovery evidence after interrupted mutations.
Install from source with Herdr 0.9.1 / protocol 22, Rust/Cargo 1.97.1+, Git and a C linker:
herdr plugin install cantona/herdr-revive --ref v0.1.0Automatic behavior starts off. Follow the configuration and agent startup handoff before enabling it.
The README comparison covers Herdr built-in, the cantona/herdr-resurrect fork, Revive, and tmux-resurrect with tmux-continuum. In the refreshed 900-launch benchmark, 100-pane save was 40.69 ms versus 363.82 ms, preview 7.43 ms versus 161.65 ms, and save maximum process RSS 5.28 MiB versus 72.57 MiB. See methodology and raw results; these measure warm local operations, not remote readiness.
Validation: whole-repository review, 66 runtime tests, three benchmark parser tests, formatting, Clippy, locked release build and actual GitHub install/failure/reinstall/uninstall checks passed. One documentation comparison claim was corrected; no review findings remain. The interactive annotator MCP was unavailable.
Linux is the validated platform. macOS/Windows, power-cut qualification and full-session rollback observation remain follow-up work. Existing-pane restore inherits Herdr's check/send and shell-prompt readiness limits. See validation.