The sesh command and the Herdr plugin are both thin clients of the sesh SDK. Like the SDK, they live in dough-quiver, not in the dough repo.

Install

You need Node 24 or later, and the destination agent CLI (claude or codex) installed and signed in. The CLI isn’t on npm. Its release is sesh-v0.1.0 in the private techsavvyash/clanker repo, so you need a GitHub account with access:

gh release download sesh-v0.1.0 --repo techsavvyash/clanker --pattern 'techsavvyash-sesh-0.1.0.tgz'
npm install -g ./techsavvyash-sesh-0.1.0.tgz

That release predates the split into SDK and CLI, so the one tarball has both. To build from a dough-quiver checkout instead:

pnpm --filter @techsavvyash/sesh-cli build
cd packages/sesh-cli
pnpm pack
npm install -g ./techsavvyash-sesh-cli-0.1.0.tgz

sesh to

sesh to <harness> [session file] [options]

Converts a session into <harness> (claude, claude-code or codex) and prints how to resume it. With no session file, it takes the most recent session of the other harness in the current directory.

sesh to claude                                   # latest Codex session here, into Claude Code
sesh to codex                                    # latest Claude Code session here, into Codex
sesh to claude /path/to/rollout.jsonl --dry-run  # preview, write nothing
sesh to codex /path/to/session.jsonl --cwd /path/to/project
sesh to codex --list --launch                    # pick a session, then resume it in Codex
OptionWhat it does
--from <harness>The source harness. Defaults to the only other registered harness
--listPick from the discovered sessions. Falls back to every directory if there are none here
--allDon’t limit discovery to the current directory
--turns <n>Keep only the last n turns
--dry-runDo everything except write the session file
--launchAfter writing, resume it in the target harness
--cwd <path>Record this as the destination working directory
--jsonPrint the transfer report as JSON (everything but the native lines, plus written). Can’t be combined with --launch
--allow-incompleteImport missing tool results as explicit placeholders instead of failing
-h, --helpShow help
-V, --versionPrint the version

Shorthands: sesh on its own means sesh to claude, and sesh to-codex and sesh to-claude work too.

The output lists the source file, how many messages became how many lines, any notes, what was dropped, missing tool results, truncation and an estimated size. It warns when the session is large (over about 60k tokens into Claude Code, 100k into Codex) and suggests --turns. Then it prints the path it wrote and the resume command, claude --resume <id> or codex resume <id>.

sesh pull

sesh pull [session file] [options]

Merges the turns a harness added after sesh to back into a copy of the session you handed off. The original isn’t changed. See Pull back for how it finds the original.

OptionWhat it does
--from <harness>The harness to pull from: codex (the default) or claude
--allDon’t limit discovery to the current directory
--merge <mode>raw (the default) keeps the original session byte for byte, reasoning included. canonical re-emits the whole merged session and drops the original’s reasoning
--dry-runDo everything except write the merged file
--launchAfter writing, resume the merged session
-h, --helpShow help
-V, --versionPrint the version

Pull is for merging a branch back once. It doesn’t keep two sessions in sync.

Before you hand off

  • Stop or pause the source agent first. Sesh doesn’t coordinate two live writers.
  • Each sesh to makes a new session, and the source stays as it was. Running it again makes another branch.
  • Workspace files, credentials and permissions aren’t copied. The destination runs with its own account and tools.
  • Read the transcript for anything sensitive before you send it to another provider.

Herdr plugin

herdr-sesh does the handoff from inside Herdr. It calls the SDK directly. It doesn’t scrape the terminal or run the CLI. Its plugin id is sesh.handoff, and it needs Herdr 0.9.3 or later on macOS or Linux, with Claude Code and Codex each signed in.

Install it from the pinned tag in techsavvyash/clanker (you need access to that repo), along with Herdr’s Claude and Codex integrations, which report each pane’s native session id:

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

From a dough-quiver checkout, run pnpm install and pnpm --filter herdr-sesh build, then herdr plugin link "$PWD/plugins/herdr-sesh" instead.

To use it, focus an idle Claude or Codex pane and run Sesh: continue in Claude / Codex (herdr plugin action invoke sesh.handoff.continue), or bind it to a key:

[[keys.command]]
key = "ctrl+alt+s"
type = "plugin_action"
command = "sesh.handoff.continue"
description = "Sesh: switch agent"
  1. The overlay finds the pane’s native session and working directory, checks the target is available, and previews the conversion without writing anything.
  2. You confirm, and it exits the source agent with Ctrl+C, then waits for the shell.
  3. You review the transfer notes and what was left out, and confirm.
  4. The target starts in a new tab with its own resume command.

The source session and tab stay as they were. A pane with no native session id, an agent that’s still working, or a session it can’t match exactly makes it stop, never guess. It only works on the machine that holds the transcripts.