Four languages built for AI agents: Truss, Zero, ilo and NanoLang make rival bets

OpenAI chairman Bret Taylor has released Truss, a programming language in which AI agents must ship a proof with every piece of code. It's already the fourth “agent language” this year, and the four are built on opposing ideas. We compare them and tackle the question the announcements skip: can a model actually write good code in a language it has never seen?

Analysis Dec 3, 2026 9 min read Original analysis by our editors
Illustrative image, AI-generated

What's going on

Bret Taylor is co-founder of AI agent company Sierra and chairman of OpenAI. At the end of November, he released his own programming language: Truss. Its core assumption, per the README: in the future, AI agents will write code, not humans. So the language shouldn't make writing easier — it should make checking easier. Every implementation has to come with a proof that the compiler verifies. Taylor deliberately accepts that this costs more tokens.

But Truss is already the fourth “language for agents” this year. NanoLang from FreeBSD co-founder Jordan Hubbard arrived in January, ilo went open source in February, and Zero from Vercel Labs followed in May. All four say they're built for AI, yet they bet on opposing ideas. We put them side by side and dig into a question almost every announcement skips: can a language model even write good code in a language that never appeared in its training data?

Four languages, four bets

Truss Zero ilo NanoLang
By Bret Taylor Vercel Labs (Chris Tate) Daniel John Morris Jordan Hubbard
Since Nov 30, 2026 (repo) May 15/16, 2026 Feb 2026 (open source) Jan 2026
Core idea A proof for every implementation Compiler talks to machines, code as a graph As few tokens as possible Equally readable for humans and models
Tokens Deliberately more Goal: economical searching Deliberately fewer Not a focus
Output Native binary Native binary (Linux, macOS, Windows) Own VM, Cranelift or AOT Native binary via C
Status “Just a prototype” Experimental, v0.3.x Experimental, pre-1.0 v5.0.0, “thought experiment”
GitHub stars (at time of research) approx. 700 approx. 5,500 13 –

They do share some ideas, and those line up with Armin Ronacher's widely cited February essay “A Language For Agents”. In it, the Flask creator calls for explicit types and explicit “effects” — meaning you should be able to tell from a function whether it touches the network, files or the clock. He also wants code you can reason about locally, and errors that can be fixed mechanically. The ideal: “It either runs or it doesn't.” Zero implements this with “capabilities,” i.e. permissions in the function signature. Truss requires an effects block for this, and NanoLang has capabilities too.

Truss: proofs instead of trust

In Truss, the basic unit is the contract. It defines what a function guarantees: return values, which memory regions it reads and writes, how state changes, and that it terminates, i.e. eventually finishes. The README example is called ReplaceElement: a function replaces an element in a list and returns the old value. The precondition requires index < words.len rules out a buffer overflow. The postcondition ensures result == old(words[index]) pins down what comes out.

The actual implementation is called a provider. It must “provably fulfill all the promises of the contract.” Running truss proof update generates the corresponding package.proof file. Anyone using the package doesn't have to redo the proof, only check it. According to the README, that's “an order of magnitude faster” than constructing the proof. There are no measurements to back this up. The standard library contains eight proven building blocks, including sorting, SHA-256, CRC-32, ZIP extraction and JSON strings.

Taylor is upfront about the cost:

“When you publish a package, you spend as many tokens on the proofs as on the code.”

On Hacker News, Truss hit 125 points and 93 comments. There, the author wrote that the standard library was built with “GPT 6.2 Sol,” which was “relatively efficient” — apart from design questions, he barely had to supervise the model. He gave no figures on runtime or tokens.

Criticism in the thread centers on three points. First, the problem just shifts: someone still has to make sure the contract describes the right behavior. A proof only shows that the code satisfies the contract, not that the contract is complete. Second, users ask what Truss offers over Dafny, Lean, Verus or Eiffel. The requires/ensures syntax clearly comes from Dafny. One commenter argues that if you want formally verified software, you might as well use Lean, where AI is “extremely good.” Third, the verification tool itself is unclear. The README only mentions a “Rust verifier.” An open GitHub issue says that unlike Verus, Truss doesn't use an SMT solver — an automatic logic solver like Z3 — but its own proof checker. The author hasn't confirmed this yet.

Zero: the compiler talks to machines

Zero from Vercel Labs tackles a different problem: an agent shouldn't trip over error messages written for humans. According to InfoQ, every command supports a --json option. Errors have fixed codes like NAM003 and come with repair hints. zero fix --plan --json returns a repair plan that the agent can accept, modify or reject. A “Hello World” is 16.2 KiB and reportedly builds in about a millisecond.

