vx

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

README

vx

vx

A workbench where coding agents build together before the code goes to git.

CI


Coding agents are fast, but they work alone. Give three agents one feature and each opens its own branch; they find out about each other at review time, through merge conflicts and broken builds, and reviewers wade through every retry.

vx sits in front of git. Agents, from one person or many, work in a shared effort and land small changes into it all day. The server merges concurrent work automatically and stops only on real conflicts. Every change records which agent made it, for whom, with which model and what evidence. When the work is ready, vx replays it onto the latest target branch as clean commits and opens a pull request on GitHub or any git host. Git stays the source of truth; vx never pushes to main and never merges.

GitHub main ──import──▶ effort "Rate limiting" ◀── land ── agent A (alice)
                              ▲                ◀── land ── agent B (alice)
                              │                ◀── land ── agent C (bob)
                              ▼
                     vx ship open ──▶ vx/rate-limiting ──▶ pull request

Set it up by asking Claude

vx ships a Claude Code plugin. Install it, then just ask.

/plugin marketplace add TerracodeBA/vx
/plugin install vx@vx

On Claude Code 2.1.275 or later, one line does both:

/plugin install vx --marketplace TerracodeBA/vx

Then, in any directory:

  • "Set up vx for me and connect my repo acme/shop-api." (skill vx:setup)
  • "Run three agents on vx to add rate limiting and an audit log to the login endpoint." (skill vx:team)
  • "Deploy vx on my server vx.example.com for my team." (skill vx:deploy)

Agents working inside a vx working copy pick up the vx:work skill: open a workspace, land with checks vx runs itself, sync, resolve conflicts.

Or set it up yourself

You need Docker with the compose plugin.

git clone https://github.com/TerracodeBA/vx && cd vx/deploy
docker compose up -d
docker compose exec vx vx-server user-add alice --name "Alice"   # prints a token

Install the CLI from the latest release or with Go 1.26+:

go install github.com/TerracodeBA/vx/cmd/vx@latest
vx login --server http://127.0.0.1:7070 --token <token>

Connect a repository, start an effort and work in it:

vx repo create acme/shop-api --github acme/shop-api
vx effort new "Rate limiting" --repo acme/shop-api --goal "Limit login attempts per IP"
vx clone acme/shop-api rate-limiting && cd rate-limiting

vx new "Add limiter middleware"
# ...edit files...
vx land --run "go test ./..."          # vx runs the check, then lands exactly what it checked

Give each agent its own identity, so every change says who made it and for whom:

vx agent add backend --env-file ~/.vx-agents/backend.env
source ~/.vx-agents/backend.env && vx clone acme/shop-api rate-limiting ~/work/backend

Open the web UI at http://127.0.0.1:7070 to watch agents land live, read every change as a GitHub-style diff, and ship.

Full walkthrough: docs/getting-started.md.

What you get

Landing that never loses work Concurrent lands merge file by file, then line by line. The effort head moves with a compare-and-swap; a land that loses the race merges again and retries.
Honest evidence vx land --run "go test ./..." runs checks on exactly what lands. Changes the server merged are marked, so nobody mistakes pre-merge results for verified ones.
Provenance Each change records agent, person, model, session, intent and checks, and carries them into git as commit trailers.
Any branch, on the fly Efforts start from any branch; vx imports it on first use and follows it.
Clean pull requests vx ship open replays every landed change onto the latest target as one commit each and opens or updates the PR.
Built for agents Every command has --json, exit code 2 means conflicts, vx wait blocks until someone lands, and a Claude Code plugin teaches agents the workflow.
Web UI Live effort timeline, who is working on what, per-agent activity, GitHub-style unified and split diffs, shipping.

How it works

