Fork a Claude Code session to another agent with Git worktrees
sduras1 · reddit · 2026-07-20
The author open-sourced forklane, a tool for forking a live Claude Code session to another CLI agent such as Codex inside a Git worktree.
What it does
- Generates a concise HANDOFF.md instead of dumping a huge transcript.
- Creates a dedicated Git worktree and launches the second agent there.
- Lets you assign a narrow role to the fork, such as only owning tests.
- Syncs your ongoing commits into the fork and shows overlap reports when both sides touch the same files.
- Returns work as a reviewable branch with RETURN.md; nothing is auto-merged.
Extra features
It also works as a tmux-based workspace dashboard for managing projects and agent sessions, resuming old sessions, and plugging in different provider CLIs without changing the code.
It is a single-file Python project, standard-library only, MIT licensed, and currently at v0.1.0.
More from coding & agent
- A better path to agent autonomy is running waves, finding friction, and iterating — JnBrymn · 2026-07-22
- Coding agents are heading toward an AI-writes, AI-reviews, human-approves workflow — aftahi_ai · 2026-07-22
- oMLX 0.5.2 adds Mac menu-bar stats, low-bit decode kernels, and faster downloads — awnihannun · 2026-07-22
- GitHub review bot hits its PR limit and forces a 39-minute cooldown — DanielLockyer · 2026-07-22
- Max reasoning effort appears to be mobile-only in Codex Remote, not desktop — GabGarrett · 2026-07-22
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22