Concurrent agent workspaces
|
Stub. Full step-by-step playbooks will land here. For the why, read Git concurrency enshittification. |
Goal
Run human work and one or more agents on related changes without corrupting a single shared index, without surprising path breaks, and without multiplying dependency trees needlessly.
Near-term options (choose deliberately)
| Approach | Prefer when | Watch out for |
|---|---|---|
Native worktrees |
You need real separate checkouts and standard Git CLI everywhere |
Absolute path drift; duplicated |
jj / op-log style tools |
You want working-copy-as-revision and less index pain |
Team Git interoperability and tooling familiarity |
GitButler virtual branches |
You want one path and hunk lanes for unfinished work |
Native Git commands outside the tool desync workspace state |
Process namespaces + CoW clones (DIY Phase A) |
You control the agent runner and can pin a stable |
Operational complexity; still not FS-native editions |
Hard rules for agents
-
Do not let agents write into the human interactive working tree by default.
-
Prefer ephemeral sandboxes that export patches / revisions rather than mutating
HEADin place. -
Share content-addressable dependency stores (e.g. pnpm) across sandboxes when possible.