Projects, branches and worktrees
Point the agent at a folder, choose the branch it works on, and use a worktree to keep its changes off your own checkout.
A project is a folder on your computer where the agent reads, edits, and runs commands.
Choose a project and branch
Pick a project
Click Work in a Project in the composer and choose a project, or New Project to add a folder.
Choose a branch
In a Git repository, click the branch control beside the project name to pick a branch or type a new name to create one.
Default working directory under Settings → General skips the first step for new chats.
Work in a worktree
A worktree is a separate copy of your repository on its own branch, so the agent's changes never touch your own checkout.
Turn on New Worktree
Open the branch control and turn on New Worktree.
Pick the base branch
Choose the branch to start from, then send your first message.
Review in place
The Files, Terminal, and Changes tabs follow the worktree.
Open a pull request from the Changes tab when you are done. See Review changes.