Command index
The command structure is:
veradic [--colour auto|always|never] [--diagnostics human|json|sarif] COMMAND ...
Global options precede the command. Use veradic --help or veradic check --help for accepted arguments. Help lists parser acceptance; option applicability explains whether an accepted option affects the selected action.
Compilation stages
| Command | Parse / types | Lower / flow | Proof | Native output | Execute |
|---|---|---|---|---|---|
| parse | Syntax only | No | No | No | No |
| check | Yes | Yes | No | No | No |
| prove | Yes | Yes | Yes | No | No |
| build | Yes | Yes | Default yes | Executable | No |
| run | Yes | Yes | Default yes | In-memory JIT | Yes |
| emit | Yes | Yes | Default yes | IR / assembly / object / Core | No |
| trust | Yes | Yes | No: lists what proof trusts | No | No |
Errors stop progression. In a project, run uses the proofs the project's proof cache already holds and keeps the other checks at run time (--proof cached); build, emit, and run without a project prove first. --advisory and --no-prove change build/run/emit proof behavior; prove always proves. None relax language or flow errors.
Other public commands
| Command | Task | Inputs |
|---|---|---|
| new | Create a project: verada.toml, a small program with its contract, .gitignore |
A name; --syntax vada|varc|vibe, --dir PATH; optional --agent-host HOST |
| ide | Edit, check, prove and run in the local browser IDE, with REPL and Guide | Existing directory or --project FILE; ide new DIR initializes and opens a project |
| repl | Interactive declarations, statements, expressions | Vada, Varc or Vibe; advisory proof by default |
| explain | Read a numbered diagnostic explanation | One code |
| format | Format or check layout | Explicit files |
| translate | Convert between Vada, Varc and Vibe | Explicit files |
| doc | Generate library API pages | Explicit library specifications |
| stubs | Generate Python typing declarations | Vibe's verada module plus Vada/Varc packages |
| lsp | Serve editor requests | Stdio protocol; each document's own project |
| harvest | Find, in idle time, what a project's costly proofs depend on, so that edits elsewhere keep them proved | A project; --for SECONDS, --watch, -j N |
| workbench serve | The APL Workbench for a saved file, in a local browser; accepted edits are shown for copying | A file, a one-based line and UTF-16 column; --create for a new expression, --minutes N, --budget NAME=VALUE |
agent |
Set up agent guidance or run structured compiler-tool requests | setup, doctor, remove, tool or serve; inspect veradic agent --help |
mcp |
Serve Verada tools to an MCP client over stdio, read-only by default | --root DIR; native execution requires explicit --allow-execution |
veradic --version prints the compiler's version and source revision, its code generator and the solvers it finds. Verada does not provide shell completion. -h/--help exits successfully; an invalid command line reports B7003 and exits 1.
Starting a project
veradic new NAME [--syntax vada|varc|vibe] [--dir PATH] [--agent-host HOST]new creates the directory PATH (by default NAME, in the current directory) and writes a project that checks, proves, runs and builds as it stands:
| File | Holds |
|---|---|
verada.toml |
[project] with source-dirs = ["src"] |
src/ |
Package Bounded, whose function Increment has a precondition and a postcondition, and the main procedure Main, which prints NAME: 42 |
.gitignore |
.verada/ (the proof cache and compiled objects) and /main (the executable build writes); __pycache__/ too for Vibe |
The sources are in the syntax --syntax names (default vada): bounded.vads, bounded.vadb and main.vadb for Vada, bounded.va and main.va for Varc, bounded.vb and main.vb for Vibe. They are the first proof's program, in each syntax's canonical layout.
veradic new hello --syntax varc
cd hello
veradic check && veradic prove && veradic runNAME is a letter followed by letters, digits, - and _; any other name is an invalid command line (B7003). new never writes into a directory that exists, empty or not: an existing PATH, or one it cannot create, is reported as B7009 and nothing is written. Parent directories of PATH are created as needed. It prints the files it wrote and the commands to try next, on standard output.
Add --agent-host codex, --agent-host vscode-copilot or --agent-host zed to apply read-only, project-local agent guidance and tool configuration immediately after creation. This does not change global settings, select a model, grant the host's project trust or enable native agent execution. Without this option, new only creates the ordinary project. If agent setup fails, the command reports failure but retains the created project; resolve the reported issue and retry veradic agent setup --project PATH/verada.toml --host HOST --read-only --apply. See the agent options for setup, inspection and removal.
To create a project and immediately open the browser IDE, use veradic ide new DIR. It can also initialize an existing directory without colliding project files; ordinary veradic new requires a new directory.
Files, projects and output
The check/prove/build/run/emit/trust and repl commands accept --project; the compile commands can discover all source files from that project when no files are given. The other file-oriented tools require explicit files, except stubs, which can generate just its prelude without inputs. lsp has no --project argument: it checks each document in the nearest project above it. ide --project FILE instead selects the directory containing that project file as the browser workspace. Agent-tool subcommands have their own structured request interfaces; use their scoped help rather than applying compile flags to them.
Read projects before using wildcard inputs: a Vada spec and body describe one package, whereas Varc and Vibe combine a package's public and implementation material. Most commands print human diagnostics on stderr, but summaries, generated-file listings and program output differ. See streams and CI.