Truss: A programming language optimized for agent-written software
Bret Taylor introduced Truss, an experimental programming language designed for AI agents that prioritizes formal verification and contracts over human-friendly syntax.
summary is enough The concept is interesting, but the comment thread provides crucial context on prior art and skepticism regarding training LLMs on unrepresented languages.
summary
Bret Taylor released Truss, a prototype programming language built specifically for AI agents rather than human developers, trading authoring convenience for built-in formal verification and contracts. The language requires package authors to supply proofs of correctness alongside code implementations so dependent programs can verify them cheaply. Commenters quickly pointed out strong parallels to existing verification languages like Dafny and Eiffel, raising skepticism about whether a brand-new language is necessary.
key points
- Truss optimizes for correctness and human verification rather than human editing ergonomics, assuming code is written by AI agents.
- The atomic unit is a contract specifying preconditions, postconditions, and effects, paired with provider implementations and pre-compiled proofs.
- Commenters noted heavy overlap with existing contract-based languages like Dafny and Eiffel, questioning why a new language was created instead of leveraging established verification tools.
who should read it
Software engineers and language designers interested in formal verification and AI-assisted code generation.
discussion skeptical
consensus
Commenters are largely skeptical, pointing out that existing verification languages like Dafny, Lean, and Eiffel already solve these problems and arguing that LLMs struggle with brand-new languages lacking training data.
pushback
A minority argues that LLMs generalize easily to new syntaxes and that designing languages specifically for agent workflows is a logical frontier.
Proofs about program correctness are great but I don't think this even really attempts to argue why a new language is needed or what this does better than other systems in the space. The only other language mentioned in this project page is Rust as "a small step", but doesn't mention F*, Dafny, Idris, Verus, CakeML etc. I think basically all of these have some greater burdens for authors which previously made them realistic for only some projects, but now that we can have agents deal with those headaches, maybe they should expect to see broader use.
It highlights that the author overlooked existing verification languages like Dafny, F*, and Idris which could already benefit from agent-driven workflows.
Generated by an LLM from the article and thread. Check the sources before relying on it.