# Bret Taylor releases Truss, a programming language built for agent-written code

published: 2026-12-02T20:05:54.856Z
topic: infrastructure
source: https://github.com/finiteloop/truss
url: https://aiagentnews.io/stories/bret-taylor-releases-truss-a-programming-language-built-for-agent-written-code

Truss is a prototype programming language from Bret Taylor, designed for software that AI agents write rather than people. Its contracts pair code with formal proofs of behavior that the compiler checks.

According to the project's README, Truss assumes agents write the code, so it spends effort at authoring time on verifying correctness and performance instead of optimizing for human convenience. The basic unit is a contract that specifies data structures and functions along with formally verified behaviors, such as what they return, what memory they can access, and what state they can change.

Providers implement contracts and ship a package.proof file next to their source, and the compiler checks that proof against the contract. The README says this check can be an order of magnitude faster than constructing the proof. A worked example replaces one element in a slice of UInt64 words, with its conformance proof generated by running truss proof update.

The standard library includes examples such as a table sort that keeps payloads intact for repeated keys, a streaming SHA-256 contract, and a CRC-32 proof showing that split inputs produce the same checksum as one pass. The truss command covers building, running, testing, checking and verifying packages. The project is licensed under Apache-2.0.

## Why it matters if you build agents

Developers building agents that generate code can study Truss's contract-and-proof model as a way to check agent output beyond ordinary tests. The README calls Truss a prototype, so for now it is better suited to study than to use in production.
