← All writing

AI

Truss: A Programming Language Built for AI Agents

Mani G 3 min read

A friendly robot builds a truss bridge from glowing code blocks stamped with green checkmarks while an engineer with a magnifying glass reviews a proof on a clipboard

Since the 1950s we have designed programming languages around one fragile creature: the human typing the code. The Truss programming language throws that assumption out. Bret Taylor, co-founder of Sierra and an OpenAI board member, released it on November 30, 2026, as a personal project he built over the US Thanksgiving weekend, "in between meals and football games." Its premise is blunt. Agents write the code now, so the language should make code easy to check, not easy to type.

I think that is the most honest framing of AI coding I have seen this year.

What the Truss programming language actually does

Most languages trust you. Write a function, add a few tests, ship it, and hope the cases you didn't test behave. Truss does not trust anyone, least of all the agent.

The core unit is a contract. A contract says what a function returns, which memory it may touch and what state it can change. Code that implements a contract is called a provider, and every provider must ship with a proof that it keeps every promise in the contract. No proof, no build.

Here is a quick example, close to the one in the project README. Say you want a function that swaps one number in a list and hands back the old value. The contract says the index must be inside the list, the result must equal the old value, and the function may only read and write that list. If the agent returns the new value by mistake, the compiler refuses to build it.

Tech outlet MODEL tried exactly that kind of thing. It planted three classic bugs in small Truss programs: a copy loop that copied nothing, a wrong return value, and a missing buffer size check. None of the three compiled. Two errors pointed straight at the broken promise. The third just said it "failed to establish a proof obligation" at line 1, which is the compiler equivalent of a shrug.

Why proofs suddenly make sense

Formal verification is old. It never went mainstream because writing proofs is slow, fiddly work that humans hate. Taylor's bet is that agents don't mind. In his words, Truss "requires quite a bit of reasoning at authoring time," and since the agent carries that load, a "one-time token spend" buys software that stays correct.

The clever bit is how the cost is shared. A package author pays to prove a provider once, and the proof file sits next to the code. Programs that use the package rely on the contract and don't redo the work. Checking a supplied proof, the docs say, "can be an order of magnitude faster than constructing the proof itself." Taylor also says the compiler itself is verified with Lean, a proof assistant popular with mathematicians.

He compares it to Rust, which blocks memory errors at compile time and is, as he puts it, "a fantastic language target for AI." Truss pushes that idea well past memory safety.

My take

I like the direction a lot. Code review is the real bottleneck once agents produce code faster than people can read it, and a machine-checked proof beats a reviewer squinting at a diff at 6 PM.

But a proof only covers what the contract says. Write a sloppy contract and the compiler will faithfully prove the wrong thing. So the human job does not disappear. It moves up a level, from writing code to writing promises.

Also, temper expectations. Taylor calls it "just a prototype" meant "to start a conversation." Critics on X point out that a brand-new language has no training data, while agents are already fluent in Rust and Go. Taylor's reply: the Truss standard library, which includes SHA-256, CRC-32 and an HTTP response parser, was generated "quite quickly."

Taylor also thinks "we will probably rewrite most software written before AI." Picture your bank's ancient COBOL core rewritten with proofs attached. Thrilling, or terrifying?

So here is my question for you: if an agent hands you a proof instead of a pull request, would you still read the code?