How vx works: efforts, landing, merging, evidence and shipping

vx is an open source server that sits in front of git. Several coding agents land small changes into one shared line of work, vx merges them as they arrive, records who did what and how it was checked, and ships the result to your git host as a pull request. This page explains each step, with real output from a demo run.

Efforts and workspaces

An effort is a shared line of work in one repository, such as "Rate limiting". It starts from the current head of a branch, usually main, but any branch works: vx effort new "Hotfix" --repo shop-api --from release/1.4. vx imports that branch from GitHub or any git remote on first use and keeps following it.

Every agent that works on the effort has its own working copy, made with vx clone, and its own identity, made with vx agent add. An agent acts for a person: agent:alice/limiter acts for user:alice.

A workspace is one task inside the effort, opened with vx new "Limit login attempts per client IP". The text is the intent; it becomes the change description and, when shipped, the commit message. Landing closes the workspace, so each task is one change.

alicestart an effort
$ vx effort new "Rate limiting" --repo shop-api --goal "Limit login attempts per client IP and record an audit log"
Started effort rate-limiting on main at 6a116355d9bb

Next:
  vx clone shop-api rate-limiting

Landing a change

vx land moves an agent's finished work into the effort. The CLI snapshots the working copy into content-addressed trees, uploads only the objects the server does not have yet, and asks the server to land the snapshot on top of the version the workspace started from.

  • If nobody landed since then, the snapshot becomes the new effort head.
  • If others landed first, the server runs a three-way merge of the workspace base, the snapshot and the current head.
  • Moving the head is a single-row compare-and-swap in Postgres. If another land wins the race in between, the server merges again onto the newer head and retries. A test in the vx repository lands 12 agents into one effort at once and checks that every change ends up in it.
alice/limiterexit 0
$ vx land --run "go test ./..."
pass go test ./... (0.2s)
Landed 4a32919f147a (tghv-q2b9): Limit login attempts per client IP
  A limiter.go                                       +48 -0
  A limiter_test.go                                  +20 -0
  M server.go                                        +5 -3
  3 file(s), +73 -3

How concurrent work merges

The merge runs file by file first. Files only one side touched are taken from that side. For files both sides changed, vx merges line by line with a Myers diff and diff3. Because trees are content-addressed, unchanged directories are skipped by comparing hashes, so the cost of a merge grows with the size of the change, not the size of the repository.

In the demo, bob/audit started from the same version as alice/limiter and also edited server.go, on different lines. With --run, the CLI syncs first, so the check runs on the merged files:

bob/auditexit 0
$ vx land --run "go vet ./..."
The effort moved on; syncing before running checks.
Synced to 4a32919f147a: 3 file(s) updated, your 2 local change(s) kept.
pass go vet ./... (0.1s)
Landed 3bc281363ccf (ms86-xckt): Record login attempts and serve GET /api/audit
  A audit.go                                         +34 -0
  M server.go                                        +2 -0
  2 file(s), +36 -0

Without --run, the server merges the change onto the newer work by itself and the land still succeeds. The change is then marked merged by server, which matters for evidence, below.

When a land stops: real conflicts

A land stops only when both sides changed the same lines. Nothing lands, and the command exits with code 2, so an agent can tell a conflict from an error (exit code 1) without parsing text.

alice/configexit 2
$ vx land
Not landed: your changes conflict with changes already in the effort (now at 3bc281363ccf).

  content        server.go 1 conflicting region(s)

Run `vx sync` to bring in those changes and mark the conflicts, fix them, then `vx land` again.

vx sync brings in the others' work and writes diff3-style markers, with the common base in the middle, so the agent sees what each side intended:

server.go after vx synclines 15 to 24
<<<<<<< local
	s := &server{mux: http.NewServeMux()}
	s.mux.HandleFunc("POST /api/login", maxBody(s.login, 1<<10))
||||||| base 6a116355d9bb
	s := &server{mux: http.NewServeMux()}
	s.mux.HandleFunc("POST /api/login", s.login)
=======
	s := &server{mux: http.NewServeMux(), limiter: newLimiter(5, time.Minute)}
	s.mux.HandleFunc("POST /api/login", s.limit(s.login))
>>>>>>> effort 3bc281363ccf

The agent keeps both intentions, removes the markers and lands again. vx land refuses files that still contain markers. Semantic conflicts, such as two agents adding the same function in different files, merge cleanly as text but break the build; checks run with --run catch them before they land.

How agents see each other

Agents in one effort do not message each other directly. They coordinate through the effort itself, with three commands:

  • vx status shows the agent's own changes, whether the effort moved on, which other agents have a workspace open and what each is doing, and what landed recently.
  • vx sync brings in what others landed while keeping local edits.
  • vx wait --timeout 10m blocks until someone lands in the effort and lists what landed, so an agent that depends on another part can wait for it instead of polling.
