See inside a run
See inside a run
Why did this task run? What did the run do? Where did the time go? One command answers each, in text or JSON.
vx gives coding agents JSON with a schema for every answer, keeps a failure's log and files, and stores run history in a SQLite file.
A coding agent can’t read a progress bar. It parses stdout. So every vx answer comes as JSON with a schema, a failure keeps its log and the files it blames, and the run history is a SQLite file.
flowchart LR R[vx run] --> DB[(cache.db)] DB --> L["vx last --format json"] DB --> W["vx why --format json"] DB --> S[sqlite3] L & W --> A[agent] S --> A
vx run prints for people. Then vx last --format json gives the same
run as one JSON document, a row per task. Notices go to stderr, so a
pipe sees only the result.
$ vx run bundle lint --all$ vx last --format json | jq '.invocation | {runId, command, taskCount, failedCount, hitCount, exitOk}'{ "runId": "01a16b0f-dbf0-75fc-aaaa-7ce32e7c3a57", "command": "vx run bundle lint --all", "taskCount": 2, "failedCount": 1, "hitCount": 0, "exitOk": false}$ vx last --format json | jq '.tasks[0] | {project, task, status, exitCode, durationMs, hash}'{ "project": "packages/api", "task": "bundle", "status": "success", "exitCode": 0, "durationMs": 5, "hash": "f2bf5dd5f2d36920"}vx show, vx info, vx why and vx cache clean take the same
--format json, and vx run --dry --format json prints the plan before a run.
Each JSON shape ships as a schema in node_modules/@vzn/vx/schemas/:
plan.json, show.json, info.json, why.json, last.json,
cache.json. A new field is a schema change, never a surprise.
A test checks each command’s output against its schema. Refusals are JSON too: A refusal an agent can read.
When a task fails, an agent wants what it printed and which files it blames. vx saves both:
$ vx last --failed --format json | jq '.tasks[] | select(.status == "failed") | {status, exitCode, output, locations}'{ "status": "failed", "exitCode": 1, "output": "src/index.ts:3:7 - error TS2322: Type string is not assignable to type number\n", "locations": [ { "file": "/work/demo/packages/api/src/index.ts", "line": 3, "col": 7 } ]}locations lists only files that exist. Secrets are masked. vx keeps
the newest 50 failed runs.
Every task of every run goes into cache.db: time, CPU, peak memory,
status and cache result. No export step. Query it directly:
$ sqlite3 .vx/cache/cache.db " SELECT project, task, status, duration_ms FROM runs WHERE run_id = (SELECT run_id FROM runs ORDER BY id DESC LIMIT 1) ORDER BY duration_ms DESC;"packages/api|lint|failed|6packages/api|bundle|success|5llms.txt indexes every docs page as markdown, and llms-full.txt is the whole site in one file.
@vzn/vx also ships a SKILL.md that teaches an agent to run, debug
and query vx:
$ mkdir -p .claude/skills/vx$ cp node_modules/@vzn/vx/skills/vx/SKILL.md .claude/skills/vx/bunx skills add vznjs/vx installs the same skill. The
agents guide and
machine-readable output have the
details.
One-project workspace · vx dbe4033 · 2026-10-23
More at vznjs.github.io/vx.