The most radical step came with version 0.3.0. The program's source of truth is now a binary file, zero.graph, a graph of symbols and links. The readable .0 text files are just a view of it. Agents search with zero query and make changes with zero patch. Every change is tied to a hash — a kind of fingerprint of the graph. If the graph has changed in the meantime, Zero rejects the edit before anything is saved. The price: so much changed between v0.1.4, v0.2.0 and v0.3.0 that older text code no longer works. The README explicitly warns of “security issues” and advises against production use.

On Hacker News, according to InfoQ, commenters pointed out that structured error messages have existed “for decades” and that only the capabilities are really new. A recurring question: why should an agent learn a new language instead of Python or TypeScript? The project publishes no verified figures on token savings or error rates, even though the repo has a benchmarks folder.

ilo and NanoLang: savings vs. readability

ilo (Toki Pona for “tool”) is the counter-model to Truss. Its manifesto has only one metric: the total tokens needed to get from intent to working code, including reloading the spec and failed attempts. In its own words:

“If a design is uglier but costs fewer tokens overall, it wins.”

That's why ilo uses prefix notation, where the operator comes before the values: (a * b) + c becomes +*a b c. On top of that come symbols instead of keywords and errors as terse codes. The headline “0.33 times the tokens of Python” comes from a single example with 30 versus 10 tokens. The research log in the repo extends this to five sample programs at 285 versus 871 tokens. Accuracy was evaluated with just one model, Claude Haiku 4.5. And the retry rates — which the manifesto says are part of the metric — aren't reported.

NanoLang, by contrast, wants to be “for machines to write and humans to read.” The language compiles to C, requires built-in tests for functions in shadow blocks, and allows normal infix notation alongside prefix. According to the README, the core rules of the language are proven in Coq. That covers the language itself, not users' programs. The test requirement isn't entirely consistent either: if you only generate C source, the tests are skipped. On Hacker News, Hubbard called the project “purely a thought experiment” and said its features “grew” rather than were designed.

The fundamental question: can a model write a language it has never seen?

Simon Willison tested NanoLang. Claude Opus 4.5 got only the instruction file MEMORY.md and was asked to write a Mandelbrot program. The code didn't compile. Only Claude Code, which could call the compiler and search the examples in the repo, got the program running. Studies paint a similar picture:

Study Result
Giagnorio et al., June 2026 Average pass@1 (share of tasks solved on the first attempt): Python/Java 79%, R/Lua/Haskell/Julia/Racket 62%, the near-unknown Gleam/MoonBit 9%. With five examples in the prompt, o3-mini rose from 7 to 39% on MoonBit
DSL-Bench, Nov. 2026 18 domain-specific languages, including Dafny and Lean: only 11.6% functionally correct on average. Compiler feedback alone added +3.8 points, documentation plus feedback +16.3 points
Wu, Anderson, Guha 2026 Frontier models solve OCaml tasks almost as often as Python tasks (GPT-5.5: 97 vs. 100%), but need 1.28 to 1.69 times as many tokens. On 27% of OCaml tasks, GPT-5.5 drafted a Python version first

So the answer is: yes, but only with help, and it gets more expensive. The models in the June 2026 study are older (GPT-4o, o3-mini). Newer models with documentation and a compiler in the loop do considerably better. That's exactly why ilo (ilo -ai), NanoLang (MEMORY.md, spec.json) and Zero (JSON diagnostics) ship their own instructions for machines. One Hacker News comment on Truss sums up the remaining weakness: models learn a new language, but they don't write “idiomatic” code — code that looks the way experienced users of the language would write it.

Our take

The four languages answer different questions. Truss asks how you can trust AI-written code. Zero asks how an agent operates a compiler. ilo asks what it all costs, and NanoLang asks whether humans and machines can read the same language. For none of the four is there evidence that it actually makes agents better than Rust, Python or Dafny. What exists are vendor claims, single examples and one public hands-on test (Willison's).

Our assessment: the research argues against ilo's math, at least as long as ilo is missing from training data. If even well-established OCaml costs up to 69 percent more tokens than Python, a brand-new language is likely to lose part of its savings to failed attempts and reloading the spec. Nobody has measured this yet. Truss has the strongest argument, because a verified proof doesn't depend on how practiced the model is: the checker either accepts it or it doesn't. What remains unresolved is who checks the contracts, how well proving scales to large programs, and why you wouldn't just use Dafny, Verus or Lean, which models already know. Zero has the biggest backing with Vercel, but its graph storage pushes users furthest out of their familiar toolbox.

What the four have in common: today, agents have to laboriously compensate with tokens for everything the language and tools don't guarantee themselves. Whether that calls for new languages or whether better tooling for existing languages is enough remains open. Solid comparative measurements are still missing for all four.

#programming languages#ai agents#formal verification#coding#comparison

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.