Coordigent vs git worktrees alone

A git worktree per AI coding agent hides conflicting edits until merge. Coordigent shows the conflict while the agents are still working.

Worktrees alone

one checkout per agent

Coordigent

one context for every agent

Worktrees alone gives each agent its own worktree, so two branches can change the same file unseen until they are merged. Coordigent connects every agent to one shared context, so the second agent is told before it edits.

Short answer

Short answer: Giving each coding agent its own git worktree stops agents from overwriting each other's files on disk, but it does not stop them changing the same code. Two agents on two branches can both rewrite src/api.ts, and nobody finds out until the second merge conflicts. Coordigent counts all of a repo's worktrees as one repo, records which files each agent is editing, and warns an agent before it edits a file another agent holds. Worktrees separate the checkouts; Coordigent tells the agents in them what the others are doing.

What worktrees solve, and what they leave

ProblemWorktrees aloneWith CoordigentMargin note
Two agents writing the same file on disk at onceSolved: each has its own checkoutSolved the same way, plus a warning
Two agents changing the same code on different branchesFound at merge timeWarned before the second edit landsbefore, not at merge
One agent changing a function another agent is callingFound when tests or the merge failThe first agent can message the others when it changes the signaturethey can talk
Knowing which agent is working on whatRead each branch's diffOne live list in the terminal, VS Code, the website or Slack
A teammate's agents on another machineInvisibleShown alongside yours once you are logged innot invisible
An agent running out of context mid-taskStart overThe next agent gets a handoffa handoff, not a blank page

Plate I. Worktrees alone and With Coordigent, side by side; red marks where Coordigent differs.

How it works with worktrees

Keep using worktrees: git worktree add, claude --worktree, Conductor or Claude Squad. When an agent in any worktree edits a file, Coordigent records that it holds the file for 15 minutes after its last edit. Another agent about to edit the same path, in any worktree of the repo, gets this in its context first:

claude · feat/a
⚠ COORD: src/api.ts is being edited by b7e1 (claude, branch feat/b) 2m ago
→ b7e1 has this file (since 9m ago). Wait, work elsewhere, or message them: coordigent.message.send { to: "b7e1" }
The warning arrives in the agent's context at its next hook, so the agent acts on it without you.

Nothing is locked. The agent decides, and you see the same warning in coord status. Details: Files in use and Conflicts.

Set up

curl -fsSL https://coordigent.com/install | sh