Git and worktrees
Commit, sync and review, and give each agent its own branch.
Git at a glance
Each project in the sidebar shows its current branch and how many lines have changed. The Commit button in the header opens the git actions: commit, sync with main, review a pull request with an agent, and more. Commit, Push and Create PR open the Changes view, where you check the diff before you confirm.
Worktrees: one branch per agent
When two agents work on the same project at once, they can get in each other’s way. A worktree gives an agent its own copy of the project on its own branch, without touching your main folder.
- From a new chat: the bar above its message box says where it will run. Click the “where” part and choose New worktree (or an Existing one). The worktree is made when you send the first message, on a branch named after it.
- From the sidebar: click Add Worktree on the project’s header.
Worktree sessions show under their project, with the worktree’s branch after their title. Right-click one for Rename Worktree and Delete Worktree. When the work is done, merge the worktree back and delete it.
Coordinators give their threads worktrees when they work in parallel, and Automations can run in a fresh worktree each time.