bob/auditvx status
$ vx status
Effort rate-limiting in shop-api, files at 6a116355d9bb
Workspace ms86-xckt: Record login attempts and serve GET /api/audit
The effort moved on to 4a32919f147a. Run `vx sync` to pick up others' changes.

Others working in this effort:
  agent:alice/config             Read the listen address from env and cap login body size

Recently landed:
  4a32919f147a tghv-q2b9  Limit login attempts per client IP           agent:alice/limiter

Changes:
  A audit.go
  M server.go

No conflict markers; ready to land.

People watch the same information in the web UI: the effort page shows a live timeline of lands, who is working now, per-agent activity and every change as a unified or split diff. Every command also takes --json for agents that prefer structured output.

Evidence: what was checked, on which code

Each change can carry evidence, and vx is strict about what that evidence describes.

How it was recordedShown asWhat it means
--run "CMD"run by vxvx ran the command in the working copy and recorded the result and duration. If the effort moved, vx synced first and ran it on the merged result, so it describes exactly what landed.
--check "NAME=pass:N"reportedThe agent says it ran something. Shown, but marked as reported.
Land without --run after others landedmerged by serverThe server merged the change onto newer work after its checks ran, so any evidence is labelled as gathered before the merge.

These labels follow the change everywhere: the CLI, the web UI, the commit trailers and the pull request text. --require-up-to-date refuses to land at all if anyone landed since the agent's last sync.

Provenance in git: commit trailers

When an effort ships, every landed change becomes one git commit. The person the agent acts for is the commit author, and the rest of the record travels as trailers at the end of the message:

Vx-Change-Id
stable id of the change, such as ms86-xckt
Vx-Effort
the effort it landed in
Vx-Agent
the agent that made it
Vx-On-Behalf-Of
the person the agent acts for
Vx-Model
the model, from VX_MODEL
Vx-Evidence
each check and how it was recorded
git log -1 on vx/rate-limitingcommit 2 of 4
commit d594ea03993a2d50e2b29038342dbc86dfc46899
Author: Bob Example <bob@example.com>
Date:   Tue Nov 24 12:05:24 2026 +0000

    Record login attempts and serve GET /api/audit

    Vx-Change-Id: ms86-xckt
    Vx-Effort: rate-limiting
    Vx-Agent: agent:bob/audit
    Vx-On-Behalf-Of: user:bob
    Vx-Model: claude-opus-5-5
    Vx-Evidence: go vet ./... pass (run by vx)

Because the record lives in git, git log and git blame keep it after the pull request is merged, whether or not the vx server is still running.

Shipping an effort as a pull request

vx ship plan shows the commits and the pull request text. vx ship open does the work:

  1. Sync the target branch from the git host.
  2. Replay each landed change, oldest first, onto the latest target head. A change whose parent matches is taken as is; otherwise it is three-way merged onto the current tree. Shipping stops at the first conflict and reports it.
  3. Write one commit per change, with the intent as the message, the person as author and the trailers above.
  4. Push the branch vx/<effort>. On GitHub with a token configured on the server, vx opens or updates the pull request; without a token it prints a link to open it. On other git hosts vx pushes the branch and you open the pull request there.
aliceexit 0
$ vx ship open --repo shop-api rate-limiting
Shipping to main (at 6d82f45b1996) on branch vx/rate-limiting

   tghv-q2b9  Limit login attempts per client IP                 agent:alice/limiter
   ms86-xckt  Record login attempts and serve GET /api/audit     agent:bob/audit
   6gf3-mccw  Read the listen address from env and cap login body size agent:alice/config
   28nm-xsb4  Send Retry-After when a client is limited          agent:alice/limiter

Pushed vx/rate-limiting (4 commit(s)) on top of main.
This host has no pull requests; open one from vx/rate-limiting yourself.

The pull request text lists the goal, every change with its agent and person, and the evidence for each, and ends with a line such as "Built in vx effort rate-limiting by 3 agent(s) for 2 person(s)". Reviewers read one commit per task, without the retries and fix-ups that happened inside the effort.

Where the data lives

The vx server keeps metadata (changes, efforts, workspaces, shipments) in Postgres and file contents in a content-addressed store: files and directories are hashed with BLAKE3 and compressed with zstd, so each version of a file is stored once. A git bridge keeps one bare mirror per repository, fetches only the branches in use and maps git objects to vx objects, so later imports skip what did not change. When you self-host, your code stays on your infrastructure.

What vx does not do

  • vx never pushes to main or any branch outside vx/; the git bridge refuses other branches.
  • vx never merges a pull request. Merging stays with people and your branch protection rules.
  • Agents should not run git inside a vx working copy; vx is the version control layer there.
  • Today every signed-in user can see every repository on a server, so one server suits people who trust each other. Organizations, teams and repository roles are planned for v0.2, and single sign-on for v0.5, on the roadmap.
  • GitHub is the only host where vx opens pull requests itself. GitLab, Bitbucket, Gitea and Forgejo adapters are planned for v0.4.