Vercel Labs
01 / 09 · Overview
Zero
The Programming Language
for Brokers
An experimental methods language that offers AI brokers structured diagnostics,
typed restore metadata, and machine-readable docs — alongside sub-10 KiB native binaries.
Programs Language
Agent-Native
v0.1.1
Apache-2.0
Experimental
Context
02 / 09 · Why Zero Exists
The Agent Restore Loop Downside
Most programming languages produce compiler output written for human readers — unstructured textual content that AI brokers should parse to find out what failed and how one can repair it. This creates a fragile loop.
- Agent writes code — compiler emits an error as unstructured textual content
- Agent parses textual content — error format can change between compiler variations
- No restore trace — there’s no built-in idea of a “restore motion”
- Human steps in — the loop requires handbook intervention to resolve errors
Zero was designed from day zero so brokers can learn the code, interpret the diagnostics, and restore this system — with out human translation.
Core Characteristic
03 / 09 · JSON Diagnostics
Structured Compiler Output
Operating zero examine ——json emits machine-readable diagnostics as an alternative of plain textual content. Each error features a steady code, a human message, a line quantity, and a typed restore ID.
$ zero examine --json
{
"okay": false,
"diagnostics": [{
"code": "NAM003",
"message": "unknown identifier",
"line": 3,
"repair": { "id": "declare-missing-symbol" }
}]
}
- code — steady identifier brokers can match reliably (
NAM003) - message — human-readable description of the error
- restore — typed restore ID brokers can act on with out textual content parsing
Core Characteristic
04 / 09 · Restore Instructions
zero clarify & zero repair
Two CLI subcommands full the agent restore loop with out requiring brokers to parse prose documentation.
zero clarify NAM003
Returns a structured rationalization of any diagnostic code. Brokers search for NAM003 instantly — no doc scraping.
zero repair --plan --json add.0
Emits a machine-readable repair plan describing precisely what modifications to make — no inference required.
Collectively, zero clarify and zero repair --plan --json let brokers perceive errors and act on them with out human translation of compiler output.
Core Characteristic
05 / 09 · Agent Steerage
zero expertise: Model-Matched Agent Steerage
Most instruments require brokers to scrape exterior documentation which may be out of sync with the put in compiler. Zero solves this with zero expertise — steering served instantly from the CLI, matched to the put in model.
zero expertise get zero --full
Returns targeted workflows for:
- Zero syntax — language fundamentals for the present model
- Diagnostics — how one can interpret and act on compiler output
- Builds & packages — manifest construction, targets, and output
- Testing & agent edit loops — validation and restore workflow patterns
Language Design
06 / 09 · Functionality-Primarily based I/O
Express Results & Functionality-Primarily based I/O
In Zero, if a operate touches the surface world, its signature says so. There isn’t any hidden international course of object, no implicit async, and no magic globals.
pub enjoyable foremost(world: World) -> Void raises {
examine world.out.write("good day from zeron")
}
- world: World — functionality object; grants entry to I/O, filesystem, community
- examine — handles fallible operations; surfaces failure up the decision stack
- raises — marks that the operate can propagate errors — seen within the signature
- Compile-time enforcement — unavailable capabilities are rejected at compile time, not runtime
Language Design
07 / 09 · Reminiscence & Dimension
Predictable Reminiscence & Tiny Binaries
Zero targets environments the place binary measurement and reminiscence predictability matter. There isn’t any hidden runtime tax.
< 10 KiB
Native executables through static dispatch, no necessary GC, no necessary occasion loop
zero construct --emit exe
--target linux-musl-x64
add.0 --out .zero/out/add
zero measurement --json— reviews artifact measurement earlier than code era when doable- No hidden allocator — allocation is specific and visual in code
- C ABI exports — target-aware interop metadata for C boundaries
Fast Begin
08 / 09 · Getting Began
Set up & Run Zero
Set up the compiler with a single curl command:
curl -fsSL https://zerolang.ai/set up.sh | bash
export PATH="$HOME/.zero/bin:$PATH"
zero --version
Examine, run, and construct your first program:
zero examine examples/good day.0
zero run examples/add.0
zero construct --emit exe --target linux-musl-x64
examples/add.0 --out .zero/out/add
Create a brand new package deal:
zero new cli good day
cd good day
zero examine . && zero take a look at . && zero run .
Standing
09 / 09 · Present State
What’s Obtainable & What’s Not
- v0.1.1 (Experimental) — compiler, stdlib, and language spec will not be steady but
- No package deal registry — ecosystem breadth is early-stage
- Cross-compilation — restricted to the documented goal subset
- VS Code extension — syntax highlighting for
.0recordsdata ships within the repo - Contributors — Chris Tate & Matt Van Horn (Vercel Labs)
zerolang.ai
github.com/vercel-labs/zero
Zero is a working experiment value monitoring for AI engineers keen on agent-native toolchain design — not but a manufacturing dependency.
