Skip to content
vxvx
GitHubBlueskydev.toRSS

Errors an agent can branch on

Under --format json, a refusal is a JSON line with a stable code.

A refusal as a JSON line with a stable code.

An agent that has to match the wording of an error message breaks when the message improves. vx gives every refusal a code that stays the same.

Unknown task, bad config, a graph cycle, no workspace: each has its own code, and a docs link to the fix. Offline, vx docs <code> prints the same fix.

// what it prints

$ vx run biuld --all --format json
{"ok":false,"error":{"code":"VX_E_UNKNOWN_TASK","message":"vx run: no projects declare task(s): biuld. Did you mean build?","docs":"https://vznjs.github.io/vx/cli/#vx_e_unknown_task"}}
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.