Step What happens
Snapshot The CLI scans the working copy (with .gitignore support and a stat cache) and stores files and trees content-addressed with BLAKE3 and zstd. Only objects the server lacks are uploaded.
Land If the effort has not moved since the workspace's base, the snapshot becomes the new head. Otherwise the server runs a three-way merge onto the current head and returns only real conflicts.
Sync vx sync merges others' work into your local files; overlapping edits get diff3-style markers.
Import The git bridge keeps a bare mirror per repo, fetches only branches in use (shallow at first) and maps git objects to vx objects, so re-syncs touch only what changed.
Ship Each landed change is replayed onto the latest target head, written as a git commit with provenance trailers, pushed to vx/<effort>, and the PR is opened or updated.

More in docs/architecture.md.

Documentation

Status

vx is early. It works end to end (it was built and tested with three Claude Code agents landing into one effort on GitHub), and it is ready for individuals and small teams who trust each other. It is not yet ready for large organizations: see docs/organizations.md for the gaps and the plan.

License

Apache-2.0

Directories

Path Synopsis
cmd
vx command
Command vx is the vx command line client.
Command vx is the vx command line client.
vx-server command
Command vx-server runs the vx server and its admin tasks.
Command vx-server runs the vx server and its admin tasks.
gen
internal
api
Package api adapts the service layer to connect-go handlers.
Package api adapts the service layer to connect-go handlers.
blob
Package blob stores content-addressed objects: file contents and trees.
Package blob stores content-addressed objects: file contents and trees.
cli
Package cli implements the vx command line.
Package cli implements the vx command line.
client
Package client is the Go client for a vx server: typed service clients plus batched object transfer between a local blob store and the server.
Package client is the Go client for a vx server: typed service clients plus batched object transfer between a local blob store and the server.
engine
Package engine holds the operations that combine snapshots: three-way merges of trees and the rebase step used when landing changes.
Package engine holds the operations that combine snapshots: three-way merges of trees and the rebase step used when landing changes.
gitbridge
Package gitbridge connects vx to git hosts.
Package gitbridge connects vx to git hosts.
hash
Package hash defines the content hash used for every object in vx.
Package hash defines the content hash used for every object in vx.
merge
Package merge implements line diffs, unified diff output and three-way merges of text files.
Package merge implements line diffs, unified diff output and three-way merges of text files.
object
Package object defines the vx object model: trees, manifests and changesets.
Package object defines the vx object model: trees, manifests and changesets.
provider
Package provider holds the types shared by the service layer and the git bridge for shipping changes to a git host.
Package provider holds the types shared by the service layer and the git bridge for shipping changes to a git host.
server
Package server wires the vx server together: database, blob store, git bridge, API handlers and the HTTP listener.
Package server wires the vx server together: database, blob store, git bridge, API handlers and the HTTP listener.
service
Package service is vx's application logic: creating repos and efforts, opening workspaces and landing changes.
Package service is vx's application logic: creating repos and efforts, opening workspaces and landing changes.
store
Package store is the Postgres metadata store: principals, repos, branches, efforts, workspaces, changesets and the operation log.
Package store is the Postgres metadata store: principals, repos, branches, efforts, workspaces, changesets and the operation log.
store/storetest
Package storetest gives tests an isolated, migrated Postgres database.
Package storetest gives tests an isolated, migrated Postgres database.
version
Package version reports the build version, set at release time with -ldflags "-X github.com/TerracodeBA/vx/internal/version.Version=v0.1.0 ...".
Package version reports the build version, set at release time with -ldflags "-X github.com/TerracodeBA/vx/internal/version.Version=v0.1.0 ...".
web
Package web is the vx web UI: efforts, who is working on what, the timeline of lands with their evidence, diffs of each change, and the shipping view.
Package web is the vx web UI: efforts, who is working on what, the timeline of lands with their evidence, diffs of each change, and the shipping view.
workcopy
Package workcopy manages a vx working copy on disk: the files, the .vx directory with its config, a local object cache and a stat index that avoids rehashing unchanged files.
Package workcopy manages a vx working copy on disk: the files, the .vx directory with its config, a local object cache and a stat index that avoids rehashing unchanged files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL