Back to blog
ArchitectureMay 22, 20268 min read

Why we bet everything on Git worktrees

When we started building emdash, the central question was: how do you let many agents work at once without stepping on each other?

Git worktrees turned out to be the perfect primitive. A worktree is a separate checkout backed by the same repository. Each agent gets a clean directory on its own branch, with zero setup cost beyond a single Git command.

This one decision cascaded through the entire architecture. Isolation, diffing, merging, and rollback all became natural operations instead of bespoke machinery.