Skip to content

Run parallel agents in separate worktrees

One workspace per independent task, each with its own files and branch, sharing the same repository but not the same checkout.

Reviewed against Amble's public guides. Check current device support and plan limits before you rely on them.

The short answer

Yes. Amble can create a separate Git worktree workspace for each independent task. Each has its own working files and branch while sharing the repository. Worktrees separate edits, not processes or permissions, and they do not merge the work for you.

What is shared, what is separate

A worktree-backed workspace compared with the project checkout
ItemWhere it lives
Repository historyShared by the project
Working filesA separate directory per worktree
BranchThe selected starting ref, or a new branch from it
AgentsOne or more in a workspace
Processes, ports and permissionsHost-wide; not isolated by the worktree

A worktree is not a sandbox. It keeps edits apart; it does not isolate services, credentials, network access or host processes. The maintained parallel-agents guide has the screen-level walkthrough.

Before you create one

  • A Git repository on the host. A plain folder without Git cannot provide the worktree workflow. Check host and client availability.
  • Access that allows workspace creation. Use Owner access to the project; see device roles. App-only viewers cannot create workspaces, run agents or use Git tools.
  • A known starting branch and commit. Preserve current edits first; uncommitted and ignored files from another checkout do not become the new branch.
  • A reviewed setup configuration. Creating a worktree can run the project's configured setup commands under the host account.
  • Agent software and host resources. Each working copy needs the project's dependencies and development configuration. Provider accounts, quotas and usage charges still apply.

Create one workspace per task

  1. Open New workspace for the project

    In the project's GitHub surface, use Worktrees and New workspace, or the existing new-workspace action. Check the selected project and computer.
  2. Choose a separate working copy

    Set Isolation to New worktree and confirm the host supports it. Local uses the existing directory and is not a second isolated checkout.
  3. Pick the base deliberately

    Use Starting ref to choose the intended ref. Local and remote refs can differ; inspect the commit before starting. A branch choice starts a new branch from that ref, while a supported PR selection checks out that change for review.
  4. Check the resulting branch

    Submit a bounded task, then inspect the workspace's current branch and starting commit. Record both before two agents begin editing.

Prepare each working copy

  • Read the setup output. Inspect the configured worktree setup commands and complete anything they did not do.
  • Install dependencies per worktree. Use the project's existing lockfile and package manager. Installed packages and secrets are not copied from the original checkout.
  • Prepare ignored files and test data explicitly. Environment files and fixtures need their own deliberate copy.
  • Separate shared resources. Use separate development databases when tasks could change the same data, and give services non-conflicting ports.

The project's committed setup configuration runs when the worktree is created. Review it first, and see project service configuration before opening a preview.

Split by independent outcome

These are suggested divisions of work, not an automatically created agent team. A reviewer starting only from the old baseline cannot see another worktree's uncommitted edits.

Independent tasks with distinct starting points
TaskStarting pointExpected result
Implement a validation fixThe agreed baseline commitA small diff and its focused checks
Investigate slow list loadingThe same baseline, in another worktreeA read-only diagnosis and proposed check before edits
Review the validation fixThe implementation branch or supported PR checkoutFindings against that change, with no edits unless requested

Review and integrate

  1. Inspect each workspace separately

    Open the right worktree, read Changes and confirm the branch, files and scope. Keep diff review tied to that worktree rather than another agent's summary.
  2. Check the reported results

    Read the actual test output and unresolved errors. For web work, open that worktree's app and interact with it. A finished turn or running service is not proof of passing checks.
  3. Merge through your existing workflow

    Choose the result to keep, inspect the target branch and use your repository's commit, pull-request and merge flow. Re-run the checks affected by the combined result.
  4. Archive when the task ends

    Read any running-work or worktree-removal confirmation, and keep uncommitted files you still need. Archiving is not evidence that a branch has been merged.

What worktrees do not do

Not a sandbox

  • Worktrees separate files and branches, not processes or permissions.
  • Services, credentials and network access remain host-wide.

Not an auto-merge

  • Finished agent turns do not merge changes.
  • Integration stays in your commit, pull-request and merge workflow.

Not a dependency share

  • Each working copy needs its own install and environment files.
  • Secrets are not copied automatically from another checkout.

Not a speed promise

  • Separate working copies do not promise faster results.
  • Host memory, CPU and agent limits still decide what runs well.

Worktree questions

Can two agents share one worktree?

They can share one workspace, but then they share its files. Opening another conversation in the same workspace does not create isolation; make a separate worktree deliberately for each independent task.

Do worktrees isolate processes, ports or permissions?

No. A worktree separates working files and branch context. Services, credentials, network access and host processes remain host-wide, so use non-conflicting ports and separate development data where tasks could collide.

Does finishing a task merge the branch?

No. Worktrees and finished agent turns do not merge changes. Choose the result to keep and use your repository's existing commit, pull-request and merge workflow; archiving a workspace is not evidence of a merge.

What decides the starting code?

The starting branch or PR you select. A branch choice starts a new branch from that ref; a supported PR selection checks out that change for review. Check the selected ref and commit before editing.

Can an App-only viewer create a worktree?

No. App-only access is limited to a shared app. Creating workspaces, running agents and using Git tools require Owner access, and a worktree does not widen a project grant.

Sources for Amble claims

Competitor descriptions link to each vendor's public documentation. This page is published by Amble and is not a hands-on benchmark.