Part 1
Worktrees and panes
A worktree is a second checkout of the same repository on its own branch, in its own folder, so 4 sessions can edit files without touching each other's.
Study first
git worktree add,list,removeandprune. Worktrees share one object store; only the working files are separate.- Ghostty: one tab for the project, one split per worktree; zoom to fill the tab with one split, and the bell mark on a tab when an agent in an unfocused split needs attention.
- Claude Code's
/compact, and when a fresh session beats a long one.
Build
- One worktree per ticket, from
main:git worktree add ../workbot-wb-12 -b wb-12 main, and the same for WB-13, WB-14 and WB-15.pnpm installin each;node_modulesis per worktree. - A Ghostty tab with 4 splits, a Claude Code session in each, started inside its worktree.
- Start each session with the same brief: the ticket id, its acceptance criteria, pasted or read through the Linear MCP server, the branch name, and the instruction to run
pnpm checkand open the pull request when done. - Watch the bells. When a session asks for a decision, answer it; when its context fills,
/compact.
Done when
git worktree listshows 4 worktrees on 4 branches, and each pane has a session working in one of them.
Technical notes
- The pnpm store is shared, so an install in a new worktree writes links, not packages.
.env.localand.nextare per worktree too. Copy the env file; Next.js recreates.nexton the next build or dev run.- Two dev servers cannot share port 3000:
pnpm dev --port 3002in the second worktree, and so on.




