DocsAgents
Worktrees and parallel agents
Give each agent its own Git worktree and branch, set new worktrees up on their own, review what each agent changed, and clean up.

Two agents in one checkout edit the same files. A Git worktree gives each one its own folder on its own branch, sharing one repository. In Tenslo Code a worktree is where an agent runs: its terminals, agents and browser pages stay with it, and they keep running while you work in another one.
Create a worktree
Press ⌘N on a Mac or Ctrl+Shift+N on Windows and Linux, or choose New worktree in the Overview or in Go to anything. The popover asks for:
- A branch name. It is lowercased, other characters become
-, and it is cut to 40 characters; the popover shows the result. An existing branch that is checked out nowhere can be used as it is. - From: the base branch, local or remote. It starts on the base you used last. The app fetches the base from
originfirst, so the branch starts from the latest shared code. - Then start: an agent, a shell, or nothing.
Type a pull request's number instead of a name to open that pull request's branch in a worktree. A repository needs at least one commit before it can have worktrees, and a plain folder project has none.
New worktrees go to ~/TensloCode/worktrees/<project>/<branch> on a Mac and Linux, and C:/Users/<you>/tenslo/worktrees on Windows. Search Settings for Worktrees to move them; the folder is set per computer.
Set new worktrees up on their own
A new worktree holds only tracked files: no .env, no installed dependencies. Two fields of tenslo-code.json fix that:
worktreeCopylists untracked files to copy from the main checkout, such as.env.local. Missing files are skipped, and paths outside the repository are ignored.setupis a command that runs in each new worktree, in a terminal tab named Setup. It never runs unasked: the first time, the app shows the command and asks to run it, and asks again whenever the command changes.
Submodules are checked out in each new worktree before its first terminal opens.
Run agents in parallel
Start an agent in each worktree. The sidebar shows every project with its agents and their most urgent state, and Needs attention gathers each session waiting on you, wherever it runs. The project's Overview lists all its agents across worktrees and machines, each labelled with the branch it works on, so you see them without switching.
Switching worktrees or projects never stops anything. Terminals, agents and dev servers keep running, and they also survive an app update. Go to anything (⌘P or Ctrl+Shift+P) finds any session, worktree, file, symbol or action.
Review what changed
The Changes panel lists staged and unstaged files with Stage, Unstage and Stage all, and can write the commit message for you. Its picker narrows the list to one agent session: each file that session edited shows its diff against the text from before the session first touched it. History, below it, shows the commits with their graph.
Commit has a menu with Commit & push and Commit, push & create PR; the pull request's title and body are drafted from the commits and the diff, using the repository's template when there is one. Pull requests run through gh for GitHub and glab for GitLab, signed in on the project's machine; Settings › Source control shows whether they are.
- An open pull request shows its checks, with Fix checks and Resolve conflicts, which hand the work to the agent, and Merge by squash, merge commit or rebase.
- Comment on any line of a diff. The bar above the diff adds your comments to the running agent, or copies them when none is running; with a GitHub pull request open, Add to review puts a comment in a review. Comments that are not sent are not kept after a restart.
Delete a worktree
Deleting asks first and says what would be lost: uncommitted changes and the sessions that would end. Also delete the branch is off by default; ticked, the dialog counts the branch's commits that are not in its base, or says it was merged. When something would be lost, the button reads Delete anyway. The question can be turned off in Settings › General.
Next
Let one agent hand work to others: Teams.
Checked against the app on .