32dots HEIDELBERG AI
Session 2 easy

Git-aware execution: worktree vs local

LESSONLesson 2 · ~15 min

🎯Goal. Choose where an agent runs so experimental work stays isolated from your real branch.

  1. 1On the new-agent screen, open the Local / New Worktree dropdown. Local runs the agent on a chosen branch (e.g. main) — fine for small, trusted edits.
  2. 2Pick New Worktree for anything experimental: the agent gets its own Git worktree, so its changes are isolated and your main stays clean while it works.
  3. 3Because agents act on your code, isolating risky runs in a worktree means you can review the result before merging — and discard it cleanly if you don't like it.

You'll see. An agent running against an isolated Git worktree, its changes kept separate from your main branch until you choose to keep them.

💳Cost. Choosing where the agent runs costs nothing extra — it's a setting on the free plan. The saving is in safety: no half-finished agent work landing on main.

💡Takeaway. Treat the worktree-vs-local switch as your safety control: isolate experimental agents, run trusted ones locally, and review before you merge.