github.com via Hacker News

Bret Taylor open-sources Truss, a language built for AI agents

TL;DR

  • Bret Taylor has open-sourced Truss on GitHub under Apache 2.0, a prototype language whose stated premise is that code is now written by AI agents rather than humans.
  • Truss is built around contracts and providers: packages ship formally verified behaviors plus a proof of conformance, which dependents validate instead of re-verifying.
  • The standard library ships verified examples for Sort, SHA-256, HTTP response framing, ZIP extraction, JSON strings, socket readiness, CRC-32, and owned byte buffers.

Bret Taylor has released Truss, a prototype programming language built on the premise that code is no longer written by hand but by AI agents. The project is published on GitHub under the Apache 2.0 license and is described by its author as a conversation starter rather than a finished system.

"Truss, in contrast, assumes code is no longer written by hand, but instead written by AI agents," the README says, framing a deliberate inversion of the usual priorities. "Rather than optimizing for authoring convenience, Truss requires quite a bit of reasoning at authoring time to verify a program's correctness and performance." Taylor's argument for the tradeoff is economic: "That tradeoff is sensible for agent-written software because it is not a burden to the software engineer and the one-time token spend can produce software with enduring robustness."

The mechanism is a two-part system. The atomic unit of a Truss package is a contract, which "specifies data structures and functions along with their formally verified behaviors." Implementations, called providers, "must provably satisfy all the claims in the contract, and each provider provides evidence of their conformance in the form of a proof." Taylor says this "enables formal verification to scale with large code bases, pushing the majority of the work of formal verification to package authors," so downstream code validates proofs rather than redoing them. The standard library ships formally verified examples for Sort, SHA-256, HTTP response framing, ZIP extraction, JSON strings, socket readiness, CRC-32, and owned byte buffers.

Taylor is blunt about the stage. "Truss is just a prototype, but I was hoping to start a conversation about the platforms we need to design to achieve that vision," he writes, the vision being software "that is provably correct, verifiably secure, and incredibly fast" produced by agents at unparalleled scale. It lands against a steady run of agent-coding tool launches we have tracked — 147 stories deep over the past 90 days, most of them about making agents faster, not about rewiring the substrate under them.