• agentic-engineering
  • programming-languages
  • verification

A language for code nobody types

Bret Taylor's Truss prototype assumes agents write the code and humans verify it. I've been thinking about what that flip means for how I run agents today.

A link came through an AI builders group I'm in this week, and I haven't been able to stop thinking about it. It's Truss, a prototype programming language from Bret Taylor. Its premise fits in one sentence: code is no longer written by hand, so stop designing languages around the people who used to write it.

The README has a small table that does most of the work. Traditional languages optimize for human editing; Truss optimizes for human verification. Traditional languages optimize for convenience; Truss optimizes for correctness. And instead of minimizing the time a person spends authoring, Truss is happy to spend tokens at authoring time to buy correctness that lasts.

What struck me is how closely that matches the shift in my own work. I don't type much code anymore. My job is specs, conventions, checks and review. I decide what "done" means and whether the evidence says we got there. Yet every language I use was designed for the person I used to be, the one at the keyboard.

Contracts, providers and proofs

The mechanics are worth a look even if you never write a line of it. The basic unit is a contract: a declaration of what a function returns, what memory it can touch and what state it can change. Providers implement contracts, and each provider ships with a proof that it satisfies its contract. When a program binds to a provider, the compiler checks that evidence instead of rebuilding the proof from scratch, which the README says can be an order of magnitude faster.

The trade-off is explicit. Producing the proof is expensive. For a human that would be a dealbreaker. For an agent it's tokens, spent once, and every package that depends on yours inherits the guarantee.

Why it resonates with how I build

Today I get a version of this with much blunter tools. Agents write tests alongside each feature, other agents review the change before I do, and builds, type checks and scans run before anything leaves the machine. It works, but it's evidence by volume. A green suite tells me the cases we thought of pass. It doesn't tell me the cases we didn't think of can't happen.

A contract that says "this function never writes outside this slice" is a different kind of statement. It moves my review from "does this diff look right" to "is this the right contract". That's a question I'm good at answering, and it's where I want my attention to go.

It also puts words to something I've felt for a while: the cost model of software has flipped. When people wrote everything, strictness felt like a tax. When agents write it, strictness is close to free, and the scarce thing is the reviewer's attention. Anything that turns a long diff into a short, checkable claim is worth a lot.

What I'd try

Taylor is clear that Truss is a prototype meant to start a conversation, and I'd treat it that way. I'm not about to rewrite anything in it. But two things seem worth trying.

The first is to point an agent at the getting-started chapter and one of the standard library examples, like the sort or CRC-32 contracts, and watch how it copes with the proof step. Where an agent struggles is usually where the interesting design questions are.

The second is closer to home. Even in TypeScript I can borrow the shape: write the contract first, in plain language plus types, before an agent writes anything, and make review about the contract. Every change I run already starts with a spec. Treating that spec as the thing that gets verified, rather than a note that gets read once, feels like the right next step.

The README ends its pitch with a bold bet: that most software written before AI will be rewritten because it's imperfect, insecure and slow. I'm not sure about "most". But if that rewrite comes, I'd rather it target languages built for proving things than languages built for typing them.

Staff Agentic Engineer. I run teams of AI agents that write, review and ship production software, and I write here every week about what that is teaching me.