Skip to content

Fork Session

Mod by daniel7an

Adds a pane header button and right-click menu that copy a command to fork the Claude Code or Codex session.

Screenshot of Fork Session

What it does

A pane header for each Claude Code or Codex pane gets a git-branch fork button, shown when the pane's header is hovered. Right-clicking the header opens a small popup with a Copy fork command row that shows the session ID. A toast reports whether the command was copied.

Clicking the fork button or the popup row copies a command such as cd into the project folder and claude --resume with --fork-session to the clipboard. Paste it into any terminal to start a new session with the same history. Needs a layout whose pane header points at the fork-session mod; Codex lookups need sqlite3; runs on macOS and Linux only.

Fork Session is a pane header for Herdr that forks the agent session running in a pane. Hover over a Claude Code or Codex pane's header and click the branch icon, or right-click the header and choose Copy fork command. Herdr copies a command such as cd '/path/to/project' && claude --resume <id> --fork-session and shows it in a toast. Paste it into any terminal to start a new session that has the same conversation history.

From the author's RECIPE.md

Good for

Needs

sqlite3 (Codex lookups)wl-copy, xclip or xsel (Linux)

Similar mods

Same job, overlapping tags and integrations.

All of Sessions & history

Mission Control Reopen

by CiprianSpiridon

Shows a bottom bar that reopens the last closed tab or agent, with a list of recent closes.

Sessions & history917 days ago

Suspender

by fakie-dev

Puts a Claude Code or Codex session to sleep to free memory and resumes it in the same tab.

Sessions & historyKeyboard shortcuts313 days ago

Herdr Resume

by jankeesvw

Adds a Resume button to the pane header that restarts a terminal's last Claude Code or Codex session.

Sessions & history19 days ago

herdr-agent-resume

by jim19950427

Re-types each Claude Code and Codex resume command into a pane whose program was lost.

Sessions & history09 days ago

Agents with IDs

by DarkoKuzmanovic

Adds agent address and session ID under each agent, plus a Recent sessions list with Resume buttons.

Sessions & history010 days ago

Auto-rename

by zee-sh

Names tabs and pane headers after each agent's session name, such as a Claude Code /rename.

Sessions & history024 days ago

Where was I?

by slogonomo

Shows the last agent run in a terminal in its pane header and resumes it with one click.

Sessions & history029 days ago

herdr-chat

by ChmaraX

Replaces Pi, Claude Code and Codex terminal UIs with a native chat view in a Herdr tab.

Sessions & history403 days ago