vx vs git worktrees and branches for parallel coding agents
Giving each coding agent its own git worktree and branch is the usual way to run agents in parallel, and for independent tasks it works well. When several agents build one feature together, the gap is that their work only meets at merge time. This page compares the two approaches plainly, including what vx costs you.
The short answer
Use worktrees and branches when agents work on separate tasks that ship as separate pull requests. Use vx when several agents work on the same feature at the same time and you want their changes merged continuously, conflicts found while the agents are still working, a record of which agent made each change and what was checked, and one pull request at the end.
What worktrees give you
git worktree add ../shop-api-audit -b audit creates a second working directory linked to the same repository, with its own branch checked out. Worktrees share the object store, so they are cheap, and each agent can edit, build and test without touching the others' files. A branch can be checked out in only one worktree at a time, which keeps agents from writing to the same branch by accident.
That isolation is exactly what you want while an agent is working. Everything else, bringing the work together, happens later with ordinary git: merge or rebase, then a pull request.
Where worktrees stop for one shared feature
- No shared integration point until merge. Each agent sees only its own branch. To build on another agent's work, it has to fetch and merge that branch itself, at a moment someone chooses.
- Conflicts show up late. Two agents that change the same lines find out when the second branch is merged, after both finished. Resolving it falls to whoever merges second, often a person or a fresh agent without the original context.
- No view of who is doing what. Nothing in git tells one agent that another is editing
server.goright now, or that a part it depends on just landed. - Checks run on a branch, not on the combination. An agent's tests pass on its own branch. Pull request CI can test a branch merged with the base, but only after it is pushed, and not together with the other agents' unmerged branches.
- Git does not record the agent. A commit has an author and a committer. Which agent wrote it, for whom, with which model and which checks is lost unless you add trailers yourself.
- Reviewers get the raw history. Several pull requests, or one branch with every retry and fix-up commit, unless someone squashes and rewrites it.
What vx adds
vx keeps the isolation: every agent still has its own working copy. What changes is that the agents land small changes into one shared effort all day, and the server merges them as they arrive.
- Continuous merging. Concurrent changes merge file by file, then line by line. A land that loses a race merges again onto the newer head and retries, so no change is lost.
- Early, explicit conflicts. Only real conflicts stop a land, with exit code 2, while the agent that made the change still has the context to fix it.
vx syncmarks the conflict with the common base in the middle. - Awareness.
vx statuslists the other agents working in the effort and what each is doing, and what landed recently.vx waitblocks until someone lands, so an agent can wait for a part it depends on. - Checks on the merged code.
vx land --run "go test ./..."syncs first if others landed, runs the check on the merged files and lands exactly what it checked. Changes the server merged after their checks ran are marked merged by server. - Provenance. Every change records agent, person, model, session, intent and checks, and carries them into git as
Vx-Agent,Vx-On-Behalf-Of,Vx-ModelandVx-Evidencetrailers. The person stays the commit author. - One pull request.
vx ship openreplays every landed change onto the latest target branch as one commit each and pushesvx/<effort>. vx never pushes tomainand never merges.
The demo on the home page shows three agents editing the same file: one merge vx did line by line, one real conflict, one pull request.
Side by side
| Worktrees and branches | vx | |
|---|---|---|
| Isolation per agent | A worktree and branch each | A working copy and identity each |
| Where work comes together | At merge or rebase, usually at the end | In the shared effort, on every land |
| When conflicts show up | When the second branch is merged | On the land that causes them, exit code 2 |
| Seeing other agents | Not built in | vx status, vx wait, live web UI |
| Checks | On each branch; PR CI against the base after push | On the merged code with --run; server merges are labelled |
| Which agent made a change | Not recorded unless you add it | Recorded and written as commit trailers |
| What reviewers get | Several PRs or one branch with every commit | One PR, one commit per task |
| What you run | Nothing beyond git | A vx server (Docker and Postgres) |
| Git hosts | Any | Any git remote; PRs opened by vx on GitHub, other hosts planned for v0.4 |
A benchmark: same feature, both ways
We gave the same feature to three AI coding agents twice. In one run they worked through vx, with the effort board and the MCP endpoint available. In the other they worked on separate git worktrees, and a fourth session merged their branches at the end. Both results passed all 5 hidden acceptance tests.
| vx (board and MCP) | Git worktrees and an integrator | |
|---|---|---|
| Hidden acceptance tests | 5 of 5 pass | 5 of 5 pass |
| Time until a working, merged result | About 6 minutes (45% less) | About 11 minutes (7 for the agents, 4 for merging) |
| Cost | $4.68 (23% lower) | $6.11 ($4.42 for the agents, $1.69 for the integrator) |
| Merge step at the end | None; the effort head was the result | A 4th session, which changed 120 lines while merging |
| Conflicts | 3, each fixed by the agent that hit it | 4: 2 fixed by one of the agents, 2 by the integrator |
| Duplicate helpers in the result | None | None, after the integrator merged duplicate test helpers |
| How agents learned about each other | 10 notes on the effort board: 4 decisions, 3 interfaces, 2 handoffs, 1 plan | By reading each other's branches, 30 times in total |
| Questions asked between agents | 0 | Not applicable |
| MCP calls | 0; the agents used the board through the vx CLI | Not applicable |
This is one run of one task, so treat the numbers as an indication, not a guarantee. The effort board and the MCP endpoint are on main and come with the next release.
What vx costs you
- A server to run. vx is a server with Postgres. It runs with Docker in three commands, or on a shared machine for a team. A hosted vx Cloud is planned; today it is a waitlist.
- A second layer in front of git. Inside a vx working copy, agents use vx commands, not git. Git stays the source of truth on your host; vx only pushes branches under
vx/. - Early software. vx is at v0.1. Every signed-in user can see every repository on a server, so it suits people who trust each other; organizations, teams and repository roles are planned for v0.2.
- Text merges are still text merges. Like git, vx v0.1 cannot see semantic conflicts, such as two agents adding the same function in different files. On main, vx now warns after a land when two changes declare the same top-level Go name in one package; other semantic conflicts still need checks. Running checks with
--runcatches them before they land.
When plain worktrees are enough
- One agent at a time, or agents on unrelated tasks that ship as separate pull requests.
- Parallel attempts at the same task where you keep one and throw the others away.
- Short experiments where nobody needs a record of which agent did what or which checks ran.
If agents rarely touch the same files and each task is its own pull request, worktrees do the job with nothing extra to run. vx earns its place when the agents build one thing together.
Try vx on one feature
The guide walks through server, plugin, agent identities and shipping, with every command.