Worktrees
Two agents in one checkout end up editing the same files. A git worktree gives each agent a checkout of its own branch while sharing one repository. Cortland creates the worktree and opens a pane in it in one step.
Open a worktree
Section titled “Open a worktree”From the Worktrees panel, open a branch as a worktree in a new pane, and optionally start an agent in it.
Cortland creates the worktree, or reuses an existing one, in a sibling directory:
~/Repos/app/ your main checkout, untouched~/Repos/app.worktrees/login/ branch "login"~/Repos/app.worktrees/billing/ branch "billing"Agents and scripts can do the same from the command line:
cortland-ctl pane split "$CORTLAND_PANE_ID" --worktree feature/login --no-focus --exec claudeTrack and land it
Section titled “Track and land it”The Worktrees panel shows each worktree’s branch, the agent working in it, and its changes. Changes vs main in the Git panel opens the branch diff in the changes pane.
Merging from the panel stages everything, commits with a drafted message, merges, shows progress and the result, and then offers to remove the worktree.
cortland-ctl worktree listcortland-ctl worktree remove feature/logincortland-ctl worktree prune