Skip to content

Sesh inside Herdr ​

Switch between Claude Code and Codex from a Herdr plugin, preserving supported conversation history in the target's native TUI. The plugin uses the Sesh SDK; Herdr continues to own the terminals and agent processes. No Dough account or model call is required for conversion.

What the demo proves ​

Claude creates an Express notes API and two tests, leaving a validation rule only in the conversation. Sesh carries that history into Codex, which implements the deferred HTTP 422 / title_required rule and adds a third passing test. The reverse transfer opens Claude with Codex's history visible. Without reading files or using tools, Claude recalls the rule, who implemented it and the test result.

This is a real local recording, not simulated agent output. The final cut uses two sequential VHS captures of the same project and session lineage. Waiting, development retries, first-run setup and model-selection troubleshooting are trimmed; accelerated segments are labeled. No separate test result is substituted for the agents' work. The final three tests were also independently rerun.

Install the private preview ​

Requires Herdr 0.9.3+, Node 24+, npm, Git, GitHub CLI, and independently authenticated Claude Code and Codex. Clanker is a private repository: your GitHub account must have access to techsavvyash/clanker. Ask the repository owner for access; a docs link alone does not grant it.

sh
gh auth login
gh auth setup-git
herdr plugin install techsavvyash/clanker/plugins/herdr-sesh --ref herdr-sesh-v0.1.0
herdr integration install claude
herdr integration install codex
herdr plugin list

Confirm Herdr's installation preview after reviewing the build commands, and review native hooks when the agent asks. Herdr plugins execute as your user; install only code you trust. The installer builds and bundles the SDK directly, so you do not need to install the Sesh CLI. The pinned plugin includes the visible history support shown in this demo, independently of the older Sesh CLI release.

herdr plugin list should show sesh.handoff enabled. Restart or resume existing Claude/Codex sessions after installing the integrations so Herdr receives their native session IDs. Launch Herdr with Node and both agent CLIs on its PATH.

Focus your source agent and invoke Sesh: continue in Claude / Codex. A keybinding or herdr plugin action invoke sesh.handoff.continue opens the same overlay. The checkout's plugins/herdr-sesh/README.md includes the keybinding and recovery behavior.

For a shortcut, add this to your Herdr config:

toml
[[keys.command]]
key = "ctrl+alt+s"
type = "plugin_action"
command = "sesh.handoff.continue"
description = "Sesh: switch agent"

Installation troubleshooting ​

  • Repository not found: verify gh repo view techsavvyash/clanker succeeds, then run gh auth setup-git to let Herdr's Git fetch use that account.
  • Node or agent executable missing: install the prerequisite and restart Herdr from a shell where node, claude, and codex are available.
  • No native session reference: install the matching Herdr integration, then resume the source agent before invoking Sesh again.
  • Agent working or awaiting approval: complete that work first. An unknown state requires explicit confirmation that the agent is idle.
  • Target asks for trust, login, or a supported model: handle the native prompt yourself; the plugin does not bypass it.

For local development, clone the full repository at herdr-sesh-v0.1.0, run npm ci && npm test in plugins/herdr-sesh, then herdr plugin link "$PWD". Do not copy only the plugin directory: its build imports packages/sesh.

Transfer behavior ​

The plugin selects the exact native session, never the newest transcript by guess. You confirm source exit, review the conversion report and then confirm target creation. The source must return to its shell before the target starts. Original transcripts remain available; target authentication and permissions remain independent. No past tools are executed during import.

An unknown Herdr screen state requires explicit confirmation that the source is at its prompt with no work pending. Working or blocked sources are refused. Target startup approvals remain visible for you to handle, not auto-approved.

Tested environment and limitations ​

Live verification used macOS arm64, Herdr 0.9.3, Claude Code 2.1.289 and Codex 0.153.4. Codex used gpt-5.6-sol; its locally configured default model was rejected for this account, so the demo resumed the same transferred session with an explicit supported model. The plugin does not silently change models or billing modes. Unrelated untrusted hooks were not approved.

Claude → Codex prepared 11 messages. Codex → Claude prepared 41 messages and reported seven redacted reasoning records and seven empty assistant records omitted. Claude displayed a foreign-model-name notice on resume and used its own model; that does not imply model-state portability.

This is same-machine continuation, not cloud handoff, workdir synchronization or an execution lease. Do not manually restart the stopped source while the target is modifying the same files. Linux is an intended plugin platform but was not live-tested here; Windows is not declared supported.

Download the recording