09CLI reference
Every feature
Every user-facing feature of vx, one line each, grouped by what it is for. Each line names its surface (verb, flag, config key, plugin).
It links the feature’s docs page when it has one, and its blog post, or says “no post”.
Rule: a change that adds or changes a user-facing feature updates
this file, and its post, in the same commit (CLAUDE.md).
tests/features-inventory.unsafe.test.ts fails when a CLI verb, a flag, a
config key or an environment variable is missing here.
- Run a task (
vx run) — run a task in the cwd’s project,pkg#taskdirectly, or several at once. docs · post: The basics, done carefully - Every project (
--all) — run the task in every project that declares it. docs · post: The basics, done carefully - pnpm-style filters (
--filter) — select projects by name, glob, path, dependencies (foo...), dependents (...foo), negation or a git range. docs · post: Say exactly which tasks to run - Affected only (
--affected,baseBranch,VX_BASE_BRANCH,VX_AFFECTED_BASE) — run what a change reaches, following the task edges keys fold (inputs.tasks) from a git base:VX_AFFECTED_BASE, else a plugin’s base commit, else the merge base with the base branch; none on it. A shallow clone fetches only the base and the commits down to the merge base, no blobs. docs · post: Run only what a change reaches - Concurrency (
--concurrency,run.concurrency,VX_RUN_CONCURRENCY) — a count or a share of the CPUs this process may use (50%). docs · post: One failure, and exactly what it takes down - Skip dependencies (
--exclude-dependencies) — skip alldependsOnedges, or named ones. docs · post: Say exactly which tasks to run - Fail fast (
--fail-fast,run.failFast,VX_RUN_FAIL_FAST) — the first failure kills the running tasks and stops the run; without it a failure skips only its dependents. docs · post: One failure, and exactly what it takes down - Every skip names its blocker — a skipped task says which failure blocked it. docs · post: One failure, and exactly what it takes down
- Retries (
--retries,exec.retries,run.retries,VX_RUN_RETRIES) — re-run a failed task; a pass after a failure marks it flaky, and a task known flaky gets one retry with none set. docs · post: Only declared inputs can prove a task flaky - Timeouts (
--timeout,exec.timeout,run.timeout,VX_RUN_TIMEOUT) — kill and fail a runaway task. docs · post: When a task misbehaves - Kill grace and plugin timeout (
run.killGrace,run.pluginTimeout;VX_RUN_KILL_GRACE,VX_RUN_PLUGIN_TIMEOUT) — how long a process gets after SIGTERM before SIGKILL, for a timeout, Ctrl-C or a dev server’s stop (default'2s'), and how long one plugin’s end-of-run flush or teardown may take ('3s'). no post - Output kept (
run.logs.captureHead,run.logs.captureTail,run.logs.failedHead,run.logs.failedTail,run.secrets.minLength;VX_RUN_LOGS_CAPTURE_HEAD,VX_RUN_LOGS_CAPTURE_TAIL,VX_RUN_LOGS_FAILED_HEAD,VX_RUN_LOGS_FAILED_TAIL,VX_RUN_SECRETS_MIN_LENGTH) — how much of a task’s output vx keeps with its cache entry ('8MiB'of the start and of the end) and with a stored failure ('8KiB','56KiB'), and the shortest env value it masks as a secret (6). no post - Watch timing and history retention (
watch.debounce,watch.pollInterval,history.retention;VX_WATCH_DEBOUNCE,VX_WATCH_POLL_INTERVAL,VX_HISTORY_RETENTION) — how longvx watchwaits after the last change ('150ms'), how often a polling watch re-walks ('250ms'), and how much run historyvx cache cleankeeps ('30d'). no post - Argument forwarding (
--) — args after--reach one task’s command (one task in one project: refused with--affected, several tasks, or a--all/--filterrun that asks for the task in several projects) and go into its key. docs · post: When a task misbehaves - Task picker —
vx runwith no task in a terminal lists tasks to pick. docs · post: The small things - Typo hints — an unknown task, project or filter suggests the nearest name. docs · post: The small things
- Ctrl-C leaves nothing running — the whole process tree stops, then teardown runs. docs · post: Ctrl-C leaves nothing running
- Longest path first — the scheduler starts the critical path first;
@vzn/vx-historylearns it from past runs. docs · post: Bitsets, popcount, and a scheduler tick - Schedule strategy (
--schedule,run.schedule,VX_RUN_SCHEDULE) — pick the order with no timings: most work waiting (default), longest path, most direct dependents, or ready order; plugins still lead. docs · post: Which task runs first? - No daemon — every run starts cold and still answers in milliseconds. docs · post: No daemon, on purpose
- Group tasks (
dependsOnwith noexec) — a task that only runs its dependencies;dependsOn: []is a named no-op. docs · post: Say exactly which tasks to run - Keyed groups (
inputswith noexec) — a key its dependants include: it re-runs on those inputs, and nothing spawns or counts for the group. docs · post: A key with nothing to run - Implicit keyed
build— a project with nobuildgets a^buildgroup keyed on its files, so source-only packages still move their dependants’ keys. docs · post: The basics, done carefully - dependsOn syntax (
^name,pkg#name,name.*,^name.*) — upstream, cross-project and pattern edges;^follows the project edges a plugin supplies, and with none is refused naming the fix. docs · post: Say exactly which tasks to run - Every name must resolve —
vx run lint test e2erefuses to start if one name matches no project. docs · post: Say exactly which tasks to run - Tag filters (
--filter tag:<pattern>) — select projects by their configtags. docs · post: Say exactly which tasks to run - Directory and root filters (
./<dir>,{<dir>},<pattern>{<dir>},.,//) — select projects by path, a name within a path, or the root project. docs · post: Say exactly which tasks to run - Executor pools (executor
capacity) — a remote pool is scheduled against its own width, not the laptop’s cores. docs · post: Remote execution without moving the scheduler - Runs take turns — two vx runs on one workspace wait on a lock and name who they wait for. docs · post: When a task misbehaves
Output
Section titled “Output”- Framed output — each task’s log in its own frame, never interleaved. docs · post: A run you can read
- Output modes (
--output-logs,VX_RUN_OUTPUT_LOGS) — full, errors-only, hash-only or none; the default follows the flow. docs · post: Output that fits the run - Run summary — one block: projects, tasks, cache (with the bytes each remote hit pulled and each upload pushed), the run id
vx lastopens, time; nothing prints below it. docs · post: A run you can read - Per-task table (
--verbosity) — a per-task summary after the run. docs · post: One failure, and exactly what it takes down - Failed output kept for agents — a failure’s full log is saved and pointed to. docs · post: Built for the agent at the keyboard
- Trace profile (
--profile) — Chrome-trace JSON of the run, with each executor’s own events (@vzn/vx-dte: every worker’s tasks on their own lanes). docs · post: Output that fits the run - Run branch (
--branch,VX_RUN_BRANCH) — name the branch a run records in its history and forecasts from; unset, git’s branch, then the CI provider’s. no post - Stage timing (
VX_DEBUG_TIMING) — vx’s own stage table, for performance work. docs · post: See inside a run - Output flows — what is printed follows the run’s intent (focused, broad or CI); a truthy
CIwins. docs · post: Output that fits the run - Status and cache words — each task line starts with its status word, coloured by outcome, then its cache word: ran, fresh, restored locally or remotely, failed, skipped or running. docs · post: Output that fits the run
- GitHub Actions log groups — on Actions, each task’s block collapses in a
::group::with its outcome and time. docs · post: The basics, done carefully - One UI kit (
uifrom@vzn/vx) — every line vx and its plugins print is built from one fixed set of components: panels (an underlined title line and its lines, no box) stacked like a TUI but written into the scrollback, coloured the same on CI. docs · no post - Colors (
NO_COLOR,FORCE_COLOR) — truecolor output, forced on or off by env; on any CI the piped log is coloured too;TERM=dumbprints plain, with no live region. docs · post: The basics, done carefully - Signal-named exits — a failure reads
exit 137, 128 + SIGKILL. docs · post: When a task misbehaves - vx’s own steps as rows — on a terminal, what vx does around the tasks (
vx:uploads,<plugin>:teardown) shows as a running row once it passes 150 ms, then a list row markedinternal, only when the run waits on it (vx:prefetchruns beside the tasks and is listed byvx lastalone); never counted as a task. no post - Plain output off a TTY — no live region, and a missing task lists tasks instead of opening the picker. docs · post: The basics, done carefully
Plan and explain
Section titled “Plan and explain”- Dry run (
--dry,--format json) — the task graph and the predicted hits and misses (with what the remote hits would download), text or JSON (with the predicted wall time and its critical path), nothing runs. docs · post: See the plan before you run it - vx why (
vx why,--run) — why a task re-ran, down to the file, env var or config that changed, and the task that wrote a moved input. docs · post: Why did this re-run? - vx show (
vx show) — every project, a project’s or a task’s resolved config, read from the lock as a run reads it. docs · post: See what a task really is - vx last (
vx last,--list,--failed,--log,--stats,--branch,--sql,--live,--follow) — read the run in progress from another shell (and follow its output), replay a recorded run’s summary and its warnings, list recent runs, print one task’s output, per-task history stats (p50 as the live estimate forecasts it on a branch, p99, pass and hit rate, failure mode, peak RSS), or any read-only SQL query over the history (filter, group, trend), its warnings, background steps and failed output included. docs · post: The last run, on request - vx info (
vx info) — workspace doctor: versions, projects, cache size, every setting and where it came from, a value a run refuses included. docs · post: One command to know your workspace - JSON everywhere (
--format) —show,info,why,lastandcacheprint JSON for agents. docs · post: Built for the agent at the keyboard - Run analytics in SQLite — every task’s time, CPU, peak memory and cache result, queryable with
sqlite3. docs · post: Built for the agent at the keyboard - Stable error codes (
VX_E_…) — under--format jsona refusal is a JSON line on stdout with a code an agent branches on and adocslink to its fix (vx docs <code>prints it). docs · post: A refusal an agent can read - Shipped JSON Schemas (
@vzn/vx/schemas/) — every--format jsonshape has a schema, and stdout always parses. docs · post: Built for the agent at the keyboard - Docs for agents (
llms.txt,llms-full.txt) — the whole site as markdown for coding agents. docs · post: Built for the agent at the keyboard - vx docs (
vx docs,--limit) — search the reference this version wrote, read from its release tag on GitHub. docs · post: The reference at your version - Affected reasons (
--affected --dry) — each kept task says the changed file or the dependency path that reached it, text or JSON. docs · post: See inside a run - Agent skill (
skills/vx/SKILL.md,bunx skills add vznjs/vx) — an installable skill that teaches a coding agent to run, debug and query vx through the CLI’s--format json; copy it fromnode_modules/@vzn/vx/skills/vx/to match the installed version. docs · post: Built for the agent at the keyboard
- Opt-in, explicit inputs (
inputs.files) — a task is keyed on the inputs it names, cached or not; one with none has no key, so every task behind it misses. A gitignored path named outright (.env.local,dist/**) is an input, hashed from disk and never stored; broad globs still skip ignored files, andvx lockand a miss name an ignored file a glob’s last segment matches (.env*over.env.production.local);vx lockalso names a cached task’spassThroughname a bundler inlines (VITE_API_URL) thatinputs.envleaves out. docs · post: Explicit over magical - Inputs (
inputs.env,inputs.runtime,inputs.tasks,inputs.workspaceFiles,inputs.workspaceRuntime) — env vars, tool versions, upstream tasks and workspace files in the key. docs · post: What goes into a key, and what comes back - Outputs (
outputs.files,outputs.workspaceFiles) — what a hit restores; every literal output path is required and a task must write at least one output, so a run that misses either after exit 0 fails and nothing is cached, while a wildcard may match nothing beside one that matched; an uncached task declares them too, for what its dependants read. docs · post: What goes into a key, and what comes back - Input stability (
inputs.stability, workspaceinputs.stability,VX_INPUTS_STABILITY_STRATEGY,VX_INPUTS_STABILITY_SEVERITY) — an input written while the command runs withholds the save, on CI too, and the saves of every task that ran over its outputs;strategy: 'mutable'accepts a task’s identical rewrite of its own input,'unchecked'skips the check;severity: 'error'fails the run instead of warning. no post - Keep outputs on a miss (
outputs.clean, workspaceoutputs.clean) —falseleaves a task’s outputs in place for a tool that reads its last output (tsc’s.tsbuildinfo) and caches everything the outputs then hold, leftovers included (an opt-out of the clean-tree guarantee). no post - Outputs are exactly the snapshot (
run.rules.exclusiveOutputs,VX_RUN_RULES_EXCLUSIVE_OUTPUTS) — a hit leaves the tree as the run did; two tasks may not own one output without an edge. docs · post: The tree is exactly the snapshot - Keys from git’s index — tracked clean files hash by their blob id, no read. docs · post: Your cache key is already in git’s index
- Config keyed as evaluated — the key sees the resolved config object. docs · post: Configs are programs
- Cascade through inputs — a task’s key includes its upstream input keys, never outputs. docs · post: Cascade through dependencies
- Lockfile-aware keys (
@vzn/vx-lockfile:bun(),pnpm(),npm(),yarn()) — a bump re-keys only the projects whose closure changed; each also adds every member with a manifest (package.json; underpnpm()alsopackage.json5orpackage.yaml) as a project named by itsname, gives vx the project edges the lockfile records (core reads nopackage.json), keys each package’s manifest as an input and adds its manager’s install settings (.npmrc,bunfig.toml,pnpm-workspace.yaml,.yarnrc.yml,.yarnrc) into every task. Core keys no package file, so without one an install re-keys nothing;npm()readsnpm-shrinkwrap.jsonfirst,bun()refuses a lonebun.lockb, a run refuses whilenode_modulesis not the install the lockfile names (agit pullwith no install), naming the package and the install that fixes it (bun install), andvx lockrefuses a lockfile older than the manifests (a workspace or a workspace dependency it does not list yet, or a dependency on a workspace no longer on disk), and underpnpm()a lockfile per package (sharedWorkspaceLockfile: false), naming the setting. docs · post: A lockfile bump should re-key two tasks - Upfront keys (
vx lock, no opt-out) — refuses an input glob another task’s outputs could match, so every key is known before anything runs; only a dependency the key does not include (left out ofinputs.tasks) may be read, its bytes hashed after it ran. docs · post: Cascade through dependencies by folding input keys, never outputs - Dependency rules (
run.rules.dependencies) —vx lockrefuses a project depending on one a tag or name rule denies or does not allow, every broken edge named (VX_E_DEPENDENCY_RULE). schema · post: Say which projects may depend on which - Cache controls (
--no-cache,--force,--cache-policy,--cache-policy,VX_CACHE_POLICY,cache.policy) — off, re-run past it, or per-layer read/write. docs · post: The cache on your terms - Cache location (
--cache-dir,cache.dir,VX_CACHE_DIR) — where the cache lives; one this user cannot write still serves its hits. docs · post: The cache on your terms - Branch cache scope (
VX_CACHE_SCOPE) — the scope plugins key their own entries under (ctx.cache, run records),<owner>/<repo>:<branch>, named by a plugin or derived from.git; task keys never carry it and the local cache never knows it. docs · post: Branch caches a server enforces - Cache pruning (
vx cache clean,--older-than,--max-size,--global,--dry) — evict by age or size, LRU, only when asked: no run evicts; with no bound, clear this workspace’s store (shared by its checkouts) and run history;--globalclears every workspace’s store. docs · post: One command to know your workspace - Remote outputs (
--cache-download,cache.download,VX_CACHE_DOWNLOAD) — all, top-level only, or none. docs · post: A remote server you can trust in production - Cache transfer limits (
cache.concurrency.download,cache.concurrency.upload,cache.concurrency.restore;--cache-concurrency-download,--cache-concurrency-upload,--cache-concurrency-restore;VX_CACHE_CONCURRENCY_DOWNLOAD,VX_CACHE_CONCURRENCY_UPLOAD,VX_CACHE_CONCURRENCY_RESTORE) — remote downloads, uploads per remote and local restores at once. no post - Local store (
cache.store.embeddings,cache.store.decompress;VX_CACHE_STORE_EMBEDDINGS,VX_CACHE_STORE_DECOMPRESS) — how this machine keeps an entry: ones up toembeddings(default'32KiB',falsefor none) inline in the index, larger ones as plain files a restore copies unchecked (or one tar.zst). no post - Artifact ceiling (
cache.artifactCeiling,VX_CACHE_ARTIFACT_CEILING) — the largest entry, unpacked, a remote stores or a hit unpacks (default'1GiB'); a bigger one stays cached on this machine and is not uploaded. no post - Failure uploads (
cache.upload.failures) — which runs keep a failed task’s log and outputs in the remote: CI (default), local or always. no post - One store for every checkout (
~/.vx/<id>/cache) — clones and worktrees of a workspace share cache entries. docs · post: The cache on your terms - Warm hits restore nothing — when outputs on disk already match, a hit costs a few stats. docs · post: What goes into a key, and what comes back
- Hits replay both streams — stdout and stderr come back in the order the run printed them. docs · post: What goes into a key, and what comes back
- Restore lane — cache restores run on their own lane, up to twice
--concurrency. docs · post: What goes into a key, and what comes back - Line-ending-correct keys — files git filters (
eol,core.autocrlf) key on the bytes the build sees. docs · post: Your cache key is already in git’s index - Background remote uploads — remote writes drain at the end of the run and never fail the build; the footer counts them running (
⇡) and failed (✗). docs · post: What goes into a key, and what comes back - Run instead of a slow download — a remote hit whose body would take longer than running the task (twice its stored time, judged from the body’s pace) is given up and the task runs here; only when the remote says the entry’s size and the task’s time (Turbo’s API does). no post
- Bring your own remote cache (plugin
cache) — plug any cache server in through one interface. docs · post: Extend vx in an afternoon
Correctness
Section titled “Correctness”- Sandboxed tasks (
exec.sandbox:allow,deny,hermetic,ignore,weakerNetworkIsolation,weakerWhenNested) — a task reads and writes only what it declares;allownamesread,write,network,unixSockets,localBinding,pty,systemInfo,gitConfig,machLookup;network: ['localhost:4173']reaches a server on this machine (an e2e’s dependency). docs · post: The sandbox - Env isolation (
exec.env:define,passThrough,secret,VX_DEBUG_DUMPABLE) — a task sees only the env it names; secrets are masked; vx hides its own env from tasks (Linux and macOS). docs · post: A task sees only the env it names - vx lock (
vx lock,--check,--format json,lock.reviewFiles,VX_LOCK_REVIEW_FILES) — find the projects (every directory holding avx.config), freeze what their configs evaluate to, and what a plugin’sprojectstage (turbo(),nx()) maps them to, and check the graph rules once; onlyvx lockevaluates configs or maps: runs,vx showandvx inforead the lock and never write it, and a config file edited since this machine’svx lockrefuses them with “runvx lock”; a prettyvx.lock.jsonbeside each config shows reviewers what it resolves to;.vx/dependencies.lockrecords each project’s edges and lockfile digests: runs key from them, checked against the lockfile through a memo (digests that moved since refuse untilvx lock), and--affectedreads the base’s; both locks give each name a line of its own and projects.lock names each task by a hash of its config, so git merges branches that changed different projects, the same configs lock to the same text, and a clash refuses runs untilvx lockrewrites both. docs · post: vx lock: freezing what the key sees - Flaky detection — a task whose key fails after it passed is reported flaky, judged on every worktree’s record of the workspace, or every CI machine’s through a history server, and retried once when it fails. docs · post: Only declared inputs can prove a task flaky
- Project boundaries — globs never cross into another project. docs · post: What goes into a key, and what comes back
- Artifact integrity checks — a CRC-32, a key match and an outputs-only check on every artifact; damage is a miss. docs · post: What goes into a key, and what comes back
- Read what you depend on — a sandboxed task reads the declared outputs of the tasks its key folds through
dependsOn, in any project, never their sources: onetoolsproject serves a toolchain to every other. page - Sandbox names what to grant — a refused write is named beside the failed task with the path to allow. docs · post: Guard rails that tell you the fix
- Refused reads reported with no tracer (
VX_DEBUG_STRACE) — on Linux vx’s own observer, a seccomp listener in the binary, reports what the sandbox refused: nostraceto install, no ptrace stop per call;VX_DEBUG_STRACE=1reports with strace instead, as a kernel before 5.5 does. page - Strict numeric flags —
0x10,1e3and2.7are refused, never reinterpreted. docs · post: An upgrade you can trust - Verified releases — binaries carry provenance,
vx upgradechecks npm’s registry signature and the SHA-512, read from the registry your.npmrcor bunfig names, npm publishes with provenance. docs · post: An upgrade you can trust
Daily work
Section titled “Daily work”- Watch mode (
vx watch,--poll,watch.poll,VX_WATCH_POLL,VX_DEBUG_WATCH) — re-run what a change affects, on content, not events. docs · post: Watch: a content gate - Dev servers in the graph (
exec.persistent,readyWhen) — a server is a node; dependents start when it is ready, and on a DTE run each worker starts it beside the dependents it runs; it stops once no task left uses it. docs · post: Dev servers as graph nodes - Task platforms (
exec.platforms) — the machines a task runs on (linux-x64,linux-arm64,darwin-x64,darwin-arm64), any of them, each keeping its own cache entry; off them a local run skips it and its dependants, green, CI refuses the run, and@vzn/vx-dtesends it to a worker of its platform (each machine’splatform). no post - Task worker type (
exec.worker) — where a distributed run runs a task: only that@vzn/vx-dteworker type’s machines take it (a Playwright task on Ubuntu while the rest runs on Alpine); a task naming none goes to the first type that fits; ignored locally, not in the key. no post - Interactive tasks (
exec.interactive) — a task that owns the terminal. docs · post: When a task misbehaves - Shell completions (
vx completions) — bash, zsh, fish. docs · post: The small things - Project-local vx (
VX_HANDED_OFF) — a global vx hands every call to the project’s own@vzn/vx. page - One stop, heard once (
VX_SIGNAL_RELAY,VX_IGNORED_SIGNALS) — a stop sent to the whole process group through a launcher or a hand-off, and a Ctrl-C throughbun vx, leaves tasks their cleanup grace, and a Ctrl-C vx was started deaf to stays ignored. page - Stops take daemons too (
VX_RUN_TREE) — a task vx stops (Ctrl-C,--fail-fast, a dev server at the run’s end or avx watchrestart) takes down what it started, a daemon that left its process group withsetsidincluded; one a task leaves on its own or by a timeout (sccache) keeps running. page - Lean JIT for runs (
VX_JIT_TIERED) —vx run,pipeline,watchanddterun with JSC’s top JIT tier off (from npm always; a binary run by hand restarts into it when.vx/projects.lockis 128 KiB or more), whose compiles never paid back within a run; aBUN_JSC_useFTLJITyou set wins. page - vx upgrade (
vx upgrade) — upgrade vx the way it was installed: a verified binary, or its package manager. Inside a project, the project’s vx, its@vzn/vx-*plugins (one install, one release) and the global vx that ran it move together, then the new vx runsvx lock;vx upgrade -gmoves only the global. docs · post: An upgrade you can trust - Help and version (
vx help,vx version) — every verb’s reference. docs · post: An upgrade you can trust - Did-you-mean — a mistyped flag or verb gets the nearest valid spelling. docs · post: The small things
- Task typed as a verb —
vx build appanswers with the exactvx runcommand that does it. docs · post: The small things
Config
Section titled “Config”- Config in TypeScript (
vx.config.ts,defineProject,.vx/workspace.ts,defineWorkspace) — typed, composable; no named inputs..vx/workspace.tsis required: the nearest one up from the cwd, never above the git top-level, marks the workspace root. docs · post: Config in TypeScript - Tasks (
tasks,exec.command,dependsOn,description,tags) — one command per task; the shell is the API. docs · post: One command per task - Workspace rules (
rules) — speed-only checks, on by default, configurable. docs · post: Guard rails that tell you the fix - Config worker timeout (
VX_CONFIG_WORKER_TIMEOUT) — bound a config’s evaluation. docs · post: Guard rails that tell you the fix - No nested runs (
VX_RUN_TASK,VX_RUN_WORKSPACE) — set on every task; avx runinside a task of the same workspace is refused. docs · post: When a task misbehaves - Typed config helpers (
defineProject) — autocomplete for task names independsOn, errors while you edit. docs · post: Config in TypeScript, and why there are no named inputs - Presets — a TypeScript function returning a task config, shared across projects. docs · post: Config in TypeScript, and why there are no named inputs
- Clean config errors — a bad config fails at load naming the key, with no stack trace. docs · post: When a task misbehaves
- Pipelines (
vx pipeline <name>,pipelines:tasks,filter,affected,excludeDependencies,env,concurrency,schedule,failFast,retries,timeout,branch,cachePolicy,noCache,force,cacheDir,cacheDownload,cacheConcurrencyDownload,cacheConcurrencyUpload,cacheConcurrencyRestore,outputLogs,verbosity,profile,dry,format) — avx runsaved under a name in.vx/workspace.ts: its tasks in every project, each key its flag; each CI job runs one, and itsenvreaches vx and its plugins, never a task. page · no post - Results on GitHub (
@vzn/vx-ci:github()) — the job summary on the workflow page, with the workers a distributed run says to declare next time. docs · post: Your run, on GitHub - Cache scope from the ref (
github({ cacheScope })) — names the plugin-entry scope: none on main or a merge queue, else<owner>/<repo>:<branch>; the PR’s base commit is a bare--affected’s base. docs · post: The cache on your terms - Cache scope on GitLab CI (
@vzn/vx-ci:gitlab({ cacheScope })) — names the plugin-entry scope: none on the default branch or a merge train, else<project path>:<branch>; a bare--affectedcompares a merge request with its diff base, a merged results pipeline with the target head it merged onto, and a merge train car with the car ahead. docs · post: The cache on your terms - Sandbox runtime on CI (
@vzn/vx-ci:vx setup github,vx setup gitlab,--debs) — one step before vx runs installs bubblewrap, socat, strace and ripgrep, lets bwrap make user namespaces under AppArmor, and proves the sandbox starts; nothing on macOS. page
Adoption
Section titled “Adoption”- Start in a minute (
vx init,--dry,--format json,--force,--mjs) — install@vzn/vxglobally and as the root devDependency, then write.vx/workspace.ts(declaring the lockfile’s@vzn/vx-lockfileplugin), one empty root project and.vx/projects.lock(in a Turbo or Nx repo, through the latest@vzn/vx-migrate, which writes onevx.config.tsper package);--dry --format jsonhands an agent the plan as data. docs · post: Hello, vx - Migrate from Turborepo or Nx (
vx init,--native,--keep,@vzn/vx-migrate) — native config, or keepturbo()/nx()as a start. docs · posts: From Turborepo, From Nx - Keep a Turbo or Nx remote cache (
turboCache(),nxCache()) — reuse the cache server you have; a missing token is asked once on a terminal and kept in the OS keychain; on GitHub ActionsturboCache({ oidc })exchanges the job’s OIDC token instead of a stored secret;turboCache({ scope })names the run’s refs on every read ('header',x-artifact-read-scopes) or keys each entry on its ref ('key'), while the server’s OIDC trust policy decides where a write lands. docs · posts: From Nx: keep the graph, drop the platform, Branch caches a server enforces - One binary — one file, nothing to install underneath. docs · post: One binary
- Graph explorer (
--dry --format json) — paste your own plan to see what each task waits on, what waits on it, and why. page - Benchmarks you can re-run (
@vzn/vx-bench) — vx against Turborepo and Nx. docs · posts: Benchmarks you can re-run, Why vx is fast - npm pre/post scripts —
pre<x>andpost<x>hooks joinx’s command whenvx initmaps scripts. docs · post: From npm scripts or Vite Task - Vite Task adoption (
bunx @vzn/vx-migrate) — writes configs from vite-plusrun.tasksas well as Turbo, Nx andpackage.jsonscripts (--from scriptspicks them beside the others). docs · post: From npm scripts or Vite Task - Nx executors as one process (
nx-exec) — any Nx executor runs as one vx task with its Nx env set. docs · post: From Nx: keep the graph, drop the platform - Programmatic API (
run,planRun) — run or plan from your own scripts via@vzn/vx. docs · post: Extend vx in an afternoon
Plugins
Section titled “Plugins”- A pipeline with seams (
plugins,definePlugin; stagesconfigdiscoverprojectgraphkeyfingerprintmeasuresscheduleadmitexecutorcachetelemetryoutputcommands) — a plugin may fill any stage; anundefined,nullorfalseentry is skipped. docs · post: A pipeline with seams - A project is a directory with a vx.config (
name) — in any language; named by its config’sname, else a plugin’s, else its path (//for the root); two of one name are refused. docs · post: vx lock: freezing what the key sees - Plugin projects and edges (
discover,DiscoveredProject) — a plugin adds and names projects and gives them edges as directories:depsorders^taskand reaches--filterand--affected;reachonly reaches.vx lockruns the hook and records its answer; a run reads the record. docs - Write a plugin (
vx init --plugin) — scaffold a runnable plugin for a stage. docs · post: Extend vx in an afternoon - The local floor — running and caching here are core’s, not plugins. docs · post: The local floor
- Remote cache and execution (
@vzn/vx-reapi,exec.remote) — Bazel REAPI cache and workers; the scheduler stays here. docs · post: Remote execution without moving the scheduler - A cache server you host (
@vzn/vx-cache-server,vxCache(),VX_CACHE_URL,VX_CACHE_TOKEN) — artifacts for CI jobs in one bucket and no database, on Bun or Docker with an S3-compatible bucket or on Cloudflare Workers with R2, over its own/v1(download and upload of one artifact byGETandPUT, downloads and “held” answers cached per data center on Workers (EXPIRY_DAYS, the bucket’s expiry), check of exact{ scope, hash }keys, a scope sent as its ref, percent-encoded, limits an operator sets; each artifact under<issuer>/<repository>/<ref>/folders, each name hashed (SHA-256, 32 hex digits), so a bucket’s listing names no repository or branch and deleting a branch’s prefix prunes that branch), expiring by the bucket’s lifecycle rules; every request names its issuer and repository by their hashes (vxCache({ issuer, repository }), required) and carries the job’s OIDC token, so itsurlis https (http only to this machine), whose repository it reads and whose trust decides whether it writes its branch (a ref a rule protects only by a matching job);READ_ACCESS=publiclets a request with no token read (off CIvxCache()then reads only);vxCache()writes it from CI only, reads the run’s refs (its branch, the branch it merges into, then the default branch), and lends its token to the jobs a run hands tasks to;retries(2) sends a 5xx, 429 or reset request again;headerspass a proxy in front of it (a Cloudflare Access service token), asvxHistory({ headers })anddte({ headers })do. server · plugin - A history server you host (
@vzn/vx-history-server) — the task timings a scheduler asks for, one row per task, updated from each CI run’s report (duration and cores weighted 30% to the newest, peak memory decayed 10%), a query reading its refs in order (vxHistory(): the run’s refs, as a remote cache reads them); rows keep the issuer, repository and ref as they are; on Bun with SQLite, Cloudflare Workers with D1, or Docker; CI OIDC tokens only (@vzn/vx-devtools);READ_ACCESS=publicopens queries with no token;vxHistory({ url, issuer, repository })(VX_HISTORY_URL,VX_HISTORY_TOKEN; https, http only to this machine) names the repository in its one query (timeoutMs10 s per request,retries2), asks it each run without waiting and sends each task’s timing once while the run goes (every 50 tasks or 10 s, the rest at its end); it also keeps the flaky record every CI machine shares (per task and cache key), and its query names the flaky tasks a run retries once. server - OpenTelemetry (
@vzn/vx-otel) — each run exported to your OpenTelemetry backend, never breaking it. docs · post: Observability that cannot break a run - vx history (
@vzn/vx-history,vx history) — what the scheduler learned per task. docs · post: A scheduler that learns from your runs - Setup and teardown hooks (
setup,teardown,RunReport,ctx.cache.getRun) — plugin code around the run, bounded by a timeout; on a run that writes a remote, vx keeps failed tasks’ logs and outputs and uncached tasks’ logs there, andteardowngets the run, its CI job and every task with the names to read them by, which a plugin verb reads back through its read-onlyctx.cache. docs · post: Extend vx in an afternoon - REAPI TLS, mTLS and headers — connect to hosted servers such as BuildBuddy the way Bazel does. docs · post: A remote server you can trust in production
- REAPI execution records — a repeat remote execution skips the worker and replays outputs, stdout and stderr. docs · post: A remote server you can trust in production
- REAPI verified downloads and deadlines — a corrupt blob or a wedged server degrades to a miss, never a hang. docs · post: A remote server you can trust in production
- Install as a remote action (
exec.remote: 'only') —node_modulesis built by an action, so stateless workers have it. docs · post: Remote execution without moving the scheduler - OTel live export (
otel({ live })) — spans and metrics stream as tasks end, so a dashboard follows a CI run live. docs · post: Watch a CI run while it runs - Memory-aware admission (
@vzn/vx-history) — tasks are packed by the peak memory learned from past runs. docs · post: A scheduler that learns from your runs - CI timings file (
@vzn/vx-history,file) — one JSON file of learned task times a CI cache carries between runners, so a fresh runner orders by real times. docs · post: Carry the scheduler’s memory between CI runners - Plugin entries (
ctx.cache) — a plugin keeps its own small entries in the workspace’s caches, local and remote, a branch’s under its scope. no post