Adding a root
- Add Folder to Workspace — the
+button at the top of the file tree next to New File/New Folder lets you attach any folder on disk as an additional root. It appears as its own collapsible section immediately, no reload needed. - Create a worktree — see below. A new worktree attaches to the workspace the same way, automatically.
- Every additional root is remembered per-project and reattaches automatically the next time you open it.
Git worktrees
A git worktree is a second working copy of the same repository, checked out on its own branch, in its own folder — so you can work a feature branch without touching the files you already have open, or run something onmain while a fix is in progress elsewhere.
Creating a worktree
Press Cmd+Shift+U from anywhere, or open the Git panel on a repo and find the Worktrees section below the branch banners and click the+ icon — both open the same Create worktree dialog:
- Pick or create a branch (checking the “New branch” box creates one fresh, optionally from a chosen starting point)
- Confirm or edit the location — defaults to a sibling folder next to your repo, e.g.
my-repo-feature-x, but you can type your own path or use Browse… to pick a different parent folder - Click Create worktree
Managing worktrees
- The Worktrees section lists every worktree for that repo (except the repo’s own main checkout)
- Click the ✕ next to one and click again to confirm — this detaches it from the workspace and runs
git worktree remove - The refresh icon runs
git worktree prune, cleaning up worktree entries whose folders were deleted outside the app
From AI chat
You can also ask the AI agent to create a worktree for you — it has acreate_worktree tool and will pick a sensible branch name and location, or use ones you specify. This is a good way to run more than one chat session in parallel, each working its own branch without stepping on the other’s files.
Terminals
New terminals open rooted in whichever workspace root is focused. Each root’s file tree section also has its own New Terminal Here button, so you can open a shell directly in a worktree or added folder regardless of what’s currently focused. When more than one root is open, terminal tabs show a small badge naming which root they belong to.Git status per root
The Git panel and the file tree’s dirty-file badges track every repo across every open root — not just the primary one. Adding or removing a root refreshes the repo list automatically.Worktrees need a git repository. Creating one requires the currently open project (or the repo you’re viewing in the Git panel) to already be a repo.