Zero is the programming language for agents: a systems language for small native tools, explicit effects, predictable memory, and structured compiler output.
Zero is experimental and still changing. The compiler, standard library, docs, and examples are useful for trying the language and giving feedback, but the language is not stable yet.
Build the local compiler from a checkout:
npm install
make -C native/zero-c
bin/zero --versionCheck a program:
bin/zero check examples/hello.0Build and run a small executable:
bin/zero build --emit exe --target linux-musl-x64 examples/add.0 --out .zero/out/add
./.zero/out/addExpected output:
math works
docs-site/articles/getting-started.md: build the compiler and run a first program.docs-site/articles/learn-zero.md: a practical tour of the language.docs-site/articles/language-reference.md: syntax and behavior reference.examples/README.md: examples grouped by concept.
Run the docs site locally:
npm run docs:devbin/zero check examples/hello.0
bin/zero build --emit exe --target linux-musl-x64 examples/add.0 --out .zero/out/add
bin/zero graph --json examples/systems-package
bin/zero size --json examples/point.0
bin/zero routes --json examples/web/hello
bin/zero skills get zero --full
bin/zero doctor --jsonnpm run docs:test
npm run conformance
npm run native:test
npm run command-contractsBenchmarks run locally by default:
npm run benchnative/zero-c/: native compiler implementation.compiler-zero/: Zero-authored compiler sources.examples/: runnable Zero source examples.conformance/: language and CLI behavior fixtures.docs-site/: documentation site.tests/: TypeScript tests for CLI behavior.extensions/vscode/: editor syntax highlighting for.0files.