<- back to runpane.com

glossary

what is worktree isolation?

Worktree isolation means each AI agent gets its own copy of your code, on its own branch, in its own folder. They can all work at the same time without stepping on each other.

the problem

You ask Agent A to rewrite the login page. You ask Agent B to add a signup flow. Both agents need to edit the same files. If they're working in the same folder, Agent B saves its version of auth.ts and overwrites Agent A's changes. Agent A doesn't even know it happened.

This is why running multiple agents in the same directory is risky. It works sometimes, but eventually something gets overwritten and you lose work.

the fix

Give each agent its own git worktree. That's a separate folder with a separate branch. Agent A works in one worktree, Agent B works in another. Both can edit auth.ts at the same time because they're editing different copies.

my-project/              ← main branch (untouched)
../login-rewrite/        ← Agent A's worktree (feature/login)
../signup-flow/          ← Agent B's worktree (feature/signup)

what gets isolated

isolatedshared
Files and uncommitted changesGit history and commits
BranchRemote (origin)
Shell state and env varsGit config
Working directoryObject store (saves disk space)

how pane does this

When you create a new pane in Pane, it creates the worktree, sets up the branch, copies your .env and node_modules, and starts the agent. When you archive the pane, it cleans up the worktree. You never run git worktree add yourself.

related

- What Is a Git Worktree?

- Panes & Worktrees

- Running Agents in Parallel

Parsa Khazaeepoul

by Parsa Khazaeepoul

Last updated June 24, 2026

frequently asked questions

or
Download*
Windows SmartScreen warningDirect downloads can show a SmartScreen warning while Pane is unsigned. Pane is fully open source, so you can audit the code and build from source yourself.1. Click More info2. Click Run anyway3. Continue the installerThe PowerShell install downloads the official release directly and avoids most browser download friction.npm global install
Paste that in PowerShell.MacLinux